Skip to content
CalculatorAI
HomeFavoritesHistory
  1. /
  2. /
  3. Capital Gains Calculator: Tax, Cost Basis & ROI

Capital Gains Calculator

Tax, Cost Basis & ROI

Inputs

Transaction Setup

Asset Class

Price Setup

$
$

Fees, Tax & Basis

$
$
$
%
mo

Results

Net Gain

$10,578.25

Bitcoin · After-Tax ROI: 52.84% · Holding Term: Long-term

Cash Kept

$30,598.25

Tax Drag

15.0%

Annualized ROI

32.7%

Capital Flow

$20,020.00
$12,445.00
$1,866.75
$10,578.25
Cost Basis
Realized Gain
Tax
Net Gain
Cost Basis
$20,020.00
Gross Proceeds
$32,500.00
Net Proceeds
$32,465.00
Total Fees
$55.00
Realized Gain
+$12,445.00
Taxable Gain
$12,445.00
Estimated Tax
$1,866.75
Net Gain
+$10,578.25
Pre-Tax ROI
62.16%
After-Tax ROI
52.84%
Break-Even Price
$40,110.00
Gain per Unit
+$21,156.50
Tax Basis Desk

Separate price movement from tax drag before you sell

Capital gains are not just “sell price minus buy price.” A professional estimate starts with cost basis, subtracts sale costs, classifies the holding period, then applies an estimated tax rate. The IRS explains the distinction between short and long term in Topic 409.

"The number that matters is after-tax cash kept, not the headline gain."

Basis First

Track purchase fees and basis adjustments. The IRS notes that basis often starts with cost and related purchase expenses in Topic 703.

Tax Only On Gains

The calculator applies tax only when realized gain is positive; losses may have separate offset rules.

Holding Period

Holding period can change treatment. Use the term flag as a prompt to check local rules before selling.

Frequently Asked Questions

  • It estimates cost basis, net proceeds, realized gain, tax on positive gain, and after-tax net gain. For U.S. context, compare the model with IRS Topic 409 and IRS Topic 703.
  • Cost basis is the purchase value plus costs connected with the purchase and any allowed basis adjustments. The calculator keeps those items visible so the tax estimate is easier to audit.
  • No. It is a planning model. Local rules can depend on asset type, residency, exemptions, loss offsets, reporting forms, and holding period.

Related calculators

  • Stock Profit Calculator

    Calculate stock trade profit after buy/sell fees, dividends, taxes, ROI, and break-even price per share.

  • Average Buy Price Calculator

    Calculate weighted average buy price from multiple purchases. Track total quantity, invested capital, current value, and unrealized profit or loss.

  • ROI Calculator

    Calculate return on investment (ROI) and annualized returns. Analyze profit, costs, and time to measure the efficiency of your capital.

  • Options Profit Calculator

    Calculate potential profit or loss (PnL) for call and put options, model payoff scenarios, and analyze Black-Scholes Greeks.

  • APR to APY Calculator

    Convert APR to APY or APY back to APR using annual, monthly, daily, custom, or continuous compounding.

  • Asset Allocation Calculator

    Build a target allocation across stocks, bonds, cash and alternatives using age, horizon, risk tolerance, current mix and return assumptions.

Home
Stock Investor