Enter your trade details
Fill in what you paid, what you sold for, and any fees. Then (optional) add a tax rate to estimate your after-tax profit. All calculations run locally in your browser.
Use this free Capital Gains Calculator to estimate your profit or loss, ROI, tax owed, and after-tax gain when you sell an asset (stocks, crypto, ETFs, collectibles, land, etc.). Add fees, choose short-term vs long-term, and get a clean breakdown you can screenshot or share.
Fill in what you paid, what you sold for, and any fees. Then (optional) add a tax rate to estimate your after-tax profit. All calculations run locally in your browser.
A capital gain is the profit you make when you sell something (an “asset”) for more than you paid. A capital loss is the opposite — you sell for less than your total cost basis. The tricky part is that your “real” gain isn’t just the simple difference between buy price and sell price. Fees, commissions, and other costs change the math.
Your cost basis is the total amount you invested into the position: the purchase price times quantity, plus any buying fees.
When you sell, you don’t always receive the full sell price. Selling fees or exchange fees reduce what you actually take home.
Your capital gain is the difference between what you received and what you put in:
If this number is negative, you have a capital loss. Losses can matter for tax planning in many countries, but the rules are complicated — so treat the tax part of this calculator as a simple estimate.
ROI converts your profit into a percent, which is useful for comparing investments of different sizes:
If you enter a tax rate (like 15%), we estimate the tax on positive gains. (We assume no tax credit on losses.) Then we compute what you keep after tax:
The short-term vs long-term selector is here because many tax systems treat them differently. But instead of hardcoding country-specific rules (which change often), this calculator lets you enter the rate that applies to you.
You buy 10 shares at $120.50 and sell at $175.00. You paid $4.99 to buy and $4.99 to sell.
You buy 0.75 BTC at $28,000 and sell at $35,000. Total buy fees are $30 and sell fees are $45.
Using Example 1, imagine your long-term capital gains tax rate is 15%.
Notice how fees and taxes shrink the “headline” profit. This is why after-tax, after-fee math is the most honest way to compare investments.
Think of a trade as two totals: money in and money out. Money in is your cost basis. Money out is your net proceeds. The gain is simply out minus in.
Most people know their buy and sell price per share/coin/unit. The calculator multiplies by quantity to build totals. This also works for real estate or collectibles — just set quantity to 1.
Capital gains tax depends on rules that vary by country and can change year-to-year. Even within one country, the rate can depend on holding period, income level, asset type, and deductions. So this tool uses a simple approach: you provide the rate, and we compute an estimate based on the gain.
If you’re deciding whether to sell, try this:
A capital gain is the profit you earn when you sell an asset for more than your total cost basis (what you paid, including fees). This calculator shows the gain in dollars and as an ROI percentage.
The calculator will show a negative number as a loss. Many tax systems allow losses to offset gains, but rules vary. This tool doesn’t apply loss carryover rules — it simply reports your trade result.
Yes. Treat “buy price” and “sell price” as your average buy and sell prices, and include exchange fees. Quantity can be fractional (like 0.75 BTC or 12.5 SOL).
If you bought in multiple lots, you typically use an average cost basis (or FIFO/LIFO depending on rules and broker reporting). For quick planning, use the Stock Average Cost Calculator.
It’s an estimate based on the rate you enter. Real taxes may include additional rules (income brackets, wash sales, offsets, exemptions, local taxes). Use this calculator for planning, not filing.
ROI measures profit relative to what you invested. Using cost basis makes ROI comparable across trades: a $500 gain on a $1,000 investment (50% ROI) is very different from a $500 gain on a $50,000 investment (1% ROI).
For a simple sale comparison, yes: quantity = 1, buy price = purchase price, sell price = sale price, and add fees. Real estate often has additional factors (closing costs, depreciation, improvements, exclusions), so treat this as a quick estimate only.
20 hand-picked tools from our Finance hub:
MaximCalculator provides simple, user-friendly tools. Always double-check important numbers with official statements and local rules.