Financial Tools

Capital Gains Tax Calculator

Federal tax on a sale of stock, property or a main home, including the 3.8% Net Investment Income Tax and the main-home exclusion. You pick your long-term bracket, because the thresholds are re-indexed every year and a stale number would be worse than a question.
The Sale
Sale Price
What You Paid (your cost basis)
Improvements Added to Basis (capital improvements, not repairs)
Selling Costs (commission, transfer tax, legal)
Holding Period
You
Filing Status
Your Other Taxable Income
Your Long-Term Rate

Values shown are examples. Federal only, state tax is not included. The 0, 15 and 20 percent thresholds are set by the IRS each year, check yours before relying on the bracket you picked.

What You Owe
Total Federal Tax $0
Capital Gains Tax $0
Net Investment Income Tax $0
Effective Rate on the Gain n/a
Gain on the Sale $0
Excluded From Tax $0
Taxable Gain $0
Proceeds After Federal Tax $0
Share of the Gain You Keep n/a

Everything here stays in your browser. The link carries your inputs inside the address itself, and the PDF is made by your own device.

For illustration only, not financial advice. Results are estimates based on the numbers you enter and do not constitute an offer, rate quote or approval.

How this is worked out

Gain is the sale price, less selling costs, less your basis. Basis is what you paid plus capital improvements, not repairs.

Held over a year, the gain is taxed at 0, 15 or 20 percent depending on your taxable income. Those thresholds are re-indexed every year, so this page asks which bracket applies rather than guessing. Held a year or less, the gain stacks on ordinary income and is taxed through the same federal brackets the paycheck calculator uses.

On top of either, the Net Investment Income Tax adds 3.8% on the lesser of your investment income and the amount your modified income exceeds $200,000 single or $250,000 filing jointly (26 U.S.C. 1411). Those thresholds are fixed in the statute and have never been indexed.

If the property was your main home for two of the five years before the sale, section 121 excludes up to $250,000 of gain, $500,000 filing jointly. Federal only, state tax is not included.

Questions people ask

What counts towards my basis?
What you paid, plus purchase costs and capital improvements that add value or extend the life of the property. Painting and repairs do not count, a new roof or an addition does. Keep the receipts, basis is the number people lose.
Is the 3.8% surtax on the whole gain?
No. It applies to the smaller of your net investment income and the amount your modified income runs over the threshold, which is why a large gain on a modest income often pays it on only part of the gain.
Can I use the main home exclusion more than once?
Generally once every two years, and you need two of the last five years of both ownership and use as your main home. Partial exclusions exist for a move forced by work, health or unforeseen circumstances.
What about losses?
Capital losses offset capital gains, and up to $3,000 of net loss can offset ordinary income each year, with the rest carried forward. This page prices a single sale, it does not net a whole portfolio.
Does my state tax capital gains too?
Most do, and several tax them as ordinary income. Nothing on this page includes state tax.

Get Your Full Report

We will save this calculation to your Banrox record so you can pick it up later.

Success!

Your calculation has been saved.