2022-06-19

Investing - The Basics of US Income Taxes

contents

(2026-05-29 - revisions) 

I have written several posts on investing, trying to illuminate the need for preparing for retirement and some of the different investment devices and how they work. And over many years of investing and a few in retirement, one thing that has become more and more clear to me is that how you handle income tax is very important (and not simple). You need to understand the different tax advantaged accounts (IRA, Roth IRA, etc.) and taxable/ordinary accounts and the taxes on different types of income (earned income, interest, dividend, capital gains).

I am writing this, in large part, for myself - to get a coherent, organized model of the US federal income tax code. This complex code has been transformed into a huge and confusing set of forms that obfuscate the rules. Maybe I can untangle it a bit.

I hope it's useful - maybe just as a sleep aid. After finishing this post, I am wondering if it's better to just find a good book on the subject.

There are many details to federal income tax law. Below is the foundation of the tax system as it relates to investing. This is only the foundation - there are many rules about special income sources, farming, real estate, small businesses, much more that I know nothing about. The specific numbers are just an example (filing as a single person, 2021). You will have to look up numbers specific to you.

This post looks at these topics.

  • Income
  • Interest
  • Unqualified ordinary dividends
  • Qualified dividends
  • Short-term capital gains
  • Long-term capital gains
  • Capital losses
  • IRA, 401K, ... required minimum distributions (RMDs)

It does not look at these topics but they are worth digging into after getting past the basics.

  • Taxes on social security income
  • Foreign taxes
  • State taxes
  • Deductions (reduce your taxable income)
  • Standard deduction (lower limit of itemizing, eliminates itemizing for many people)
  • Credits (reduces the amount of tax that you owe)
  • Refundable credits (reduces the amount of tax that you owe and if greater than what you owe gives you a refund)
  • Exemptions (removes the tax obligation from some income)
  • Income based Medicare penalty
  • Alternative minimum tax
  • Money from pensions and annuities (generally treated like traditional IRAs)

Why is this important? Tax details dramatically affect your effective income and there are secondary effects such as

  • Social Security payments are taxed based on income.
  • Medicare rates are based on income.
  • Tax rates are based on income.

My Terminology -

  • Taxable income - any money that you get that is not tax exempt
  • Exempt income - any money that would have been income except that it is exempt from income taxes
  • Earned income - money that is earned from a job or business
  • Total taxable income - the sum of earned income, interest, dividends, capital gains, and money from a pre-tax retirement account (TIRA, pension, annuity), but not exempt income
  • Income rate - the rate of taxation based on the IRS income table
  • Income tax - tax on total taxable income, calculated on the IRS Qualified Dividend and Capital Gains Tax Worksheet (which refers you to the Tax Table or Tax Computation Worksheet for the income rate side of the calculation)
  • Capital gains - short and long together
  • Short-term capital gains
  • Long-term capital gains
  • Long-term capital gains rate - the rate of taxation based on the IRS long-term capital gains table
  • Qualified dividends are actually qualified ordinary dividends. These are mostly dividends from US corporations.
  • Ordinary dividends include qualified and unqualified ordinary dividends.
  • Unqualified ordinary dividends - ordinary dividends minus qualified dividends
  • Interest from a bond fund is labeled as dividends, actually unqualified ordinary dividends.
  • I use TIRA to refer to traditional IRAs, 401Ks, 403Bs, and any other pre-tax retirement accounts.
  • I often use Roth to refer to Roth IRAs, Roth 401Ks, Roth 403Bs, and any other after-tax retirement accounts.

Please note - when I talk about TIRAs, HSAs (health savings accounts) and other tax advantaged accounts, I am not giving all of the rules of these accounts. They are limited by age, holding time, source and size of contribution, income, all of which may change at the whim of our government.

Some general rules (some of these rules are subject to a minimum asset holding time, age limits).

  • TIRA, 401K, ... contributions from earned income are generally tax deductible. Withdrawals are taxed at the income rate, and there are penalties for violating age and holding requirements.
  • Roth IRA, 401K, ... contributions are only from after tax earned income. Withdrawals are tax-free, subject to age and holding requirements.
  • Long-term capital gains are taxed at the long-term capital gains rate.
  • Qualified dividends are taxed as long-term capital gains.
  • Earned income is taxed at the income rate.
  • Interest is taxed at the income rate.
  • Unqualified ordinary dividends are taxed at the income rate.
  • Short-term capital gains are taxed at the income rate.
  • Capital losses can offset capital gains, including future capital gains if there is currently nothing to offset.
  • Required minimum distributions (RMDs) force you to take yearly TIRA withdrawals (and pay income tax on them) starting at a certain age (73 right now). RMD withdrawals may not be transferred to Roth IRAs.
  • Tax exempt money is not taxed and is not included in deductions or income calculation.
  • Contributions to a TIRA are tax exempt, but you must pay income rate taxes when you withdraw.
  • Contributions to health savings accounts are tax exempt and there are no taxes if you withdraw for medical expenses or Medicare or COBRA premiums (not supplemental insurance premiums).
  • There are tax exempt bonds issued by local and state governments (municipal bonds).
  • Bonds may be tax exempt to different agencies - city, state, federal.
  • There are bond funds that invest in tax exempt bonds.  

Tax Rates

There are two tax rates, one for ordinary income and one for long-term capital gains. All other forms of income use one of these two calculations. 

Tax rate on earned income, TIRA distributions, pension/annuity payment, interest, unqualified ordinary dividends, short-term capital gains

t=total taxable income minus deductions, qualified dividends, long-term capital gains

t minus deductions,      marginal total tax       total rate
long-term cap gains,     rate                     range
and qualified dividends                           low   high

<9,950                   10%      t*10%           10.0   10.0
<40,525                  12%      t*12%-199       10.0   11.5
<86,375                  22%      t*22%-4251.5    11.5   17.1
<164,925                 24%      t*24%-5979      17.1   20.4
<209,425                 32%      t*32%-19173     20.4   22.8
<523,600                 35%      t*35%-25455.75  22.8   30.1
>=523,600                37%      t*37%-35927.75  30.1   37


(These formulas are as used by the IRS. They seem backwards to me, subtracting off the offset from the lower brackets instead of adding on to the lower brackets, but it does simplify the formula. And why the non-uniform spacing of the tax rates 12-22 and 24-32?)

Note that I have subtracted out qualified dividends and long-term capital gains from total income. This assumes that you are calculating tax on these separately, as noted below.

Tax rate on long-term capital gains, qualified dividends

t=total taxable income less deductions 

i=t - long cap gains - qualified dividends

t                tax rate
<  (40,000 - i)     0%
<  (446,000 - i)   15%
>= (446,000 - i)   20%


These are marginal rates, but the bracket points are a function of your total income minus your long capital gains minus your qualified dividends. So if your i is less than 40,000 (this is 2022 I think) the first 40,000-i is taxed at 0. If i is greater than 40,000, then you have a big flat range where the tax is 15%. (I find this very confusing - if they want to discount long cap gains and qualified dividend taxes, why not just divide the them by 2 and include them with your other income.)

But you also calculate the tax on your total taxable income via the income rate table. If that is lower than the tax calculated with the combination of income rate / long-term capital gains rate, then that is the tax that you owe. It seems to me that is unlikely, but I haven't investigated.

Bond yield vs stock yield

Bond yield vs stock yield for a tax advantaged account

There is no tax for a Roth withdrawal, and for a regular TIRA all withdrawals pay the income rate, so there is no tax difference for bond interest and stock dividends

Bond yield vs stock yield for a taxable/ordinary account

Looking at the different tax rates, you can see that long-term capital gains rates are lower than income rates if your total income is below 40,000 or above about 100,000. But between 40,000 and 100,000, not much different. So qualified dividends are preferable to bond interest. For me stock dividends saved 20% in taxes vs what I would have owed with bond interest. And with stock dividends, you can use the income rate if it is lower than the long-term capital gains rate.

Where are your assets?

Where are your assets? This affects taxes on withdrawals. But you can't move assets between accounts pain free. And the pain may be worse than the advantage. Plan ahead.

In a taxable account 

  • A fund that trades growth stocks distributes big capital gains from trades, small dividends from profits.
  • A fund that trades dividend or value stocks distributes capital gains from trades, dividends from profits.
  • A fund that holds growth stocks (index fund) distributes small capital gains and small dividends, so value goes up and unrealized capital gains go up.
  • A fund that holds dividend or value stocks (index fund) distributes small capital gains and big dividends.
  • A fund that trades bonds distributes capital gains and unqualified ordinary dividends.
  • Bonds and funds that hold bonds (index fund) distribute unqualified ordinary dividends.

In a TIRA

  • All distributions are taxed at the income rate, but only when you withdraw the funds.
  • Funds can be moved (converted) to a Roth, but are taxed (as income) when you move them.

In a Roth

  • Dividends and capital gains are not taxed.
  • Deposits can only come from earned income (you must have a job) or a TIRA conversion.

Note that the dividends noted above, unless specified, may be qualified, if the asset is US and is held long enough, or unqualified. And capital gains may be short or long, depending on how long the asset has been held.

Same subject, a few details -

Mutual funds distribute capital gains on sold stocks every year (or quarter or month). And for taxable accounts, you must pay taxes on this. Index funds and other funds with low turnover have low capital gains distributions, so low capital gains taxes while you are holding the funds. But the stock values keep going up (historically anyway) while the cost basis stays the same, so unrealized capital gain keeps going up. When it's time to sell the fund, big capital gains taxes.

You can transfer (convert) assets from a TIRA to a Roth IRA. This requires that you pay income rate taxes on the TIRA withdrawal. Then the asset is in a Roth IRA and no more tax is due on the asset or distributions from the asset. Better to convert when your income is low, or the tax rates are low, or when the asset value is low (during a stock market low).

States have different policies on state taxation of TIRA withdrawals. In Kentucky, the first $31000 (not sure of the exact number) of a TIRA withdrawal is exempt from state income tax. If you don't need this as income, it is handy to use it for a Roth transfer.

I prefer to maximize my Roth account in preference to my TIRA because it can hold any asset without tax consequences. But you might have a special fund in a 401K that you don't want to drain, for example you might be counting on a stable value fund for the long term. 

Where to withdraw when you need money

If you have a TIRA required minimum distribution, take that first. There are significant penalties if you don't take the RMDs, and you can't get around it.

Take cash from a distribution in a taxable account. The tax consequences were set when the distribution was done, so no more tax on the cash.

Withdraw assets from a taxable account. The taxes will be on capital gains (the asset value minus the cost basis). That is likely much less than withdrawing from a TIRA.

As noted above, states have different policies on state taxation of TIRA withdrawals. In Kentucky, the first $31,000 (still not sure of the exact number) of a TIRA withdrawal is exempt from state income tax, so a significantly reduced tax rate for this money.

Where to put different types of assets

I would be happy to have everything in my Roth, but it hurts too much to quickly transfer from my TIRA. And there is no way to move assets in my taxable account to the Roth because I have no earned income (job or business).

In a Roth, I put my investments with the best chance of big rewards. If I get lucky with an investment, being tax-free is a nice bonus.

In my taxable account, I like dividend index stock funds that produce qualified dividends. I will have to pay mostly long-term capital gains rate tax on this income. Hopefully, the dividends will support the stock price. And there should never be a management issue that would push me into selling.

That leaves the safest investments in my TIRA - CDs, bonds, 40/60 fund. Assuming these are necessary parts of your portfolio, the slow growth will cause less RMD problems than fast growth assets.

And I can move TIRA assets to my Roth slowly, keeping my total income low. Until the RMDs start. It might be better to take some of the pain now.

Enough (This has taken over a week.)

Do you have any thoughts, especially on where to put your assets, where to withdraw money, and what type of assets are useful in retirement? I would love to hear them.

No comments:

Post a Comment