Federal Capital Gains Tax Rate 2023 Calculator
Estimate your 2023 federal capital gains tax using filing status, taxable income, cost basis, sales price, holding period, and optional loss offsets. This calculator estimates long-term capital gains rates of 0%, 15%, or 20%, and can also estimate short-term gains taxed at ordinary federal income tax rates.
Capital Gains Tax Calculator
Use taxable income if you know it. This calculator uses your entered taxable income to estimate the federal rate applied to the gain.
Optional but recommended. This helps estimate the 3.8% Net Investment Income Tax when applicable.
Estimated Results
Enter your numbers and click Calculate Tax to see your estimated 2023 federal capital gains tax.
How the federal capital gains tax rate 2023 calculator works
A federal capital gains tax rate 2023 calculator helps you estimate how much federal tax may be owed when you sell an investment or other capital asset for a profit. In plain terms, a capital gain is generally the difference between what you sold an asset for and your adjusted basis in that asset. Your adjusted basis often starts with your purchase price, then changes for certain costs, improvements, and other adjustments. For a simple estimate, most people begin with sale price minus cost basis minus selling fees, and then reduce the result by any available capital loss carryovers.
The reason this type of calculator matters is that capital gains are not always taxed the same way. The IRS separates them into two major categories: short-term and long-term. If you hold an asset for one year or less, the gain is typically short-term and taxed at ordinary federal income tax rates. If you hold it for more than one year, the gain is generally long-term and may qualify for preferential federal rates of 0%, 15%, or 20% depending on your filing status and taxable income. That difference can be significant. The same dollar gain can produce a much smaller tax bill when it qualifies as a long-term capital gain.
This calculator is designed to estimate federal tax only. It does not replace professional tax advice, and it does not include every possible special rule, such as collectibles rates, Section 1250 recapture, qualified small business stock treatment, or every adjustment tied to a specific return. Still, it is a practical planning tool for investors, business owners, and households deciding whether to sell appreciated assets during the 2023 tax year.
What information you need before using the calculator
- Filing status: The 2023 long-term capital gains thresholds differ for single filers, married couples filing jointly, married filing separately, and head of household filers.
- Holding period: The tax result changes depending on whether the asset was held for more than one year or not.
- Sale price: This is the gross amount received from the sale.
- Cost basis: Usually what you paid for the asset, adjusted if necessary.
- Selling costs: Commissions, transfer fees, and certain closing costs can reduce your taxable gain.
- Loss carryovers or other capital losses: Existing losses may offset capital gains and reduce the tax bill.
- Taxable income excluding the gain: This is important because your long-term rate depends on where the gain falls relative to your other income.
- MAGI estimate: Modified adjusted gross income may determine whether the Net Investment Income Tax applies.
2023 federal long-term capital gains tax rates
For most taxpayers, long-term capital gains in 2023 are taxed at 0%, 15%, or 20%. The applicable rate is determined by filing status and taxable income. In many cases, a portion of the gain can fall into one rate band and the rest into a higher band. That is why a better calculator does not simply assign one flat percentage to the entire gain. Instead, it estimates how much of the gain falls into each threshold.
| Filing status | 0% rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Single | $44,625 | $492,300 | Over $492,300 |
| Married filing jointly | $89,250 | $553,850 | Over $553,850 |
| Married filing separately | $44,625 | $276,900 | Over $276,900 |
| Head of household | $59,750 | $523,050 | Over $523,050 |
These threshold amounts are highly relevant because taxpayers often assume the entire gain is taxed at one rate. In reality, if your taxable income excluding the gain is below a threshold, part of your gain may be taxed at 0%, with the next portion at 15%, and only the highest portion, if any, at 20%.
Example of a blended long-term capital gains rate
Suppose a single filer has $30,000 of taxable income before the capital gain and realizes a $25,000 long-term gain. The first $14,625 of that gain could fit into the remaining space below the 0% threshold of $44,625. The rest would generally move into the 15% band. That means the effective tax rate on the whole gain may be much lower than 15%, because not every dollar is taxed at the same rate.
2023 federal ordinary income tax brackets for short-term capital gains
Short-term capital gains do not receive the preferential 0%, 15%, or 20% treatment. Instead, they are generally taxed as ordinary income. That means your short-term gain stacks on top of other taxable income and is taxed according to the 2023 ordinary income tax brackets. A useful capital gains calculator should account for this by comparing tax on your taxable income before the gain with tax after adding the short-term gain.
| Filing status | Top of 12% bracket | Top of 22% bracket | Top of 24% bracket | Top of 32% bracket | Top of 35% bracket |
|---|---|---|---|---|---|
| Single | $44,725 | $95,375 | $182,100 | $231,250 | $578,125 |
| Married filing jointly | $89,450 | $190,750 | $364,200 | $462,500 | $693,750 |
| Married filing separately | $44,725 | $95,375 | $182,100 | $231,250 | $346,875 |
| Head of household | $59,850 | $95,350 | $182,100 | $231,250 | $578,100 |
Because short-term gains are stacked on top of your other taxable income, the tax cost can be materially higher than a long-term sale. This is one reason tax planning around holding period can be powerful. Waiting until an asset crosses the more-than-one-year mark may lower the federal rate substantially, assuming market conditions and investment goals still support holding the asset.
Why the Net Investment Income Tax can change the outcome
Some taxpayers also owe the 3.8% Net Investment Income Tax, often referred to as NIIT. This surtax can apply to capital gains when modified adjusted gross income exceeds certain thresholds. For estimation purposes, many calculators use an entered MAGI or a proxy figure to test whether NIIT might apply. In 2023, the common thresholds are:
- Single: $200,000
- Head of household: $200,000
- Married filing jointly: $250,000
- Married filing separately: $125,000
The surtax generally applies to the lesser of net investment income or the amount by which MAGI exceeds the threshold. For a simplified estimate, the calculator applies 3.8% to the smaller of the net gain and the excess MAGI over the NIIT threshold. That approach is useful for planning, although your final return may differ depending on dividends, interest, rental income, and other items included in your investment income calculation.
Common mistakes when estimating capital gains tax
- Ignoring basis adjustments: Home improvements, reinvested dividends, stock splits, and inherited asset basis rules can change the gain calculation.
- Forgetting selling expenses: Broker commissions and transaction fees can reduce gain.
- Using gross income instead of taxable income: The long-term capital gains threshold is based on taxable income, not just wages or salary.
- Overlooking loss carryovers: Prior-year capital losses may offset current-year gains.
- Assuming no surtax applies: Higher-income taxpayers may owe NIIT on top of the regular capital gains tax.
- Confusing federal and state rules: State capital gains treatment can be very different and often does not follow the federal preferential rate structure.
When this calculator is especially useful
A federal capital gains tax rate 2023 calculator is particularly helpful in the following situations:
- You are deciding whether to sell appreciated stock before year-end.
- You want to compare a sale this year versus next year.
- You are considering tax-loss harvesting to offset gains.
- You are planning distributions or sales from a taxable brokerage account.
- You want to estimate whether staying below the 0% threshold is possible.
- You need a quick estimate before meeting with a CPA, enrolled agent, or financial planner.
Practical planning ideas
Investors who expect capital gains often benefit from running several scenarios. For example, try entering a lower ordinary taxable income amount if you expect deductions to increase. Then compare that result to a scenario in which you sell another asset in the same year. If you are near the top of the 0% or 15% long-term bracket, even a moderate amount of additional income can increase the tax on the next dollars of gain. That does not always mean you should avoid selling, but it does mean you can make the decision with clearer numbers.
Another strategy is to pair gains with losses. If you have unrealized losses in other positions, harvesting those losses may reduce or eliminate some of your realized gains. Similarly, if your taxable income is unusually low in one year due to retirement, a career break, or a business loss, that year may be attractive for realizing long-term gains at a lower federal rate.
Authoritative sources for 2023 federal capital gains rules
For official and educational guidance, review the following resources:
- IRS Tax Topic No. 409: Capital Gains and Losses
- IRS Publication 550: Investment Income and Expenses
- Cornell Law School Legal Information Institute: U.S. Tax Code
Bottom line
The best federal capital gains tax rate 2023 calculator is one that does more than multiply your profit by a single percentage. It should distinguish between long-term and short-term treatment, recognize filing status differences, account for taxable income already on the return, estimate NIIT exposure, and show a clear breakdown of the result. That is exactly what the calculator above is designed to do.
If you want a planning estimate, use the tool to test multiple sale prices, holding periods, and income levels. If you need a filing-ready figure, use your brokerage tax documents, confirm your adjusted basis, and review the result with a qualified tax professional. A well-planned sale can improve after-tax returns, avoid surprise liabilities, and help you decide whether selling now or later is the smarter move.