Free Tool · All 50 States

Capital Gains Tax Calculator (2027): How Big Is Your Tax Bill?

A capital gains tax calculator with depreciation recapture and installment sale built in. Estimate your all-in tax on a sale (federal capital gains, the 3.8% NIIT, depreciation recapture and your state), then see how much spreading the gain over years could save you. Works for all 50 states. Free, instant, no email required to see your number.

Works for selling a business, a rental or other property: enter depreciation taken and it adds the recapture layer. Selling in California? Use the California capital gains tax calculator, which applies the FTB brackets and handles rental property depreciation.

By , Tax & Exit Planning · Updated
Admitted to practice before the IRS.

Short answerSelling an appreciated asset in one year can stack four taxes: federal long-term capital gains at 0%, 15% or 20% (2027, IRS Rev. Proc. 2026-35), depreciation recapture up to 25%, the 3.8% net investment income tax and state tax. California taxes the gain as ordinary income up to 13.3%; California sellers should use the California capital gains tax calculator. Spreading the gain over years under IRC §453 can lower the total.

Estimate using 2027 federal rates & simplifying assumptions. Not tax advice.

Before you read further

What is the tax bill on your sale going to be?

Send me the sale price and rough basis. Within one business day I'll email you the actual number and the Seller's Guide to §453. If it doesn't fit your deal, I'll tell you that plainly.

Hans Goldstein, EA
Admitted to practice before the IRS

No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

How much tax will I owe on a sale?

Selling an appreciated asset in a single year stacks four taxes at once: the federal capital gains rate (up to 20%), depreciation recapture (up to 25%), the 3.8% Net Investment Income Tax, and your state tax. State tax varies widely: Texas, Florida, Nevada and five other states tax no capital gains, while California taxes the entire gain as ordinary income up to 13.3%. Washington has no wage income tax but taxes long-term gains on stocks, business interests and similar assets at 7%, and 9.9% on the part above $1 million, after a $278,000 standard deduction (2025). Real estate is exempt there (Washington DOR), so the calculator uses 0% for Washington. Pick your state above and this tool estimates all four, then shows what happens when you spread the capital-gain portion across multiple years with a structured installment sale under IRC §453: lower brackets, less surtax, and a smaller total bill. See capital gains tax rates by state.

Why does spreading the gain lower the tax?

Every one of those taxes is triggered by income landing in one year. Spread it out and each year's slice lands in a lower bracket and may stay under the 3.8% threshold. The "tax saved" figure above is the difference between paying it all at once and paying it in planned slices. On real estate the unrecaptured §1250 gain spreads with the payments too, taken first out of each one (Treas. Reg. §1.453-12); only §1245 recapture on equipment is due in the year of sale (§453(i)).

Want every variable (life expectancy, Roth conversions, IRMAA, city tax, QBI)? This is the quick estimate. For the CPA-grade, year-by-year model, use the Pro calculator or see which calculator fits your situation.

What are the 2027 capital gains tax brackets?

Long-term gains are not taxed at your income tax rate. They get their own three-rate schedule, and which rate you pay depends on your total taxable income for the year, including the gain itself. That is why a single large sale can push a gain that would have been taxed at 0% all the way to 20%.

Filing status0% up to15% up to20% above
Single$51,050$563,200$563,200
Married filing jointly$102,100$633,600$633,600
Head of household$68,350$598,400$598,400
Married filing separately$51,050$316,800$316,800

Tax year 2027 thresholds, per IRS Rev. Proc. 2026-35, section 3.03 (for a sale closing in 2027 the amounts are $51,050 / $563,200 single and $102,100 / $633,600 married filing jointly, Rev. Proc. 2026-35). On top of these, the 3.8% net investment income tax applies once modified AGI passes $200,000 single or $250,000 married filing jointly, and those two thresholds are not indexed for inflation.

Capital gains calculator 2027: three worked examples

These use the 2027 thresholds in the table above (IRS Rev. Proc. 2026-35). Each gain is long-term and sits on top of your other taxable income, so the first dollars of gain fill whatever 0% room is left. These are federal long-term rates only, before state tax, so you can check the calculator against them.

  1. Single, $40,000 of other taxable income, $100,000 gain. The 0% rate runs to $51,050, so $11,050 of the gain is tax free. The other $88,950 is taxed at 15%: $13,342.50.
  2. Married filing jointly, $90,000 of other taxable income, $200,000 gain. The 0% rate runs to $102,100, so $12,100 is tax free. The other $187,900 is taxed at 15%: $28,185.
  3. Single, $150,000 of other taxable income, $600,000 gain. The stack runs from $150,000 to $750,000. From $150,000 to $563,200 is $413,200 at 15% ($61,980). Above $563,200 is $186,800 at 20% ($37,360). Federal long-term tax: $99,340. If the gain is net investment income and you take the 2027 standard deduction of $16,600, MAGI is about $766,600, so the 3.8% net investment income tax applies to the $566,600 above $200,000: about $21,530.80 more.

Sources: IRS Rev. Proc. 2026-35, section 3.03 (2027 maximum zero and 15 percent rate amounts) and section 3.15 (2027 standard deduction); IRC §1411 for the $200,000 single net investment income tax threshold. Arithmetic by Goldstein & Co. Checked November 21, 2026.

What is the difference between long-term and short-term capital gains?

Hold the asset more than one year and the gain is long-term, taxed at 0%, 15% or 20%. Hold it a year or less and it is short-term, taxed as ordinary income at your regular bracket, which currently tops out at 37%. The holding period is measured to the day, so a closing date one day past the one-year mark changes the rate.

Does this work as a house flipping tax calculator?

Only partly. This calculator assumes a long-term gain. A flip held one year or less is a short-term gain, taxed at ordinary rates (10% to 37% federal in 2027), not 0%, 15% or 20%. If you flip often enough to be in the business, the IRS can treat you as a dealer: the profit is ordinary income, can be subject to self-employment tax, and dealer sales cannot use installment sale reporting (IRC §453(b)(2) and §453(l)). For a flip, take the profit and apply your ordinary bracket from IRS Rev. Proc. 2026-35, plus state tax. In California that state tax is the same as on a long-term gain; the California capital gains tax calculator shows it.

Capital gains calculator for rental property: a worked example

A married couple filing jointly has $100,000 of other taxable income in 2027. They sell a rental for $900,000 after selling costs. They paid $500,000 and took $150,000 of depreciation, so the adjusted basis is $350,000 and the gain is $550,000. Of that gain, $150,000 is unrecaptured Section 1250 gain and $400,000 is long-term capital gain. Assume no suspended passive losses and leave state tax out.

LayerAmount2027 federal tax
Unrecaptured §1250 gain, taxed at ordinary rates capped at 25% (here it fills the 12%, 22% and 24% brackets from $100,000 to $250,000)$150,000$33,230
Long-term gain at 15% ($250,000 to $633,600)$383,600$57,540
Long-term gain at 20% (above $633,600)$16,400$3,280
3.8% net investment income tax (MAGI $683,200 minus the $250,000 threshold)$433,200$16,461.60
Federal tax caused by the sale$550,000 gain$110,511.60

That is about 20% of the gain. The depreciation layer alone costs $33,230, which is why the calculator asks for prior depreciation. State tax comes on top. In California the whole gain is taxed as ordinary income, so run California sales in the California capital gains tax calculator. Spreading the sale under IRC §453 moves both the §1250 slice and the capital gain into later years, with the §1250 gain taken first out of each payment (Treas. Reg. §1.453-12).

Sources: IRS Rev. Proc. 2026-35, section 3.01 Table 1 (2027 joint brackets), section 3.03 (0% and 15% rate amounts) and section 3.15 ($33,200 joint standard deduction); IRC §1(h)(1) for the 25% cap on unrecaptured §1250 gain; IRC §1411 for the $250,000 joint threshold. Arithmetic by Goldstein & Co. Checked November 21, 2026.

How is depreciation recapture taxed?

If you took depreciation on a rental or a business asset, that depreciation comes back before anything gets the favorable capital gains rate. On real property, the portion attributable to prior depreciation is unrecaptured Section 1250 gain and is taxed at a maximum 25% rate, not 15% or 20%. On equipment and other personal property, Section 1245 recapture is worse still and is taxed as ordinary income.

Depreciation is the line owners leave out. Run a rental at 15% or 20% and forget the depreciation deductions, and the estimate is low: in the example above the depreciation layer alone costs $33,230. The calculator above asks for prior depreciation for exactly this reason. A few other categories also break the 20% ceiling: collectibles such as coins and art are taxed at up to 28%, and so is the taxable portion of qualified small business stock under Section 1202.

The new $6,000 senior deduction, and how one sale can erase it

For tax years 2025 through 2028, taxpayers who reach age 65 by the end of the year can claim an additional $6,000 deduction, $12,000 for a married couple where both spouses qualify. It begins phasing out at $75,000 of modified AGI, or $150,000 filing jointly, and is fully gone by roughly $175,000 and $250,000.

A large one-year gain blows straight through those thresholds and wipes the deduction out. Spread the same gain across several years and much of it survives. Enter your age above and the calculator shows how much of the deduction each path actually keeps.

Frequently asked questions

How is capital gains tax calculated on a sale?

Long-term capital gains are taxed federally at 0%, 15%, or 20% depending on your total taxable income, plus a 3.8% Net Investment Income Tax above certain thresholds. Depreciation you previously claimed is recaptured (up to 25% federally), and states like California tax the entire gain as ordinary income, up to 13.3%.

How does spreading a sale over years reduce the tax?

Because tax brackets, the 3.8% surtax, and California's top rate are all driven by your income in a single year, recognizing a large gain all at once pushes you into the highest brackets. A structured installment sale under IRC §453 spreads the gain across multiple years, keeping more of it in lower brackets.

Does this calculator include California state tax?

Yes. It estimates California tax using current marginal brackets (California taxes capital gains as ordinary income, up to 13.3% including the mental-health surcharge). You can also select another state's effective rate or no state tax.

Can depreciation recapture be deferred too?

On real estate, mostly yes. Unrecaptured Section 1250 gain (depreciation on a building) is reported under the installment method like the rest of the gain and comes out of each payment first (Treas. Reg. §1.453-12). Only Section 1245 recapture (equipment and other personal property) and any Section 1250 additional depreciation must be recognized in the year of sale (§453(i)). This calculator spreads the Section 1250 gain with the payments, taken first.

Is this calculator tax advice?

No. It's an educational estimate using current-year rates and simplifying assumptions. Your actual tax depends on your full return. Use it to see the scale of the opportunity, then talk to Hans and your CPA before acting.

Planning a big sale? Run the numbers first.

Before you sign anything, run your numbers with someone who structures the deal to be tax-smart and audit-ready from day one.

Call 213-414-2808 Run the Numbers →
Hans Goldstein, NPN 20602398

Get the free Seller's Guide to §453 + a fit-check

A plain-English guide for sellers on how a structured installment sale can help you net more after tax when you sell a business, practice, or property. It covers the math, the alternatives, and how to tell if your deal fits.

After the sale closes it is too late to add a structure, so the number matters before escrow opens.

More details (optional)
Hans Goldstein, EA
Admitted to practice before the IRS

Hans Goldstein · 213-414-2808 · CA Insurance License #4273294 · Independent §453 specialist · Goldstein & Co. LLC

Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Also see: structured sale tax bill illustration

Get my number Book 15 min Call

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.