Skip to main content
Best Web Developer logo
Language and currency EN £ GBP

Language

Currency

Prices on this site are shown in the currency you choose.

Calculators

Capital Gains Tax Calculator

Estimate capital gains tax on a sale, applying short-term or long-term rates by holding period, with the net investment income tax option.

  • Runs in your browser
  • Nothing uploaded

The tool

Enter your numbers below. Results update as you type, and nothing leaves your browser.

Everything you enter stays on your own machine. Nothing is sent to us or to anyone else, which you can confirm in your browser network tab.

What people use it for

  • Deciding when to sell an investment
  • Estimating tax on a property or share sale
  • Year-end tax-loss harvesting
  • Comparing holding periods

About this tool

What the Capital Gains Tax Calculator does

A capital gain is the sale price minus your cost basis and selling costs. In the US, assets held for more than a year qualify for lower long-term rates, while short-term gains are taxed as ordinary income. This calculator applies the right rate for your holding period.

Formula

  • Gain = sale price − cost basis − costs
  • Long-term if held more than 12 months (US rule)
  • Tax = gain × applicable rate (+ 3.8% NIIT if it applies)

Worked example

Using the starting values in the calculator above:

Input Value
Purchase price (cost basis) $20,000
Sale price $35,000
Buying and selling costs $500
Months held 18
Short-term rate (ordinary income) 24%
Long-term rate 15%
Add 3.8% net investment income tax No
Result Value
Estimated tax $2,175
Capital gain $14,500
Gain type Long-term
Rate applied 15.0%
Gain after tax $12,325
Tax difference under the other type $1,305

How to read the result

If a sale is close to the one-year mark, the difference column shows what waiting would save or cost.

Losses can offset gains, and in the US up to 3,000 dollars of net capital losses a year can offset ordinary income.

Estimates only, not tax advice. Rates and thresholds change; confirm current figures with your tax authority or adviser.

Related calculators

Browse every calculator in Tax and Accounting Calculators, or talk to us about finance workflow automation.

How it compares

Capital Gains Tax Calculator compared with Paid calculator apps and spreadsheet add-ins
FeatureCapital Gains Tax CalculatorFreePaid calculator apps and spreadsheet add-ins
PriceFree, no tiersTypically £6–£20 per month
Account requiredNo account, no emailSign-up and verification
Where your data goesStays in your browserUploaded to their servers
Usage limitsNo cap, no watermarkFree-tier caps, ads or watermarks
Works on mobileYes, mobile-first layoutVaries by product

Frequently asked questions

Is Capital Gains Tax Calculator free to use?

Yes. Capital Gains Tax Calculator is completely free, with no account, no download and no usage cap. It is published by Best Web Developer as part of a library of calculators, so you can open it, use it and close the tab without ever entering an email address or payment detail.

How do I use Capital Gains Tax Calculator?

Open Capital Gains Tax Calculator and it loads directly in the page. It is designed to estimate capital gains tax on a sale, applying short-term or long-term rates by holding period, with the net investment income tax option. Enter your values or make your selections, and the result updates immediately; there is nothing to install and no account step in between.

Does Capital Gains Tax Calculator store or share my data?

No. Everything you type into Capital Gains Tax Calculator is processed in your own browser and stays on your device. Nothing is uploaded to our servers, nothing is written to a database, and nothing is sold or shared with advertisers. If you close the tab, the session is gone.

Does Capital Gains Tax Calculator work on mobile phones and tablets?

Yes. Capital Gains Tax Calculator is built mobile-first and adapts to any screen width, from a small phone to an ultrawide desktop. Controls are sized for touch, the layout never scrolls sideways, and every input can also be reached with a keyboard.

Is Capital Gains Tax Calculator available in Arabic?

Yes. Capital Gains Tax Calculator ships with an English and an Arabic interface, and you can switch language from the control inside the tool. Numbers and results are formatted for the language you choose, so the page is usable for both audiences without a separate URL.

How accurate is Capital Gains Tax Calculator?

Capital Gains Tax Calculator applies standard, published formulas to the figures you enter, and shows the result instantly so you can test several scenarios. Treat the output as a planning estimate rather than a certified figure: rounding, local tax rules and your own contract terms can move the final number, so confirm anything binding with a qualified professional.

Can I use Capital Gains Tax Calculator for business or client work?

Yes. Capital Gains Tax Calculator is free for personal and commercial use, and you can quote its output in quotes, proposals and internal planning documents. If you need the calculation embedded in your own website, branded and connected to your systems, Best Web Developer builds custom versions of exactly this kind of tool.

Need this built for your own business?

Best Web Developer builds custom calculators, tools and AI workflows on your own domain, with your branding, your data and your integrations. Start with managed website plans.

Explore managed website plansTalk to a developer

Questions

Questions about this tool

The things clients actually want to know — costs, timelines, ownership and what happens after launch.

In the US, gains on assets held one year or less are short-term and taxed as ordinary income; longer holdings get lower long-term rates.

In the US, 0%, 15% or 20% depending on taxable income, plus the 3.8% net investment income tax for higher earners.

Holding longer, offsetting with losses, using tax-advantaged accounts and timing sales across tax years can all help.

Free strategy session

Let’s build something worth finding.

Tell us where you want the business to be in twelve months. We will come back with a costed plan, a realistic timeline, and the numbers we expect to move — no obligation, no jargon.

  • 30-minute call, no pitch deck
  • Fixed-price proposal in 48 hours
  • You own everything we build

Talk to a developer

Not a sales team

Response time
Within 1 business hour
Where we work
UK, USA & the Gulf
Contracts
No lock-in, monthly rolling
Working since
2023
infobestwebdeveloper.org
Free consultation

show prices in USD?

Video

Get a free quoteWe reply within 1 business hour