Capital Gains Tax Calculator
Enter your sale price, cost basis, and tax rate to estimate the capital gains tax.
Result
How it is calculated
The tool applies one flat percentage to the profit: gain = sale − cost, tax = max(0, gain) × rate ÷ 100, net = sale − tax. Sale is the price you sold for, cost is what you paid (your cost basis), and rate is the tax rate in percent. A loss is shown as a negative gain and the tax is 0; the tool does not carry the loss forward or offset it against other gains. There is no separate field for fees, holding period, exemptions or allowances: add purchase and selling costs into the cost figure yourself, and pick the rate that applies to you. These rules differ by country and year, so the rate is yours to choose. Negative inputs give no result.
Worked example
You sell shares for 15000 that cost you 10000, and your capital gains rate is 15%. Gain: 15000 − 10000 = $5,000.00. Tax: 5000 × 15 ÷ 100 = $750.00. Net amount received after tax: 15000 − 750 = $14,250.00. The net figure is the sale proceeds minus the tax, not the profit minus the tax, so it still includes the money you originally paid in. The dollar sign is only a display symbol; any currency works.
Common mistakes
- Leaving fees out of the cost. Commissions and purchase costs are not a separate field, so they only reduce the gain if you add them to the cost figure.
- Reading the net figure as profit after tax. It is the whole sale price minus the tax; the profit after tax here is 5000 − 750 = 4250.
- Entering the rate as a decimal such as 0.15. The field takes a percentage, so 15 means 15%; 0.15 would be taxed at 0.15%.
- Using one rate for every sale. Many countries tax short-term and long-term holdings differently, and some exempt part of the gain, so the tool only gives a rough figure for the rate you choose.
- Expecting a loss to cut your tax elsewhere. A sale below cost shows a negative gain and zero tax, with no offset against other gains.
Sources
- Topic no. 409, Capital gains and losses — Internal Revenue Service
About this calculator
This calculator estimates the taxable gain on an asset by subtracting what was originally paid for it from the price it was sold for (there is no separate fee field, so add purchase and selling costs into the cost figure yourself), then applies a tax rate the user provides to estimate the resulting tax. Because rates, exemptions, and how long an asset was held before selling all affect the outcome and vary by country and by year, the rate itself is left as a user input rather than assumed.
Investors use it after selling stocks, property, or other assets to get a rough sense of the tax impact of that sale, and some use it beforehand to compare how the numbers might look under different holding periods or sale prices before deciding when to sell.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
This is handy for a what-if before you sell: run the same sale at two different rates and compare the net lines. On the default 15,000 sale with a 10,000 cost, 15% takes 750 and 20% takes 1,000. It uses one flat rate with no loss offset, so a loss simply shows tax of zero. Tax rules for gains differ by country and year, and Turkish rules are not built in. Which kind of asset are you thinking of selling?