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
- Foreign Earned Income Exclusion Calculator: Estimate the US foreign earned income exclusion, prorated for qualifying days, plus the foreign housing exclusion.
- Mileage Reimbursement Calculator: Calculate mileage reimbursement or a mileage deduction at a per-mile rate, and compare it with the trip’s fuel cost.
- Depreciation Calculator: Calculate depreciation schedules with straight-line, double declining balance or sum-of-the-years’-digits methods.
- Bank Reconciliation Calculator: Reconcile a bank statement with your books by adjusting for deposits in transit, outstanding cheques, fees and errors.
Browse every calculator in Tax and Accounting Calculators, or talk to us about finance workflow automation.
If this is useful, you may also want Customer Lifetime Value Calculator, Ad Revenue Calculator, Brand Awareness Reach Calculator. For a version built around your own data and branding, see our managed website plans, or browse the full free tools library.
How it compares
| Feature | Capital Gains Tax CalculatorFree | Paid calculator apps and spreadsheet add-ins |
|---|---|---|
| Price | Free, no tiers | Typically £6–£20 per month |
| Account required | No account, no email | Sign-up and verification |
| Where your data goes | Stays in your browser | Uploaded to their servers |
| Usage limits | No cap, no watermark | Free-tier caps, ads or watermarks |
| Works on mobile | Yes, mobile-first layout | Varies 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.
More tools and services
- 1031 Exchange Calculator
- 401(k) Contribution Optimizer
- 529 College Savings Calculator
- A/B Test Significance Calculator
- Accessible Ramp Calculator
- Accounts Payable Aging Calculator
If you would rather someone did this properly for you, we offer Web Design Services and Website Development, SEO Services: Search Engine Optimization, AI Automation Agency.
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.