What are capital gains on IRA and 401(k) investments?

Close up of tax form Schedule D for capital gains and losses with glasses, pencil and pink eraser

Key Points

  • Understand the different types of capital gains taxes, such as short-term or long-term, so you can determine what rate applies to whatever assets you sell.      
  • Research fees associated with trading and services connected with IRAs so that they don't catch you off guard later.
  • Regularly rebalance your portfolio to align with risk tolerance levels and specific financial goals.

Investing comes with many benefits, the most coveted being the real growth of our wealth. When we throw our money into an asset, like a house or stock, we do it, hoping its value will increase. 

This increase is called a capital gain, and you've probably heard it mentioned in the news or in tax debates. In this article, we'll cover what a capital gain is, when it's realized, the two types of capital gains, and what 401(k)s and IRAs offer regarding taxation on capital gains on IRA.

What are capital gains on IRA?

Capital gains on IRA are realized when you sell an investment in your IRA for more than what you initially paid. Capital gains taxes are due on these profits once they are realized.

What are capital gains on IRAs and 401(k)s? 

capital gain is simply an increase in value between the price an asset (such as real estate or stocks) is sold for and the price you paid. If you purchase a home for $250,000 and sell it for $315,000, your capital gain on that home is $65,000 (excluding fees and commissions). 

The calculation is simple:

Sale price – purchase price = Capital gain, or in our example, 315,000 – 250,000 = 65,000

In another example, say you buy 100 shares of company ABC for $45 per share. Your investment is $4,500. At the end of the year, the stock is worth $52 per share. Your investment now has a capital gain of $700.


Within that definition are two types of capital gains: short-term and long-term. Short-term capital gains occur when an asset is purchased and sold within one year (this is 12 months, not necessarily a calendar year). 

Long-term capital gains are assets purchased and held onto for over a year before being sold. But why is there a distinction? The answer comes down to taxes.

In the case of short-term capital gains, they're taxed as regular income. The short-term capital gain can move you into a higher tax bracket. Long-term capital gains are taxed much lower, determined by your tax bracket. However, long-term capital gains will not push your income into a higher tax bracket because tax rates first apply to ordinary income.

One of the many advantages of making regular contributions to an employer-sponsored 401(k) or IRA is that the vast majority allow you to buy and sell securities within the plan without having the profits subject to capital gains IRA tax. It allows you to rebalance your portfolio and practice proper asset allocation and diversification without being subject to tax.

How capital gains work within an IRA or 401(k) 

At a time, capital gains were the domain of only the richest among us. But as investing has become more mainstream, even those of modest means need to get familiar with capital gains tax on IRA and how they can affect our portfolios. 

They're fundamental to knowing if you're investing in a retirement account, such as an IRA or 401(k).

So, is IRA taxable? Do you pay capital gains on Roth IRA? Or are you wondering, "Do you pay capital gains on 401k?"

When investments within an IRA or 401(k) generate capital gains, you have two main options for handling them: reinvestment or distribution.

Reinvestment allows those funds to remain invested within your account so you can use them to purchase other investments. Meanwhile, distributions allow the capital gains to be withdrawn from your account and taxed as income. 

Remember, your decisions in handling IRA capital gains and losses can significantly impact your tax burden down the road.

Types of investments in an IRA or 401(k) 

The last section discussed how capital gains work within an IRA or 401(k). In this section, we'll look at some of the different types of investments in these accounts. Understanding these investments is critical to maximizing your retirement savings.

Do you pay capital gains in IRA? First, let's discuss the difference between a traditional IRA and a Roth IRA, two of the most common types. A traditional IRA allows contributions to pre-tax, meaning they're not subject to taxation until you withdraw the funds in retirement. This makes them a good option to reduce your current tax burden. Withdrawals from a traditional IRA are then taxed as ordinary income.

On the other hand, a Roth IRA allows contributions to be made with after-tax dollars, meaning that any money you take out in retirement is tax-free. It makes them a good option if you think you won't benefit much from pre-tax deductions but still want to save for retirement in a tax-efficient way.

Do you pay capital gains on Roth IRA? Traditional and Roth IRAs shelter any profits you make from capital gains within the account from immediate taxation. But any distributions you take out will be subject to ordinary income taxes if they contain any capital gains on Roth IRA or traditional IRA.

Now that we've discussed the differences between traditional and Roth IRAs, let's look at some of the investments you can hold in either type of account:

  • Stocks: Stocks represent ownership in companies and can provide you with long-term growth potential and dividend payments. They can also carry more risk because of their potential volatility.
  • Bonds: Bonds represent loans issued by companies or governments that pay out interest over time until they mature at a predetermined date. Since bonds usually provide fixed returns over time with less risk than stocks, they can be lower volatility investment options.
  • Mutual funds: Mutual funds pool money from many investors to purchase various assets. Mutual funds can comprise stocks, bonds and other securities, providing diversification across multiple asset classes.
  • Exchange-traded funds (ETFs): ETFs are similar to mutual funds but trade on an exchange like a stock. They track a specific index or market sector and provide you with liquidity, easy diversification and potentially lower fees.
  • Real estate investment trusts (REITs): REITs invest in real estate properties or mortgages and distribute income generated from rental income. They offer you the potential for regular income and long-term growth but also come with risks, such as interest rate fluctuations and potential changes in property values.

Tax-efficient strategies

Taxes are a major consideration for anyone saving for retirement. Taxes can significantly reduce the money you save and have available to live on during retirement. But to minimize the amount of taxes taken out of your investments, there are tax-efficient strategies you can pursue. Let's take a look at some of them.

Tax-deferred growth

Tax-deferred growth applies to traditional and Roth IRAs since you can make contributions with pre-tax dollars up to a certain limit. It means that all the investment gains you earn within the account are not subject to taxes until you withdraw the funds when you retire. It applies even if you realize capital gains within the account.

Tax-loss harvesting 

Now that we've covered the basics of capital gains and taxes on retirement accounts and "How are IRAs taxed?", let's talk about a strategy known as tax loss harvesting. This involves selling investments at a loss to offset any IRA capital gains tax you may owe.

For example, let's say you hold an investment in your IRA that has gained value and generated a capital gain. Still, you also hold another investment that has lost value and generated a capital loss. You can reduce your tax burden by selling the investment with the loss and using it to offset the gain from the other investment.

Required minimum distributions (RMDs) 

Required minimum distributions (RMDs) are the amount of money you must withdraw from your tax-deferred retirement accounts, including Traditional IRAs or 401(k) plans, beginning at age 72 (or 70 1/2 for those born before July 1, 1949). The Internal Revenue Service sets this amount based on life expectancy and account value.

When you withdraw funds from a tax-free retirement account to cover RMD requirements, this triggers a taxable event that you must report on your federal income tax return. The portion of the RMD that falls into a long-term capital gain is subject to lower taxes than if you sold it as a short-term gain. Therefore, it benefits you to ensure you meet your RMD requirements to take advantage of the lower taxes available with long-term investments.

In addition, if you take RMDs out of an IRA before age 72, they will be taxed at the higher ordinary income tax rate rather than at the lower long-term capital gains rate. So, plan when taking distributions to minimize your tax burden and maximize returns on retirement savings.

Managing capital gains in retirement 

Retirement is a time when you need to manage your capital gains wisely. You can start by allocating funds from taxable accounts to tax-advantaged retirement accounts. Consider strategies such as tax-loss harvesting, which can help minimize taxes even further by selling investments at a loss to offset capital gains.

You should also take advantage of the lower long-term capital gains rates available with retirement accounts by taking RMDs by the required age. 

Finally, don't forget the importance of a balanced investment portfolio diversified across asset classes and considering your risk tolerance. It'll help ensure that you can maximize returns while minimizing taxes.

Tax reporting and record keeping 

The IRS requires that you report any capital gains made from your IRA accounts on your federal income tax return each year. This includes both long-term capital gains and short-term capital gains. However, the IRS doesn't require you to report the actual amounts of these capital gains; instead, you can just include any distributions taken from the IRA accounts as taxable income.

To ensure you report the correct amounts, you must keep accurate records of all transactions related to your IRAs and tax on IRA. It includes keeping track of investments purchased or sold, as well as contributions and withdrawals. You should also keep records of any dividends or interest earned on investments within the IRAs.

By keeping accurate records, you can easily report your capital gains information accurately with minimal hassle when filing yearly taxes. It will also help you in other ways, such as providing a historical record of your investing that can help guide future decisions about investments and retirement planning.

Examples of capital gains

You just earn capital gains when you sell a capital asset for more than its purchase price. Here are some example scenarios:

  • Investing in stocks: Suppose you purchased 100 shares of XYZ Corporation for $10,000. After holding the stock for several years, you decide to sell it when it reaches $15,000. Your $5,000 profit would be subject to capital gains tax at the applicable rate.
  • Selling a home: If you bought a home for $500,000 and sold it several years later for $600,000, you would owe taxes on the $100,000 difference, though if you have lived in a home as your primary residence for two out of the five years before the sale, the IRS allows you to exempt $250,000 in profit, or $500,000 if you're married and filing jointly.
  • Investing in real estate: If you bought an investment property for $200,000 and sold it after several years for $250,000, then your profits would be subject to capital gains tax at the applicable rate.
  • Investing in mutual funds: When you invest in mutual funds that include stocks or other securities, any profits you earn from selling those investments could be subject to capital gains tax if you held them outside of a retirement account such as an IRA or 401(k).

These are just a few examples showing how you can earn capital gains through various activities. Different rates may apply depending on the type of asset and how long you held it before the sale. That's why you should study the details before making any decisions so you can do what you need to minimize taxes owed and maximize any profits earned.

Common mistakes to avoid 

Managing your investments in an IRA can be challenging, and there are some common mistakes you should try to avoid. Here are some of them: 

  • Overtrading: One of the biggest mistakes people make is trading too much within their IRA. Over-trading can generate short-term capital gains subject to higher tax rates than long-term capital gains. Additionally, it can erode returns since most brokerages charge commissions and fees for each trade you make.
  • Ignoring tax implications: Sometimes, investors don't consider the tax implications of their retirement savings before deciding where or how to invest their money. Understanding these taxes can help you maximize your returns by minimizing any taxes owed.
  • Failing to rebalance: Regularly rebalance your portfolio so it's well-diversified and aligned with your risk tolerance and goals. If one sector or asset class becomes too large a portion of your portfolio, it can result in too much risk or dent your overall returns.
  • Underestimating fees: Many investors don't pay close enough attention to the fees they pay for services associated with their IRAs, such as account maintenance, trading commissions and fund expenses. But the fees can add up over time, so carefully review them before opening a new account or making any changes.

Gaining knowledge about retirement

For a serious investor, delving into the details of capital gains and IRAs can be tedious but worthwhile. Not only can you optimize your returns, but you'll also be poised to reduce your tax burden. With a thorough knowledge of short-term and long-term capital gains taxes, you'll set yourself up for a future full of solid retirement decisions.

Where should you invest $1,000 right now?

Before you make your next trade, you'll want to hear this.

MarketBeat keeps track of Wall Street's top-rated and best performing research analysts and the stocks they recommend to their clients on a daily basis.

Our team has identified the five stocks that top analysts are quietly whispering to their clients to buy now before the broader market catches on... and none of the big name stocks were on the list.

They believe these five stocks are the five best companies for investors to buy now...

See The Five Stocks Here

Beginner's Guide to Pot Stock Investing Cover

Click the link below and we'll send you MarketBeat's guide to pot stock investing and which pot companies show the most promise.

Get This Free Report
Claire Shefchik

About Claire Shefchik

  • shefchikclaire@gmail.com

Contributing Author

Energy, Commodities

Experience

Claire Shefchik has been a contributing writer for MarketBeat since 2023.

Areas of Expertise

Finance, business

Education

Bachelor of Arts in Writing, University of Arizona; Master of Fine Arts in Writing, Sarah Lawrence College

Past Experience

Business editor, BVI Beacon, senior writer, Business BVI


Featured Articles and Offers

Search Headlines: