Federal capital gains tax calculator for stocks, crypto and property
Long-term capital gains (assets held over one year) stack on top of your ordinary income and are taxed at 0%, 15% or 20% depending on where your total taxable income lands. The calculator runs the IRS Schedule D worksheet logic, including the interaction with your ordinary income and the standard deduction.
Enter sales by hand or import your broker and exchange CSVs, and the calculator applies your filing status, the home-sale exclusion on a main home, depreciation recapture on a rental, the Schedule D worksheet, the 3.8% net investment income tax, the 28% collectibles and 25% unrecaptured section 1250 rates when a sale carries them, and the $3,000 net-loss limit, then reports wash sales and out-of-year sales. Pick your state in section 3 and its own income tax on the gain is added on top. Everything stays in your browser.
Rates current as of 2026-09-14, from the IRS’s 2026 inflation adjustments (Rev. Proc. 2025-32).
Current rules
The rates behind the number
Long-term capital gains breakpoints (tax year 2026)
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
| Head of household | $66,200 | $579,600 | $579,600 |
Federal income-tax brackets 2026 (single; the calculator holds every filing status)
| Taxable income | Marginal rate |
|---|---|
| $0 – $12,400 | 10% |
| $12,400 – $50,400 | 12% |
| $50,400 – $105,700 | 22% |
| $105,700 – $201,775 | 24% |
| $201,775 – $256,225 | 32% |
| $256,225 – $640,600 | 35% |
| $640,600 and over | 37% |
Tables show the figures from the authority page above, as at 2026-09-14. State income-tax tables, all fifty states plus the District of Columbia at current-year figures, are in the calculator itself under the State box in section 3.
Property
Capital gains tax on the sale of property
The tax on a property sale starts with the gain: the sale price minus selling costs, minus your basis, which is what you paid plus buying costs and the improvements you made. Keep the property more than one year and the gain is long-term, taxed at 0%, 15% or 20% depending on where your total taxable income lands. Sell within a year and the whole gain is ordinary income at your marginal rate.
What you owe depends on what kind of property it is. A home you lived in usually qualifies for an exclusion of $250,000 or $500,000. A rental property carries depreciation recapture, and an inherited property starts from a stepped-up basis. The real estate card in the calculator handles all three: a main home box, a box for unrecaptured section 1250 gain and the Schedule D Tax Worksheet underneath.
Main home
The $250,000 and $500,000 home-sale exclusion
If you sell your main home, section 121 of the tax code excludes up to $250,000 of gain, or $500,000 for married couples filing jointly. You qualify when you owned the home and lived in it as your main home for at least two of the five years before the sale, and you have not used the exclusion on another home in the previous two years. If you move sooner for a job change, a health reason or another unforeseen circumstance, you can claim a reduced exclusion. A loss on a main home is never deductible.
Gain above the exclusion is taxed like any other long-term gain. Tick the main home box on the real estate card, choose your filing status in section 3, and the calculator subtracts the exclusion before it works out the tax.
Example: a couple filing jointly sells their home in 2026
| Step | Amount |
|---|---|
| Purchase price | $350,000 |
| Sale price | $900,000 |
| Gain | $550,000 |
| Section 121 exclusion (married filing jointly) | $500,000 |
| Taxable long-term gain | $50,000 |
| Other income | $150,000 |
| Federal tax on the gain | $7,500 |
Rental property
Selling a rental property and depreciation recapture
A rental property sale has a second layer. Each year you rent the property you deduct depreciation, and the IRS lowers your basis by that depreciation, claimed or not. Your gain is the sale price minus selling costs minus that adjusted basis. The part of the gain that comes from earlier depreciation is unrecaptured section 1250 gain, taxed at up to 25%. The rest is long-term gain at 0%, 15% or 20%.
In the calculator, enter the adjusted basis (cost less depreciation) as the purchase price, add improvements in their own field, and put the total depreciation in the unrecaptured section 1250 box. Gain on collectibles such as coins, bullion and art has its own box, taxed at up to 28%.
High earners owe a further 3.8% net investment income tax on the gain once modified adjusted gross income passes $200,000 (single or head of household) or $250,000 (married filing jointly). The calculator adds it when your income crosses the threshold.
Example: a single landlord sells a rental in 2026
| Step | Amount |
|---|---|
| Original cost | $300,000 |
| Improvements | $40,000 |
| Depreciation taken | $70,000 |
| Adjusted basis | $270,000 |
| Sale price less selling costs | $490,000 |
| Gain | $220,000 |
| Unrecaptured section 1250 gain (up to 25%) | $70,000 |
| Other income | $120,000 |
| Federal tax on the gain | $44,584 |
| Tax if none of the gain were depreciation | $38,320 |
Inheritance
Inherited property and the stepped-up basis
Property you inherit takes a basis equal to its fair market value on the date the owner died, not what they paid for it (section 1014). Only growth after that date is taxable when you sell. The holding period is long-term automatically (section 1223(9)), so a sale within a year of inheriting still gets the 0%, 15% and 20% rates.
In the calculator, enter the date-of-death value as the purchase price and pick a purchase date more than a year before the sale. Selling below the date-of-death value shows as a loss.
Example: an heir sells an inherited house in 2026
| Step | Amount |
|---|---|
| Value on the date of death (your basis) | $450,000 |
| Sale price | $480,000 |
| Taxable long-term gain | $30,000 |
| Other income (single) | $80,000 |
| Federal tax on the gain | $4,500 |
Investments
Stocks, ETFs and crypto
A sale on the one-year anniversary is still short-term: you have to hold the asset more than a year. Long-term gains stack on top of your ordinary income and fall into the 0% band up to $49,450 of taxable income for a single filer ($98,900 jointly), the 15% band up to $545,500 ($613,700 jointly) and 20% above that, on 2026 figures.
The IRS treats crypto as property. Selling a coin, swapping it for another and spending it are all disposals, and each one carries its own basis and holding period on Form 8949 and Schedule D. Import your exchange CSVs and the calculator matches the trades first in, first out.
If you sell a stock or ETF at a loss and buy a substantially identical security within 30 days before or after the sale, the loss is disallowed under the wash sale rule (section 1091). The calculator lists wash sales in its checklist so you can adjust the basis yourself.
Example: a single filer sells shares held 4 years in 2026
| Step | Amount |
|---|---|
| Purchase price | $20,000 |
| Sale price | $60,000 |
| Long-term gain | $40,000 |
| Other income | $90,000 |
| Taxed at 0% | $0 |
| Taxed at 15% | $40,000 |
| Taxed at 20% | $0 |
| Federal tax on the gain | $6,000 |
Losses
Offsetting capital losses
Losses net against gains of the same type first, short-term against short-term and long-term against long-term, and then the two results offset each other. If losses still exceed gains, you deduct up to $3,000 a year against ordinary income ($1,500 if married filing separately) and carry the rest into later years with no time limit. A carried loss keeps its short-term or long-term character.
The calculator applies the netting and the annual limit and shows what carries forward. Type the loss you brought in from your last return into section 3.
Filing
When to file and pay the tax
Report sales on Form 8949 and Schedule D with your Form 1040, due on April 15 after the tax year ends. A large gain can also create an estimated tax bill: when withholding does not cover the tax on the sale, the IRS expects quarterly payments on April 15, June 15, September 15 and January 15.
The calculator covers one calendar year at a time. A sale dated outside the year you have open is left out of the numbers, so open a return for each year you sold in.
Questions
United States capital gains questions
How do I calculate capital gains tax on the sale of a property?
Subtract your basis (the purchase price plus buying costs and improvements) and your selling costs from the sale price. If you owned the property more than a year, the gain is taxed at 0%, 15% or 20%, stacked on top of your other income. If it was your main home, up to $250,000 of the gain ($500,000 for a couple filing jointly) is excluded first. Add the property on the real estate card above and the calculator does the rest.
How is inherited property taxed when sold?
Your basis is the property's value on the date the previous owner died, and the holding period is long-term whenever you sell. In the example above, an inherited house valued at $450,000 that sells for $480,000 produces a $30,000 gain and $4,500 of federal tax, whatever the original owner paid.
How do I calculate capital gains tax on the sale of a rental property?
Adjust your basis for depreciation, then subtract the adjusted basis and selling costs from the sale price. The part of the gain that reverses earlier depreciation (unrecaptured section 1250 gain) is taxed at up to 25% and the rest at the long-term rates. In the rental example above the $220,000 gain carries $70,000 of recapture and $44,584 of federal tax.
How much of my home sale gain is tax free?
Up to $250,000 if you file as single or head of household and $500,000 if you file jointly, provided you owned and lived in the home for two of the last five years. In the home example above a $550,000 gain leaves $50,000 taxable after the exclusion.
How do the 0/15/20 rates interact with my salary?
Your ordinary income fills the 0% band first. A long-term gain is taxed at 0% only to the extent your taxable income, salary plus the gain, still falls under the breakpoint for your filing status; the rest is taxed at 15%, then 20% above the second breakpoint.
What about short-term gains?
Gains on assets held one year or less are ordinary income: they simply stack onto your wages at your marginal rate, which the calculator also handles.
Does the calculator do state income tax too?
Yes, once you pick your state in section 3. It holds current-year rate tables for all fifty states and the District of Columbia, including the long-term treatments that differ from the ordinary schedule: Hawaii's elective 7.25%, Montana's separate 3% and 4.1% gains ladder, the long-term subtractions in Arizona, Arkansas and South Carolina, and Washington's 7% excise on large long-term gains. The state's tax on the gain appears as its own line and feeds the combined total; states with no income tax, like Texas and Florida, show zero.
Where do the 2026 breakpoints come from?
Breakpoints are taxable-income thresholds; Rev. Proc. 2025-32 section 4.03 is the sole official carrier for 2026.
What are the breakpoint amounts per filing status?
Section 4.03 gives the maximum zero-rate amount and maximum 15%-rate amount under section 1(j)(5)(B) per filing status: married-joint $98,900 / $613,700; married-separate $49,450 / $306,850; head-of-household $66,200 / $579,600; all other individuals (single) $49,450 / $545,500. The 0% band runs to the zero-rate amount and the 15% band to the 15%-rate amount.
Is the 20% rate itself published anywhere?
The 20% top rate is statutory (IRC section 1(h)) and is not restated in section 4.03; IRS Topic no. 409 (fetched 2026-09-14) states a 20% rate applies to the extent taxable income exceeds the 15%-rate threshold.
Do surviving spouses use the married-filing-jointly amounts?
The married-joint amounts also apply to surviving spouses per the section 4.03 table.
Are estate and trust breakpoints included?
The section 4.03 estates-and-trusts breakpoints ($3,300 zero-rate / $16,250 15%-rate) are not representable in this filing-status schema and are excluded.
How current are the IRS's own topic pages?
IRS Topic no. 409 (fetched 2026-09-14) states the page itself still displayed tax year 2025 breakpoints at last review; the 2026 amounts here come only from Rev. Proc. 2025-32.
What exceptional rates exist outside this schedule?
Exceptional long-term gains rates outside this schedule, per IRS Topic no. 409: a maximum 25% rate on unrecaptured section 1250 gain and a maximum 28% rate on collectibles and section 1202 qualified small business stock.
Also on capitalgainstax.net