Federal Capital Gains Tax Rate 2018 Calculator
Estimate your 2018 federal tax on capital gains using filing status, taxable income, asset holding period, and an optional Net Investment Income Tax estimate.
This calculator estimates 2018 federal tax treatment of a single capital gain transaction. It does not replace Schedule D, the Qualified Dividends and Capital Gain Tax Worksheet, or professional tax advice.
How to use a federal capital gains tax rate 2018 calculator correctly
A federal capital gains tax rate 2018 calculator helps estimate how much federal tax may apply when you sell an investment, business asset, or other property at a profit during the 2018 tax year. The phrase sounds simple, but the calculation is not always simple at all. In 2018, the federal government used different tax treatment for short-term gains and long-term gains, different threshold amounts by filing status, and in some situations an additional 3.8% Net Investment Income Tax, often called NIIT. That means a quick estimate can be useful, but only if the calculator reflects the actual 2018 rules.
This page is designed to do exactly that. It lets you choose your filing status, tell the calculator whether the gain is short-term or long-term, enter taxable ordinary income before the gain, and optionally include modified adjusted gross income for an NIIT estimate. If you also have a capital loss carryover from prior years, you can reflect that amount here to produce a more realistic estimate.
The most important distinction is whether your gain is short-term or long-term. If you held the asset for one year or less, the gain is generally taxed at ordinary income tax rates. If you held the asset for more than one year, the gain generally qualifies for long-term capital gains treatment, which in 2018 meant federal rates of 0%, 15%, or 20% depending on your taxable income and filing status. The calculator on this page models that structure and also accounts for the fact that long-term gains are stacked on top of ordinary taxable income.
Key point: Long-term capital gains rates in 2018 were not chosen in isolation. They depended on how much taxable income you already had before the gain. That is why the calculator asks for ordinary taxable income before the sale.
2018 long-term capital gains thresholds by filing status
For 2018, the long-term federal capital gains brackets were based on taxable income thresholds. These are the numbers most people are searching for when they look for a federal capital gains tax rate 2018 calculator.
| Filing status | 0% rate applies up to | 15% rate applies over this amount and up to | 20% rate applies over |
|---|---|---|---|
| Single | $38,600 | $38,601 to $425,800 | $425,800 |
| Married Filing Jointly | $77,200 | $77,201 to $479,000 | $479,000 |
| Married Filing Separately | $38,600 | $38,601 to $239,500 | $239,500 |
| Head of Household | $51,700 | $51,701 to $452,400 | $452,400 |
These thresholds matter because long-term gains can be split across multiple tax rates. For example, a married couple filing jointly with $70,000 of taxable ordinary income and a $20,000 long-term capital gain would not necessarily pay 15% on the entire gain. Part of the gain could fit into the remaining room under the 0% threshold, and only the rest might be taxed at 15%. A high-quality calculator should therefore compute a blended capital gains tax result instead of forcing the entire gain into one bucket.
2018 short-term gains were taxed as ordinary income
Short-term capital gains did not get the special 0%, 15%, or 20% treatment. Instead, they were taxed using the regular 2018 federal income tax brackets. That is why short-term investing often creates a higher federal tax burden than long-term investing, especially for taxpayers in the middle and upper brackets.
| 2018 ordinary rate | Single taxable income | Married Filing Jointly taxable income | Head of Household taxable income |
|---|---|---|---|
| 10% | Up to $9,525 | Up to $19,050 | Up to $13,600 |
| 12% | $9,526 to $38,700 | $19,051 to $77,400 | $13,601 to $51,800 |
| 22% | $38,701 to $82,500 | $77,401 to $165,000 | $51,801 to $82,500 |
| 24% | $82,501 to $157,500 | $165,001 to $315,000 | $82,501 to $157,500 |
| 32% | $157,501 to $200,000 | $315,001 to $400,000 | $157,501 to $200,000 |
| 35% | $200,001 to $500,000 | $400,001 to $600,000 | $200,001 to $500,000 |
| 37% | Over $500,000 | Over $600,000 | Over $500,000 |
If you choose the short-term option in the calculator, the tax estimate is based on the additional federal tax created by adding the gain to your ordinary taxable income. This mirrors the real logic of a marginal tax system. It is more accurate than simply multiplying your gain by the bracket you think you are in.
Why taxable income matters more than sale price
Many people search for a capital gains tax rate calculator after selling stock, a rental property, land, cryptocurrency, or a business interest. One common mistake is to focus on the sale price rather than the actual gain. Federal capital gains tax is generally computed on your gain, not on the gross proceeds. Gain usually means sale proceeds minus your tax basis, minus allowable selling expenses, and adjusted for other rules. If your basis is higher than you think, your taxable gain may be lower than you fear. If your basis is lower because of depreciation or prior adjustments, your taxable gain may be higher than expected.
Another common issue is using adjusted gross income when the calculation really depends on taxable income. The 2018 long-term capital gains brackets are tied to taxable income, not AGI. This calculator therefore asks for taxable ordinary income before the gain. The optional modified AGI field is only there to estimate NIIT, which has a different threshold system from the capital gains brackets.
Understanding the 3.8% Net Investment Income Tax estimate
For some higher-income taxpayers, capital gains may also be subject to the Net Investment Income Tax. In broad terms, NIIT is 3.8% on the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds the applicable threshold. In 2018, the basic NIIT thresholds were:
- Single: $200,000
- Head of Household: $200,000
- Married Filing Jointly: $250,000
- Married Filing Separately: $125,000
If you enter modified AGI in the calculator, it estimates NIIT based on the excess over the threshold, limited to the gain amount after loss carryover. This is useful for planning, especially when your long-term gain appears low at first glance because of the 15% capital gains rate, but your combined federal burden rises once NIIT is added.
Practical examples of 2018 capital gains tax planning
Example 1: Long-term stock sale for a single filer
Suppose a single taxpayer had $30,000 of taxable ordinary income in 2018 and sold appreciated shares for a $15,000 long-term gain. The first $8,600 of that gain could still fit under the $38,600 0% long-term capital gains threshold. The remaining $6,400 would generally be taxed at 15%. In that type of scenario, the taxpayer’s effective tax rate on the entire gain is much lower than 15% because part of the gain gets the 0% rate.
Example 2: Short-term gain for a joint return
Now imagine a married couple filing jointly with $140,000 of taxable ordinary income and a $10,000 short-term gain. Because the gain is short-term, it is treated as ordinary income. The marginal federal tax on that gain is generally based on the portion of the ordinary bracket into which it falls. In many cases, the entire gain may fall into the 22% bracket or spill into the 24% bracket depending on the rest of the return.
Example 3: High-income taxpayer and NIIT
A taxpayer with modified AGI above the NIIT threshold can face both the long-term capital gains tax and the 3.8% NIIT. For instance, a single filer with $220,000 of modified AGI and a $30,000 long-term gain could face capital gains tax plus NIIT on the lesser of the gain or the excess over the NIIT threshold. This is one reason two taxpayers with the same gain can end up with very different federal tax bills.
What this calculator includes and what it does not
The calculator on this page is built for focused estimation. It handles the major federal 2018 rules for a capital gain scenario:
- Short-term gains taxed at 2018 ordinary federal rates.
- Long-term gains taxed using 2018 0%, 15%, and 20% thresholds by filing status.
- Stacking logic, which means ordinary taxable income is considered before applying long-term gain bands.
- Optional capital loss carryover to reduce the gain used in the estimate.
- Optional NIIT estimate using 2018 threshold amounts.
However, it does not attempt to replace a complete tax return. It does not calculate state income tax, depreciation recapture, unrecaptured Section 1250 gain, collectibles gain rates, installment sale rules, qualified dividends interactions beyond the basic capital gain stacking logic, or all special treatment for business and real estate transactions. Those topics often require return-level analysis and source documents.
Best practices when using any 2018 capital gains tax calculator
- Use net gain, not gross sale proceeds.
- Separate long-term gains from short-term gains.
- Know your filing status for the tax year in question.
- Use taxable income if the calculator is modeling federal capital gains thresholds.
- Consider prior-year capital loss carryovers.
- Check whether NIIT may apply.
- Remember that federal tax is only one layer if your state taxes gains too.
Authoritative resources for 2018 capital gains rules
For official guidance and more technical detail, review these authoritative resources:
- IRS Topic No. 409, Capital Gains and Losses
- IRS information page for Schedule D and capital gains reporting
- Investor.gov glossary entry on capital gains
Bottom line
A federal capital gains tax rate 2018 calculator is most useful when it mirrors the actual 2018 federal tax framework. The right estimate depends on more than just the size of the gain. You need the holding period, filing status, taxable income, and in some cases modified AGI for NIIT. Use the calculator above to estimate the tax cost of a planned sale or to review a transaction that already occurred during the 2018 tax year. If your return includes multiple asset classes, depreciation recapture, qualified dividends, or complex loss offsets, use the estimate as a planning starting point and then confirm the final result with your tax software, enrolled agent, CPA, or tax attorney.