Other financial discussions

My brother in law's money market account has increased since he died so when the estate distributes the money to us then we have long term capital gains tax to pay on the gain, correct? For example if the basis for his money market is $50,000 and it is now $90,000 then we would pay long term capital gains on the $40,000 for the 2023 tax year?
 
Thank you!