Skip to content
Calcemitool
Everyday Money

Capital Gains Tax Calculator

Enter what you paid, what you sold for, and how long you held the asset to estimate your capital gain and the tax owed, using different rates for short-term and long-term gains.

Enter your details

Results update live as you type.

Example: $10,000

Example: $16,000

Example: Long-term (over 1 year)

Example: 15%

Nothing is stored — your inputs stay in the page link so you can share or bookmark this exact result.

Step-by-step calculation

  1. 1

    Find the capital gain

    $16,000.00 − $10,000.00 = $6,000.00

  2. 2

    Apply the tax rate

    $6,000.00 × 15% = $900.00

  3. 3

    Subtract tax from sale price

    $16,000.00 − $900.00 = $15,100.00

The formula

Tax = max(Sale Price − Purchase Price, 0) × Tax Rate

Capital gains tax only applies to profit, not the full sale price. Losses generally are not taxed and may offset other gains.

Capital Gain
Sale price minus purchase price
Tax Rate
Rate that applies based on how long the asset was held

Buying stock for $10,000 and selling for $16,000 after 2 years

The gain is $6,000, taxed at a long-term rate of 15%, giving a tax bill of $900 and net proceeds of $15,100.

Frequently asked questions

Why does holding period matter?

Long-term gains (assets held over a year) are usually taxed at lower rates than short-term gains, which are often taxed as ordinary income.

What if I sold at a loss?

Losses are not taxed and can often be used to offset other capital gains or a limited amount of ordinary income.

Does this include state capital gains tax?

No, this estimates tax at the rate you enter. Add any applicable state tax rate separately for a fuller picture.

Estimated Capital Gains Tax

$900.00

Your long-term gain of $6,000.00 results in an estimated tax of $900.00.

Capital Gain
$6,000.00
Net Proceeds After Tax
$15,100.00

Headline result: Estimated Capital Gains Tax — updates live as you change the inputs.

Sale proceeds split

Browse all calculators →

Complete guide6 min read

Capital Gains Tax: the complete guide

Everything behind the numbers above — what each input means, the formula that produces the result, where the calculation is used, and the mistakes that quietly ruin it.

Why use the Capital Gains Tax

Most people can do this calculation on paper, but doing it repeatedly — and correctly — is where the effort goes. The Capital Gains Tax is built for households, freelancers and anyone reconciling a monthly budget, and it answers one question well: how much money is genuinely available once obligations are covered. Instead of a bare number it shows the inputs it used, the formula it applied and every intermediate step, so you can check the reasoning rather than trust it blindly.

The calculation runs entirely in your browser and updates the moment you change a value. Nothing is uploaded, nothing is stored on a server, and your inputs live in the page address so you can bookmark a scenario or send it to someone else exactly as you left it. That makes it practical to model several versions of the same decision side by side.

How this calculator works

Capital gains tax only applies to profit, not the full sale price. Losses generally are not taxed and may offset other gains. In practice you supply 4 core values, and the calculator resolves the formula and its supporting figures in a single pass.

  1. 1

    Enter your figures

    Fill in purchase Price, sale Price, holding Period and applicable Tax Rate. Each field carries an example so you can see the expected scale of the number.

  2. 2

    The formula is applied

    Your values are substituted into Tax = max(Sale Price − Purchase Price, 0) × Tax Rate and evaluated immediately — there is no submit step and no page reload.

  3. 3

    Results are broken down

    The headline figure appears first, followed by the supporting numbers, any charts or schedules, and the step-by-step arithmetic that produced them.

  4. 4

    Adjust and compare

    Change one input at a time to see its individual effect. The page link updates with your values, so you can keep two scenarios open in separate tabs.

Every input explained

Accurate inputs matter more than the formula itself. Here is what each field means, and what to enter when you are unsure.

  • Purchase Price

    What you originally paid for the asset, including fees. Enter the amount in whole units of your currency, without separators. Example: $10,000

  • Sale Price

    What you sold the asset for. Enter the amount in whole units of your currency, without separators. Example: $16,000

  • Holding Period

    How long you owned the asset before selling — this determines which tax rate applies. Choose the option that matches your situation — it changes how the result is worked out. Example: Long-term (over 1 year)

  • Applicable Tax Rate

    Long-term rates are typically lower (e.g. 15%); short-term gains are usually taxed as ordinary income. Enter this as a percentage — for example 7.5 rather than 0.075. Example: 15%

The formula behind the result

The calculator evaluates Tax = max(Sale Price − Purchase Price, 0) × Tax Rate. Capital gains tax only applies to profit, not the full sale price. Losses generally are not taxed and may offset other gains.

Understanding the terms is what lets you spot an implausible answer before you act on it — if a result surprises you, one of the terms below is usually carrying an input in the wrong unit or scale.

  • Capital Gain

    Sale price minus purchase price

  • Tax Rate

    Rate that applies based on how long the asset was held

Where people use this

Everyday Money calculations show up in more places than most people expect. These are the situations where the Capital Gains Tax earns its keep.

  • Planning a monthly budget before payday rather than after it

  • Checking a payslip, invoice or tax deduction against your own arithmetic

  • Comparing two offers, contracts or pay structures on equal terms

  • Setting a realistic savings target that survives a normal month

Advantages of calculating it this way

  • The working is visible

    Every intermediate step is shown, so the result can be audited, reproduced by hand, or explained to somebody else who needs convincing.

  • Instant scenario testing

    Because results recalculate as you type, comparing five variations costs the same effort as calculating one.

  • No spreadsheet errors

    The formula is fixed and tested. There is no stray cell reference, no dragged-down range that stopped one row short, and no silent overwrite.

  • Private by construction

    The maths runs in your browser. Nothing you type is transmitted, logged or retained anywhere.

  • Shareable results

    Your inputs live in the page link, so a scenario can be bookmarked, printed or sent to a partner, adviser or colleague unchanged.

Limitations worth knowing

Tax rules, thresholds and allowances differ by country and change most years, so treat the output as a well-informed estimate rather than a filing figure.

A calculator models the arithmetic of a decision, not the decision itself. It cannot see your risk tolerance, your circumstances or the small print of a specific agreement — treat the output as one strong input into a judgement you still make yourself.

Common mistakes to avoid

  • Mixing time periods

    Annual rates with monthly amounts, or weekly figures with yearly totals, is the single most common source of a wildly wrong answer. Confirm that every input uses the period the field asks for.

  • Confusing percentages and decimals

    Percentage fields expect 7.5, not 0.075. Entering the decimal form understates the result by a factor of one hundred.

  • Leaving defaults in place

    Default values exist to demonstrate the calculator, not to describe your situation. Replace every one of them before reading the result seriously.

  • Ignoring the optional fields

    Every field here affects the outcome, so an approximate entry produces an approximate answer. Use real figures wherever you have them.

  • Reading one scenario as the answer

    A single calculation is a snapshot. Run an optimistic and a pessimistic version before committing to anything that matters.

Tips for a more accurate result

  • Start from source documents

    Take figures from the statement, contract, payslip or listing rather than from memory. Remembered numbers are almost always rounded in the flattering direction.

  • Change one variable at a time

    Isolating a single input tells you how sensitive the result is to it — which is usually more useful than the result itself.

  • Recalculate whenever your income, deductions or fixed costs

    Recalculate whenever your income, deductions or fixed costs change — a budget built on last year's numbers quietly stops being true.

  • Save the scenarios that matter

    Bookmark or share the page link once a scenario looks right. It restores every input exactly, which makes revisiting a decision months later straightforward.

  • Cross-check anything consequential

    For decisions with real financial, medical or legal weight, confirm the figure with a qualified professional who can see your full circumstances.

Conclusion

The capital gains tax calculator turns a fiddly, error-prone calculation into something you can run in seconds and repeat as often as your situation changes. Used properly — real figures, consistent periods, more than one scenario — it gives you how much money is genuinely available once obligations are covered with the working laid out in full.

Bookmark this page for the next time the question comes up, or explore the related everyday money calculators below to model the rest of the decision. Everything on Calcemitool is free, requires no account, and works the same way on every device. This page also covers capital gains tax calculator, investment tax calculator and long term capital gains.

Popular next steps — each one is free, instant and explains the maths.

Didn't find what you needed?

135+ free calculators across 13 categories — every one shows its formula and working.

Browse all calculators