Capital Gains Calculator

Calculate capital gain or loss from cost basis, sale value, and selling fees.

Last reviewed
July 8, 2026
Cost
Free to use
Data
Runs in your browser

Net Sale Proceeds

Enter valid inputs

Capital Gain or Loss

Enter valid inputs

Gain on Cost Basis

Enter valid inputs

Methodology

How this calculator handles inputs

This calculator uses the values you enter above and applies the formula explained in the guide below. Results update in the browser and are intended for quick planning, comparison, and sanity-checking.

  • Use consistent periods, currencies, and units across inputs.
  • Review any assumptions before using the result in a decision.
  • Recalculate when rates, prices, tax rules, or business terms change.

Important note

This tool provides general planning information only. It is not tax, legal, financial, accounting, or investment advice. Check the current rules for your location and speak with a qualified professional before making a high-stakes decision.

Guide

How it works

Use this calculator to estimate capital gain or loss before tax.

What this calculator does

The capital gains calculator compares sale proceeds with cost basis after selling fees.

Capital Gains Formula

Capital Gain = Net Sale Proceeds - Cost Basis

Example calculation

If your cost basis is 10,000 and you sell for 14,000 with 100 in fees, the capital gain is 3,900.

When to use this calculator

  • estimating taxable gains before applying tax rates
  • comparing sale scenarios
  • checking cost basis
  • reviewing investment performance

FAQs

Is this the same as capital gains tax?

No. This calculator estimates the gain or loss before tax.

Explore more

More calculators in this topic

View Investment Calculators calculators

Continue exploring

Related calculators

Explore the next calculations most relevant to this topic.