📘 COMPLETE HANDBOOK · 20 SECTIONS · ~25 MIN READ

Capital Gains Tax Calculator: The Complete 2026 Guide

How capital gains tax actually works in 2025-2026: brackets, holding periods, NIIT, and the home-sale exclusion — with a worked example and the honest limits of any calculator.

🍽️ Try the Capital Gains Tax Calculator — free All guides

Selling an asset — stock, a rental property, crypto, a stake in a business — usually means a conversation with the capital gains tax. The rules are genuinely friendly by tax standards, but they are also layered: preferential rates, income-based brackets, a surtax, and special treatment for homes. A capital gains tax calculator exists to untangle that stack in seconds. This guide explains what the tool does, who benefits, and the exact 2025 and 2026 federal figures the math runs on, then walks a real example from sale price to after-tax proceeds. As with everything here, treat the output as an educational estimate, not professional advice.

SECTION 01What a Capital Gains Tax Calculator Does

When you sell an asset for more than you paid for it, the profit is a capital gain, and the federal government wants a share of it. A capital gains tax calculator turns three raw facts — what you paid, what you sold for, and how long you held — into an estimate of the tax you may owe. It applies the correct rate tier, checks whether the 3.8 percent net investment income tax adds on top, and shows the after-tax proceeds you would actually keep. It is an estimate, not a filing, and its accuracy is only as good as the basis and dates you enter.

What makes the tool more than arithmetic is the way it handles context. The same 20,000-dollar gain can be taxed at 0 percent, 15 percent, 20 percent, or as ordinary income reaching 37 percent, depending on your other income and how long you owned the asset. A good calculator models that stacking, so you can see why the calendar date of a sale — one day past the one-year mark — can matter more than anything else in the transaction.

SECTION 02Who Actually Needs One

You do not need to be wealthy to meet this tax. Freelancers rebalancing an index fund, a worker selling vested company shares, an investor cashing out crypto, or a family selling a second home can all trigger a reportable gain. If you received a 1099-B or a capital gain distribution on a fund statement, or you sold anything on an exchange this year, a calculator tells you within a minute whether the tax is trivial or material. It is equally useful before a sale: adjusting the timing by a few weeks can move you into a lower rate tier.

Homeowners are a special audience. The IRS lets most sellers of a primary residence exclude 250,000 dollars of gain as a single filer, or 500,000 married filing jointly, so many home sales produce no tax at all — but rentals, inherited houses, and second homes follow different paths. Retirees doing 0 percent bracket harvesting and heirs deciding what to do with inherited shares also benefit from modeling before acting. In every case the tool's job is the same: show the after-tax number before you commit.

SECTION 03The 2025-2026 Rules the Math Runs On

Long-term gains — from assets held more than one year — are taxed at 0, 15, or 20 percent, and the tier depends on your taxable income, including the gain itself. For 2025 the 0 percent bracket runs up to 48,350 dollars of taxable income for single filers and 96,700 for married couples filing jointly. The 15 percent tier extends to 533,400 and 600,050 respectively, and anything above that is taxed at 20 percent. These tiers are generous compared with ordinary income rates, which top out at 37 percent.

For 2026 the thresholds step up slightly: 0 percent applies up to 49,450 dollars of taxable income for single filers and 98,900 for joint filers, and the 15 percent band runs to 545,500 and 613,700. Note that the thresholds are measured against taxable income — after deductions — not gross income. A single filer earning a 55,000-dollar salary in 2026, taking the 15,750-dollar standard deduction, and realizing a 10,000-dollar long-term gain ends up with about 49,250 dollars of taxable income, just under the 49,450 line, so the entire gain can sit in the 0 percent tier.

Short-term gains — one year of holding or less — get no special treatment. They are added to your ordinary income and taxed at your normal bracket rate, anywhere from 10 to 37 percent for 2025-2026. This is the most expensive casual mistake in investing: selling a position a few days before the one-year mark and jumping several rate tiers. The holding period counts from the day after purchase through the day of sale, and it must exceed twelve months to qualify.

SECTION 04NIIT, Collectibles, and the Rates People Miss

On top of the bracket tax sits the net investment income tax, an additional 3.8 percent that applies when your modified adjusted gross income exceeds 200,000 dollars as a single filer or 250,000 married filing jointly — thresholds that are not indexed for inflation. The tax applies to the lesser of your net investment income or the amount your income exceeds the threshold. A married couple earning 270,000 dollars, including 60,000 of gains, pays NIIT on 20,000, not on the full gain.

Two special categories deserve a flag. Gains on collectibles — art, coins, most physical precious metals — carry a 28 percent maximum rate instead of 20. So-called unrecaptured Section 1250 gain, the part of a rental property's profit attributable to depreciation you previously claimed, is capped at a 25 percent rate. A calculator that ignores these quirks misstates the bill, which is why the honest tools ask what kind of asset you sold before they commit to a number.

SECTION 05A Worked Example With Real 2025 Numbers

Consider Maya, a single filer in 2025 with a 95,000-dollar salary. She takes the 15,000-dollar standard deduction, leaving 80,000 dollars of taxable income before any gains, and sells a fund she has held for three years at a 12,000-dollar long-term gain. Her taxable income becomes 92,000 dollars. Because the 0 percent bracket ends at 48,350 and she is already above it, every dollar of the gain lands in the 15 percent tier: 12,000 times 15 percent equals 1,800 dollars of federal tax.

The calculator then checks the surtax. Maya's modified adjusted gross income is about 107,000 dollars, far below the 200,000 NIIT threshold, so nothing is added. Her total taxable income of 92,000 remains inside the 22 percent ordinary bracket, which reaches 103,350 for single filers in 2025, so the gain did not push her salary into a higher tier either. Her home state will tax the gain as ordinary income separately, but the federal number is settled: 1,800 dollars, leaving 10,200 of the gain after tax.

Now flip one variable: suppose Maya had sold after only eight months. The 12,000 dollars becomes short-term, stacking on her 80,000 and taxed at her 22 percent marginal rate — 2,640 instead of 1,800. Waiting past the one-year mark saved 840 dollars for doing nothing but waiting. That is exactly the comparison a capital gains calculator is built for, and it is why the holding-period field matters as much as the dollar amounts.

SECTION 06Home Sales, Losses, and the Rules That Rescue People

Primary residences get their own rescue rule. Under Section 121, you can exclude up to 250,000 dollars of gain — 500,000 for joint filers — if you owned and used the home as your main residence for at least two of the five years before the sale, generally once every two years. A married couple who bought at 320,000, spent 40,000 on improvements, and sells at 720,000 with 30,000 of selling costs has a 330,000-dollar gain, which their 500,000 exclusion erases entirely.

Losses work the other side of the ledger. Capital losses first offset gains of the same character — short-term against short-term, long-term against long-term — then any net loss reduces up to 3,000 dollars of ordinary income per year, with the remainder carried forward indefinitely. There is one famous trap: if you sell at a loss and buy the same or substantially identical security within 30 days before or after, the wash-sale rule disallows the loss and adds it to the new lot's basis instead.

Inherited assets come with a bonus called the step-up in basis: the cost basis generally resets to fair market value on the date of death, which can erase decades of built-in gain. Sell inherited stock the week you receive it and you may owe almost nothing, because the gain is measured from the stepped-up value. This interacts heavily with estate planning, and our estate tax calculator (/estate-tax-calculator.html) covers the estate side of that trade-off.

SECTION 07Using the Results Wisely

A calculator's value is in the decisions it informs: splitting a large sale across two tax years, harvesting losses to offset a gain, waiting out a holding period, or realizing gains in a low-income year to capture the 0 percent rate. If a sale creates a tax that withholding cannot cover — the usual case for investors — plan a quarterly estimated payment; our quarterly estimated tax calculator (/quarterly-estimated-tax-calculator.html) walks through the safe harbors and due dates.

Keep the limits in view. The tool works on federal rules and the inputs you provide; it does not know your state, your carryover loss balance, your employee stock plan quirks, or next year's law changes. The figures in this guide reflect published 2025 and 2026 federal parameters, but individual situations bend outcomes. For large or complicated sales — a business sale, a property with depreciation, an estate asset — a session with a CPA or tax attorney usually pays for itself many times over.

SECTION 08Before You Start: The Inputs That Drive Everything

Every scenario starts with the same three inputs: cost basis (what you paid, plus improvements and reinvested dividends), sale proceeds (price minus selling costs), and the holding period (more than one year means long-term). The fourth input is the one people forget: your taxable income from everything else. Capital gains tiers stack on top of your other income, so the calculator needs your salary, retirement withdrawals, and other gains to place each dollar of the gain in the right tier.

Before starting, pull your 1099-B forms if a broker handled the sale — they list proceeds and often basis. For property, dig out settlement statements and improvement receipts. Enter the numbers, set the filing status and year, and read two outputs: the tax on the gain and the after-tax proceeds. If the tool asks for your marginal bracket, it is usually preparing the short-term comparison, because short-term gains are taxed as ordinary income at 10 to 37 percent for 2025-2026.

SECTION 09Scenario 1 — A Long-Term Gain in a Middle Bracket

Maya is single, in 2025, with a 95,000-dollar salary. She takes the 15,000-dollar standard deduction, so her taxable income before gains is 80,000 dollars. In March she sells a fund bought three years ago: proceeds of 32,000 dollars against a 20,000-dollar basis, for a 12,000-dollar long-term gain. She enters salary, filing status, basis, proceeds, and purchase date, and the calculator returns a federal tax of 1,800 dollars on the gain.

Why 15 percent: her 92,000 dollars of taxable income is above the 48,350-dollar ceiling of the 0 percent tier for single filers in 2025, so the whole gain sits in the 15 percent band. Twelve thousand dollars times 0.15 equals 1,800. Her modified adjusted gross income of roughly 107,000 dollars stays under the 200,000 NIIT threshold, so the 3.8 percent surtax adds nothing.

The comparison worth knowing: if she had sold at eight months, the gain would be short-term and taxed at her 22 percent marginal rate — 2,640 dollars, an extra 840 for no reason other than impatience. One more note: her state taxes gains as ordinary income, so a state-level bill arrives on top; the calculator's federal figure never includes that.

SECTION 10Scenario 2 — Harvesting the 0 Percent Bracket in Retirement

Robert is 68, single, and retired in 2025, living on a pension and modest IRA withdrawals that produce 45,000 dollars of income. After the 15,000-dollar standard deduction his taxable income is 30,000. He holds a brokerage position with a 25,000-dollar embedded long-term gain and wants to know what a full sale would cost. The calculator shows something remarkable: most of the gain can be realized at a 0 percent federal rate.

The 0 percent bracket for single filers reaches 48,350 dollars of taxable income in 2025. Robert's 30,000 leaves 18,350 dollars of room. Enter the full sale: the first 18,350 dollars of the gain is taxed at 0 percent, and the remaining 6,650 is taxed at 15 percent, which is 997.50 — call it 998 dollars on a 25,000-dollar gain. His total taxable income rises to 55,000, still far below the NIIT line.

Two cautions keep this honest. First, filling the 0 percent bracket to the brim can raise Medicare premium surcharges in later years for higher-income retirees; Robert's income is well below those lines, but not everyone's is. Second, state treatment differs — some states tax the whole gain regardless. The calculator's figure is federal and educational, and a planner can confirm the premium side effects.

SECTION 11Scenario 3 — A Short-Term Gain Stacked on Salary

Priya is single in 2025 with taxable income of 95,000 dollars from salary, and she must sell company stock that vested weeks ago. The sale produces a 15,000-dollar short-term gain. She enters the numbers, and the calculator stacks the gain on her salary: taxable income becomes 110,000 dollars.

Short-term gains are taxed as ordinary income. The 22 percent bracket for single filers in 2025 runs from 48,475 to 103,350 dollars, and 24 percent starts above that. So the gain splits: 8,350 dollars at 22 percent (1,837.00) plus 6,650 at 24 percent (1,596.00), for a total of 3,433 dollars. Stacking matters — a naive tool applying 22 percent to everything would understate the bill by about 759 dollars.

Had the same shares been long-term, the entire 15,000-dollar gain would sit at 15 percent — 2,250 dollars. The difference of 1,183 is the price of a short holding period. Employees with vesting schedules can sometimes influence sale timing, and the calculator's short-term versus long-term toggle shows exactly what the calendar is worth before deciding.

SECTION 12Scenario 4 — Crossing the NIIT Line as a Married Couple

Jordan and Sam file jointly in 2025 with combined salaries of 210,000 dollars. They sell a stock position for a 60,000-dollar long-term gain. The calculator first applies the 15 percent tier — their 270,000-dollar MAGI is below the 600,050 joint ceiling — producing 9,000 dollars of bracket tax. Then it checks the net investment income tax: MAGI of 270,000 exceeds the 250,000 joint threshold by 20,000, and the surtax applies to the lesser of net investment income (60,000) or that excess (20,000).

So NIIT is 20,000 dollars times 3.8 percent, or 760, bringing the federal total to roughly 9,760. The lesson is that NIIT is an income-line problem, not a gain-size problem: a smaller gain on top of lower salaries might owe nothing, while this mid-size gain crosses the line. Timing a sale into a year with lower wages — a sabbatical, early retirement — is the classic mitigation, and the calculator makes the cross-year comparison painless.

SECTION 13Scenario 5 — Selling a Home With the Section 121 Exclusion

A married couple sells the house they have owned and occupied since 2018. Purchase price 320,000 dollars; kitchen and bath renovations of 40,000 raise basis to 360,000. Sale price 720,000 dollars, with 30,000 in agent and closing costs, so the amount realized is 690,000. The gain is 690,000 minus 360,000, or 330,000 dollars.

Section 121 excludes up to 500,000 dollars of gain for married joint filers who owned and used the home as a main residence for two of the last five years. The calculator applies the exclusion and returns 0 dollars of federal capital gains tax. A single filer in the identical situation would be capped at 250,000 and owe 15 percent on 80,000 — 12,000 dollars — which is why the same house sale produces very different outcomes for different owners. Rentals and second homes do not qualify for the full exclusion.

SECTION 14Scenario 6 — Losses, Wash Sales, and Netting

Netting is where hand math usually fails. In 2025 an investor closes three positions: stock A at a 4,000-dollar long-term loss, fund B at a 9,000-dollar long-term gain, and option C at a 2,000-dollar short-term loss. The calculator nets long-term first (9,000 gain minus 4,000 loss equals a 5,000-dollar net long-term gain), then short-term (a 2,000-dollar net loss), and combines them into a single 3,000-dollar net long-term gain — taxed at 15 percent for a middle-bracket filer, about 450 dollars.

Now the wash-sale rule. If the investor repurchases stock A within 30 days of the loss sale, the 4,000-dollar loss is disallowed for now and added to the basis of the new shares. The calculator cannot see future trades, so the honesty rule is: run the numbers before year-end tax-loss harvesting, then actually stay out of the repurchase window.

If losses exceed gains, up to 3,000 dollars of the excess offsets ordinary income each year and the rest carries forward. A trader with a 10,000-dollar net loss today holds a 7,000-dollar deduction against future gains — worth entering into the calculator as a known offset next year rather than forgotten in a drawer.

SECTION 15Mistakes 1-3: Basis and Holding-Period Errors

Mistake one is using the purchase price as basis and forgetting everything that changes it: reinvested dividends that bought fractional shares, capital improvements on property, and selling costs. A homeowner who paid 300,000 dollars, spent 50,000 on additions, and sells with 25,000 of costs has a gain 75,000 dollars smaller than the naive number — at 15 percent, roughly 11,000 dollars of tax avoided legitimately. Mistake two is the opposite error: inflating basis with expenses that do not qualify, such as routine repairs.

Mistake three is holding-period sloppiness. The long-term line is more than one year — measured from the day after acquisition to the day of sale — and settlement conventions occasionally confuse people who bought near month-ends. A sale at eleven months and three weeks is taxed as ordinary income, which for a high earner can mean 35 percent instead of 20. Brokers report dates on Form 1099-B; for property, the closing statement is the record. When in doubt, wait the extra weeks: the calculator can price exactly what the wait saves.

SECTION 16Mistakes 4-6: Rate and Income Errors

Mistake four is applying your marginal ordinary rate to a long-term gain. The 0, 15, and 20 percent tiers are their own system stacked on your other income, and for most filers the answer is 15 percent, not their salary bracket. Mistake five is the subtler reverse: assuming one rate applies to the whole gain. A gain that spans the 0 percent ceiling is partially taxed at 0 and partially at 15 — our worked example of the retiree with 18,350 dollars of room shows the split explicitly.

Mistake six is forgetting the 3.8 percent net investment income tax above 200,000 dollars of modified adjusted gross income for single filers (250,000 joint, unindexed). A filer earning 230,000 dollars who realizes a large gain can owe 15 percent plus 3.8 percent — an effective 18.8 percent — while being nowhere near the 20 percent bracket. Good calculators ask for MAGI for exactly this reason; if yours does not, add the surtax check yourself.

SECTION 17Mistakes 7-9: Exclusion and Netting Errors

Mistake seven is misusing the home-sale exclusion: the 250,000 or 500,000-dollar Section 121 break requires ownership and use as a main residence for two of the last five years, and it does not apply to second homes or pure rentals. Rentals carry a further wrinkle — depreciation previously claimed is eventually recaptured at up to a 25 percent rate regardless of your bracket. Mistake eight is netting losses carelessly: short-term and long-term net separately first, and the ordering changes the character of what survives.

Mistake nine is the wash-sale violation during tax-loss harvesting: repurchase the same security within 30 days on either side of the loss sale and the loss is deferred, not deducted. Active traders trip this constantly through dividend-reinvestment plans that auto-buy the fund they just sold. Turn off automatic reinvestment in December, or keep the harvesting and the index fund in separate accounts tracking different indexes.

SECTION 18Mistakes 10-11: Planning Errors

Mistake ten is concentrating a giant sale in one tax year when splitting it across December 31 could keep more of the gain in a lower tier — the stacking means the second half may fall in the 20 percent band while the first sits at 15. Mistake eleven is ignoring the cash-flow consequence: a large realized gain with no withholding usually requires a quarterly estimated payment, and skipping it adds an underpayment penalty on top of the tax. Our quarterly estimated tax calculator (/quarterly-estimated-tax-calculator.html) covers the safe-harbor math.

SECTION 19Five Pro Tips Worth More Than Any Calculator

Tip one: harvest losses and gains deliberately — losses offset gains dollar for dollar, and 3,000 dollars of excess trims ordinary income each year. Tip two: before any sale, pull the cost-basis records and add reinvested dividends; brokers only report basis for stock purchased after 2011, and older lots or transferred assets are on you. Tip three: bunch income — realize gains in a low-income year, such as early retirement or a sabbatical, to capture the 0 percent tier, which reaches 48,350 dollars single and 96,700 joint in 2025.

Tip four: gift appreciated shares instead of cash to family in lower brackets — the gain moves to their rate, subject to the gift rules covered by our gift tax calculator (/gift-tax-calculator.html). Tip five: for inherited assets, do nothing in a hurry; the basis step-up at death often makes an immediate sale nearly tax-free. The meta-tip: rerun the calculator with both sale dates when a transaction straddles year-end, and keep the printed comparison with your records.

SECTION 20What a Calculator Cannot See

A calculator sees what you type. It does not know about a carryover loss balance from 2022, an employee stock plan with unusual vesting treatment, a state with its own gain rules, or an installment sale that spreads proceeds over years. It also cannot predict law changes: the 2026 parameters are published and stable today, but legislation happens, which is why big plans should be re-run close to execution.

Scale the caution to the stakes. Rebalancing a 15,000-dollar fund with a 3,000-dollar gain is a fifteen-minute decision; selling a business with depreciation recapture, multiple states, and installment terms is a CPA engagement. Treat the calculator as the fast, honest first draft — it turns a vague worry into a number — and let professionals handle the drafts that matter enough to pay for. That division of labor is the realistic best practice.

🔑 Key takeaways

  • Holding period sets the lane: more than one year means preferential rates of 0, 15, or 20 percent; one year or less is taxed as ordinary income.
  • For 2025 the 0 percent bracket runs to 48,350 dollars of taxable income for single filers (96,700 married); in 2026 it rises to 49,450 and 98,900.
  • Gains stack on top of ordinary income, so a calculator divides the gain across rate tiers instead of guessing a single rate for the whole amount.
  • The 3.8 percent NIIT can apply above 200,000 dollars of income for single filers (250,000 married), regardless of which gain bracket you land in.
  • Basis is the number that protects you: reinvested dividends, improvements, and selling costs all shape it, and forgotten basis means overpaying.
  • Every result is an educational estimate; real filings involve state tax, carryover losses, and edge cases that belong with a professional.
  • The four inputs that decide everything are basis, proceeds, holding period, and your other taxable income — brackets stack.
  • A 12,000-dollar long-term gain cost Maya 1,800 at 15 percent but would have cost 2,640 as a short-term gain in 2025 — the calendar is worth real money.
  • 0 percent bracket harvesting is real: 18,350 dollars of room above Robert's 30,000 taxable income made a 25,000-dollar gain cost about 998.
  • NIIT applies to the lesser of investment income or the amount over 200,000 single / 250,000 joint — a 760-dollar surtax on one couple's 60,000-dollar gain.
  • Section 121 erased a 330,000-dollar home gain entirely for a qualifying married couple; single filers get 250,000.
  • Each result is an educational estimate — state tax, Medicare premiums, and wash-sale timing live outside the calculator.
  • Basis errors run in both directions: forgotten reinvested dividends overpay the IRS, and invented improvements create penalties.
  • The holding-period line is more than one year, measured from the day after purchase — and short-term treatment can nearly double the tax.
  • Long-term tiers are separate from ordinary brackets: most filers pay 15 percent, and a gain can straddle 0 and 15 percent in the same year.
  • Add 3.8 percent NIIT above 200,000 dollars of MAGI single / 250,000 joint — an unindexed surtax that catches mid-six-figure earners.
  • Section 121, loss netting, and wash-sale timing have strict mechanics; each is a chapter of rules, not a checkbox.
  • Every figure is an educational estimate on your inputs — carryovers, states, and law changes live outside the tool.

❓ Frequently asked questions

Is capital gains tax in addition to income tax?

Gains are part of your income, but long-term gains use their own 0/15/20 percent rate table stacked on your other income, while short-term gains are taxed at your ordinary bracket rate. You pay whichever applies — not both systems on the same dollar.

Is the 0 percent rate really zero?

For the federal tax on the portion of the gain inside the 0 percent bracket, yes. You may still owe state tax, and the 3.8 percent NIIT can apply at higher incomes. The rate is income-tested, which is why the calculator asks for your other income.

Do I pay tax on the full sale price?

No — you pay on the gain, which is proceeds minus adjusted basis. Basis includes the purchase price plus improvements and reinvested dividends, minus nothing you forgot to document. Keeping basis records is the single cheapest tax habit an investor can build.

How are crypto and NFTs taxed?

As property: every sale, swap, or spend is a disposal with its own basis, proceeds, and holding period. Trading one coin for another is a taxable event in the United States, which surprises many holders — sum the year's disposals or run the largest ones individually.

Do states tax capital gains?

Most states with an income tax treat gains as ordinary income with no preferential tiers, and a handful of states levy no income tax at all. The federal calculator's figure never includes state tax, so model your state separately or with a preparer.

Do I need to make estimated payments on a big gain?

Often yes — a material gain with no withholding usually requires a quarterly estimated payment to avoid an underpayment penalty. The safe harbors and 2026 dates are covered in our quarterly estimated tax calculator guide, and increased W-2 withholding can substitute in some cases.

Can I use 2026 brackets if I am estimating a 2025 sale?

Match the year to the sale: 2025 sales use 2025 thresholds (0 percent to 48,350 single / 96,700 joint), and 2026 sales use the wider ones (49,450 / 98,900). Using the wrong year shifts the answer by a small amount that grows with the gain.

Does the calculator include state tax?

Most simple tools are federal-only, and this guide's figures are federal. Most states tax gains as ordinary income; a few states levy no income tax. Model the state separately or with a professional, especially for large sales.

What if I do not know my exact basis?

Estimate first, then reconstruct: broker statements, reinvested-dividend records, and improvement receipts. An overstated basis understates tax — the direction that creates penalties — so err conservative and document everything you claim.

Are dividends counted as capital gains?

Qualified dividends use the same 0/15/20 rate table but are not sale gains; they are reported separately, and fund capital gain distributions behave similarly. The calculator handles sale gains; check fund statements for distributions.

How does a big gain interact with estimated taxes?

A material gain usually requires a quarterly estimated payment to avoid an underpayment penalty; the safe harbors and dates are covered in our quarterly estimated tax calculator guide. Increased withholding from other income can also substitute.

Is the tool useful for crypto?

Yes — crypto is treated as property, so every sale or trade is a disposal with its own basis, proceeds, and holding period. Sum the year's disposals, or run the largest ones individually to see the rate tiers at work.

Do I owe capital gains tax on inherited property when I sell it?

Usually far less than expected: basis generally steps up to fair market value at death, so gain is measured from that date's value. Exceptions and state quirks exist, and larger estates raise estate-tax questions covered by our estate tax calculator guide.

Is the 3.8 percent NIIT the same as the Medicare tax on wages?

It is a separate surtax on net investment income with its own 200,000/250,000 MAGI thresholds, not indexed for inflation. Wage earners face a different 0.9 percent additional Medicare tax above similar lines; self-employed readers can see our self-employment tax calculator guide.

Can I avoid the tax by reinvesting the proceeds?

There is no general rollover for stocks; reinvesting does not defer tax. Like-kind exchange deferral is limited to real property used in business or investment, with strict timelines — professional territory.

What rate applies to gains on gold or art?

Collectibles are long-term taxed at up to 28 percent, and most physical precious metals are treated as collectibles. Paper gold funds may differ by structure. Enter the asset type if your calculator supports it.

Do capital gains affect how my Social Security is taxed?

They can: gains raise combined income, and above certain thresholds more of your Social Security benefits become taxable. It is an interactive effect calculators rarely show, so model it separately if benefits are a large income slice.

How accurate is a calculator compared with filing software?

For a straightforward sale with correct inputs, within a few dollars of the federal line item. Divergence grows with carryover losses, multi-state exposure, and special asset types. Use the calculator for decisions and the filing software for the return itself.

🍽️ Put this into practice

The free Capital Gains Tax Calculator on Toolfyra runs everything in your browser — no signup, nothing uploaded.

Open the Capital Gains Tax Calculator →

📚 More in the Toolfyra blog · or browse all free online tools.