Q&A: What to know about capital gains tax on a house sale

Dear Liz: My husband died in November 2022. I was told that if I sell the house within two years of his death, I can benefit from two capital gains exclusions, his and mine, each for $250,000. The house was appraised at $912,000 based on his date of death. I don’t imagine it would sell for much more than that now. Can you tell me approximately what I would owe in capital gains? My tax rate is 24%.

Answer: That’s a great question to ask a tax pro, since there are a number of variables involved.

If you live in a community property state such as California, then both halves of the property got a favorable step-up in tax basis when your husband died. That means the house’s new tax basis would be $912,000.

If you don’t live in a community property state, then only half of the house got the step up at his death (to $456,000, or half of $912,000). The other half — yours — retains its original tax basis. If the original purchase price of the home was $300,000, for example, your basis would be $150,000. The home’s total basis would be $606,000 (which is $456,000 plus $150,000). If you sold the house for $912,000, your capital gain could be $306,000, which would be well below the $500,000 exemption you could take if you sell the house within two years of the death. If you sell after the two-year mark, the gain above your single $250,000 exemption would be taxable.

The rate you would pay depends on your taxable income and what state you live in.

For example, a single person with taxable income of between $47,026 and $518,900 in 2023 would pay a 15% federal capital gains rate, plus whatever rate their state imposes. (California doesn’t have a separate capital gains tax system, so any taxable gain would be subject to the state’s regular income tax.)

These numbers are just to give you an idea of how capital gains taxes work. Your mileage may vary. If you renovated the kitchen or did any other significant improvements on the home, those costs could be added to your tax basis to reduce any potentially taxable gain. Also, selling costs will reduce what you actually pocket from the sale and your potentially taxable gain. For more information, see IRS Publication 523, Selling Your Home.

Taxes shouldn’t be your only consideration, of course. Relocating can be disruptive and expensive. Getting the house sold before the two-year mark makes sense if you were planning to move anyway, but don’t let fear of taxes scare you out of a home that otherwise suits you.

Q&A: Their 529 college savings plans have a problem: The students graduated. Now what?

Dear Liz: My adult children both have money left in 529 accounts that I control as well as uncashed savings bonds given by generous grandparents. We were able to get them through college without needing the funds, but neither has decided to continue with graduate education and the funds have been stranded because of the high tax rate on non-education use. With the recent rule change for 2024, we plan to start converting the 529s into Roth IRAs, but this will take several years as we understand the contribution limits. Can you please discuss the IRA conversion process and make suggestions for cashing or converting the mature savings bonds to minimize the tax burden?

Answer: As you may know, interest on savings bonds isn’t subject to state or local taxes. Federal tax can be paid annually on savings bond interest, but most savers defer paying tax until the bonds are cashed in or reach final maturity, which happens 30 years after their issue date. Savings bond interest can be tax free if used for qualified education expenses, but there are a number of restrictions. For example, bond buyers must be 24 or older; if the bonds were registered in the children’s names, the qualified education exemption wouldn’t be available. (See IRS Publication 970 for details.)

You have more options for preserving tax-free use of the 529 funds. Starting next year, you’ll be able to roll up to $7,000 from each child’s 529 into a Roth IRA for them. The child must have been a beneficiary on the 529 for at least 15 years and contributions made within 5 years, plus their earnings, aren’t eligible to be rolled over. Any amounts they contribute to their own IRA or Roth IRA would reduce the amount you could roll over.

You can continue annual rollovers up to the Roth IRA contribution limit until a total of $35,000 has been transferred. The rollover must be direct or “trustee-to-trustee” — don’t ask the 529 plan to send you a check.

If you have money left over in the accounts after these rollovers, you could consider changing the trustee to a relative of the beneficiary. Eligible relatives include the child’s spouse, children and other descendants, parents and ancestors, in-laws, cousins, aunts, uncles, nephews and nieces and spouses of those relatives.

Even if you decide to pull the money out and pay the penalty, the taxes may not be as exorbitant as you fear. You’ll typically pay income tax and a 10% penalty, but only on the earnings, not the original contributions.

Q&A: Here’s how a health savings account works. Spoiler: It can be a stealth retirement fund

Dear Liz: For the first time, I signed up for a high-deductible insurance plan along with a health savings account. However, I don’t quite understand a couple of key concepts. When our medical bills roll in, will we pay using our personal credit card or the HSA card provided by my employer? We have no trouble using our personal card but is that the right way to use an HSA — by not using it, in effect? Also, I read that the unused HSA funds can be invested to grow tax-deferred. How does the money get invested? Does my employer have a relationship with a specific broker? Or can I invest unused HSA funds with any broker?

Answer: If you want your HSA balance to grow for retirement, then paying your medical bills out of pocket is the way to go. If you use your credit card to pay medical bills, however, make sure you can pay off the balances in full. The benefits of an HSA would be diluted if you were paying double-digit interest rates.

If you do need to access your HSA funds, you can use your employer-provided card to pay medical bills or submit receipts to the HSA administrator for reimbursement.

As you probably know, HSAs offer a rare triple tax break. Contributions are pre-tax, your account can grow tax-deferred and withdrawals for qualifying medical expenses are tax-free. Because the account can be invested and balances rolled over from year to year, many people treat their HSAs as an additional way to save for retirement.

Your employer has chosen an HSA provider that typically will offer some investment options, but usually you can transfer your balances to a different provider if you wish. Compare fees, minimum balance requirements and investment options. If you decide to move your account, ask your current provider to set up a “trustee-to-trustee” transfer.

Q&A: Explaining required minimum distributions

Dear Liz: When my wife reached age 59½, we initiated required minimum distributions for all of her retirement funds. During the process, the investment company representative stated that as long as she was still working and contributing to her 401(k) and 403(b) at work, she was not required to take RMDs for those accounts. With all the changes lately in those types of accounts, is that still the case, or has the law changed?

Answer: Minimum distributions have never been required at age 59½ from any retirement fund. That’s the age at which people no longer have to pay penalties for accessing their retirement funds, not the age at which they must start taking money out.

The current age at which retired minimum distributions must begin is 73, and it rises to 75 for people born in 1960 and later. If your wife is still working at that point, she can put off RMDs from the retirement plans sponsored by her current employer. RMDs will still be required on other retirement accounts, such as IRAs and 401(k)s or 403(b)s from a previous employer. The other RMD exception is for Roth accounts, which don’t have RMDs for the account owner.

Generally you want money to stay in tax-deferred retirement accounts as long as possible. Unnecessary distributions just increase your tax bill and can reduce the amount you have to live on later in life.

If your wife has already taken a distribution, she has 60 days to roll it over into an IRA and avoid taxation.

Tax law can be confusing and mistakes can be expensive. Please use this experience as a reason to hire a good tax pro who can answer your questions and ensure you don’t make another potentially expensive misstep.

Q&A: Roth IRAs and taxes

Dear Liz: I sold some stocks from a Roth IRA to pay for some bad debts. Is this going to count as taxable income for this year?

Answer: You can always withdraw the amount you contributed to a Roth IRA without owing income taxes or penalties. For example, if you withdrew $10,000 but your contributions over the years totaled $10,000 or more, then you didn’t incur taxes or penalties.

You also won’t have tax issues if you withdrew more than your contributions but are 59½ and have had the account for at least five years. If you’re old enough but haven’t had the account long enough, you’ll pay income taxes but not penalties on the part of the withdrawal that exceeded your contributions — in other words, on the earnings.

If you’re under 59½, you could be subject to taxes and penalties on any earnings you withdrew. Please consult a tax pro for details.

Q&A: A capital gains surprise

Dear Liz: My son has decided to settle abroad and wants to purchase a home. I made a gift of stock valued at $17,000, which had significant gains. My broker indicated that giving him the stock would avoid capital gains on my part, and he could cash the stock in at that value, also without accruing capital gains. Our CPA is now telling him that he will, indeed, have to pay the capital gains. What’s the real scoop?

Answer: It shouldn’t be a scoop that the person who does taxes for a living gave you the correct answer.

When you gave your son the stock, you also gave him your tax basis — essentially, what you paid for the stock. Once the stock was sold, your son owed taxes on those gains.

Q&A: What happens to your HSA money when you die?

Dear Liz: What designation or instructions should I make for assets (if any) which remain in my health savings account at the time of my death? Do any remaining funds go directly to my estate or am I allowed to name a beneficiary for this money? If “yes” to the beneficiary question, is the beneficiary subject to the same 10-year payout requirement that applies to most other retirement account beneficiaries? I assume that if the funds go to my estate, the estate would pay tax on the funds given I’ve never paid tax on that money.

Answer: Yes, you can name beneficiaries for health savings accounts. But the tax advantages of these plans often disappear at death.

HSAs, which are paired with high deductible health insurance plans, are known for their rare triple tax benefit. Contributions are tax-deductible and balances can grow tax-deferred, while withdrawals for qualifying medical expenses can be tax free. HSAs don’t have the “use it or lose it” clause that applies to flexible spending accounts; balances can be rolled over from year to year and invested for growth.

What’s more, the withdrawals needn’t happen in the same year you incur the medical costs. As long as you keep good records of unreimbursed medical expenses, you can use them to justify tax-free withdrawals years or even decades in the future.

As a result, many people who can afford to pay medical expenses with other funds use their HSAs as a kind of supplemental retirement fund. There are no required minimum withdrawals, and it can be tempting to leave balances in an HSA as long as possible.

If you’re married and name your spouse as your beneficiary, that may not be a problem. Spouses who inherit HSAs can opt to treat the account as their own, which means they can make tax-free withdrawals to pay for qualified medical expenses.

Other beneficiaries, though, will be required to empty the accounts and pay income tax on the withdrawals. These withdrawals won’t be penalized, but they also can’t be delayed. By contrast, non-spouse beneficiaries typically have 10 years to empty most inherited retirement plan accounts.

If you don’t name a beneficiary, any remaining funds in the account will be paid to your estate and taxed on your final income tax return.

Q&A: What’s a qualified charitable distribution?

Dear Liz: I have a suggestion for the couple who is facing the start of required minimum distributions from their retirement accounts but who do not need the money. They could consider making a qualified charitable distribution (QCD). A QCD allows you to donate to a charity directly from your IRA and satisfies your RMD requirement. The only caveat is that the money cannot pass through your hands. It must go directly from the IRA to the charity. You can’t take a deduction for the contribution, but the money won’t count as taxable income. Although the age of RMD has been rising in recent years, the age for a QCD remains at 70½. The maximum allowable is $100,000 per taxpayer a year. A husband and wife can each make a QCD if they have separate IRAs.

Answer: Qualified charitable distributions can be a great solution for people who have saved more in their retirement accounts than they need and who want to benefit good causes. The charity must be a 501(c)(3) organization that can receive tax-deductible contributions, and, as you note, the money needs to be transferred directly from the retirement account and the contribution made before the year’s RMD deadline, which is typically Dec. 31. There are a few other rules involved, so consider consulting a tax pro before arranging a QCD.

Q&A: Trusts and taxes

Dear Liz: My parents set up a family trust, which my brother and I have now inherited but not fully distributed. Included in that trust was the understanding that $130,000 would go to my daughter who is now 23. She has not received any of the money yet but would like to receive it within the next year for a down payment on a house. Would it be better to give her half the money this calendar year and half next year, or give her everything at once? I’m thinking there may be tax breaks for first-time home buyers that would offset the tax burden that a sudden increase in income from the inheritance would cause. She has been living on her own for several years and has a full-time job earning about $52,000 per year. She is already taking advantage of her company’s 401(k) match.

Answer: The inheritance won’t be considered income and isn’t taxable as such. Of course, any money the inheritance earns would be taxable. So if your daughter parks the money in a high-yield savings account while she looks for a home, she would pay income tax on any interest earned.

There also isn’t currently a first-time home buyer federal tax credit, although many states have various programs to help people buy homes. These typically do have income limits, although, again, the inheritance itself wouldn’t be considered part of her income.

Before you distribute the money, however, get clear on what exactly the “understanding” is about this money. If the trust clearly states this amount goes to your daughter, that’s one thing. If this money has been allocated to you, however, and you’re complying with your parents’ unwritten wish, you may have to file a gift tax return when the money is distributed. (Gift taxes won’t be due unless you give away millions in your lifetime.) An estate planning attorney can advise you.

Q&A: Home sales and taxes

Dear Liz: My in-laws passed away earlier this year within months of each other. Their primary asset, part of their living trust, is their home, worth close to $1 million. There is a reverse mortgage of about $332,000 that will be paid off once the house sells. Will capital gains tax apply to the four beneficiaries? Or do we get to take advantage of the step up in cost basis? The house is in escrow right now. I don’t think the house has gone up in value since the last death.

Answer: The home will get the favorable step up in tax basis. That means the beneficiaries won’t have to pay capital gains tax on all the appreciation that happened during the parents’ lifetime.