Capital Gains Tax Calculator

Tax on Investment Gain

Capital gain is the profit between selling value and cost basis.

Formula: tax = max(selling value - cost basis, 0) x tax rate.

Understanding Capital Gains Tax

1. What This Calculator Measures

Capital gains tax estimates tax owed on profit from selling an asset.

2. How the Calculation Works

The calculator subtracts cost basis from selling value, ignores losses for tax, and applies the tax rate.

3. Formula or Rule Used

tax = max(selling value - cost basis, 0) x tax rate.

Explore Our Calculators

Explore Programming Tools

Programming Tools

Explore our interactive programming environments for learning, testing, and executing code directly in your browser. Perfect for students, professionals, and enthusiasts.