Build your retirement plan for free.Explore Plan Builder →

Net Capital Gain/Loss Calculator

Enter your total capital gains, capital losses, and tax rate to calculate your net position, tax owed, and after-tax return.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter Total Capital Gains and Total Capital Losses

    Enter realized gains and losses for the assets and tax period you want to estimate. Do not include unrealized changes in value.

  2. 2

    Enter Capital Gains Tax Rate

    Enter the rate you want to apply as a percentage. The calculator applies one rate to the net gain and does not determine your federal or state tax bracket.

  3. 3

    Review the net result and tax estimates

    The cards show net gain or loss, estimated tax, after-tax net, effective rate on gross gains, loss offset, and retention rate. The estimate does not include every tax rule or tax.

Example Calculation

An investor realizes $20,000 in capital gains and $5,000 in capital losses and applies a 15% rate to the net gain.

Total Capital Gains ($)

20,000

Total Capital Losses ($)

5,000

Capital Gains Tax Rate (%)

15

Results

Net Gain

$15,000.00

After-Tax Net

$12,750.00

Tax Owed

$2,250.00

Effective Rate on Gross Gains

11.25%

Loss Offset Ratio

25.0%

After-Tax Retention Rate

85.0%

Insights card shows tax burden, loss offset, and after-tax retention assessments.

Tips

The $15,000 net gain is taxed at the rate you enter

Change Capital Gains Tax Rate from 15% to 20% while leaving gains and losses unchanged. Estimated tax rises from $2,250 to $3,000, and after-tax net falls to $12,000.

The $5,000 loss offsets 25% of the entered gross gains

Change Total Capital Losses to $10,000. The net gain falls to $10,000, estimated tax at 15% falls to $1,500, and the loss offset ratio rises to 50%.

Losses equal to gains reduce the calculator's net gain to zero

Change Total Capital Losses to $20,000. The calculator then shows no tax on a positive net gain, but actual tax treatment can depend on loss character, holding period, and other tax rules.

What this calculator estimates

Net capital gain or loss is realized capital gains minus realized capital losses for the amounts entered. If the result is positive, this calculator estimates tax by applying one user-entered rate; it does not determine taxable income, holding periods, deductions, state tax, or all federal taxes that may apply.

How the calculation works

Net gain or loss = Total capital gains − Total capital losses
Estimated tax = max(Net gain or loss, 0) × Capital gains tax rate
After-tax net = Net gain or loss − Estimated tax
Effective rate on gross gains = Estimated tax ÷ Total capital gains × 100
Loss offset ratio = Total capital losses ÷ Total capital gains × 100

For the example, net gain is $20,000 − $5,000 = $15,000. Estimated tax is $15,000 × 15% = $2,250, leaving $15,000 − $2,250 = $12,750 after tax. The effective rate on gross gains is $2,250 ÷ $20,000 × 100 = 11.25%, and losses offset $5,000 ÷ $20,000 × 100 = 25% of gross gains.

How losses and tax rates change the estimate

Losses reduce the net gain used in this calculator's tax estimate. The tax rate applies only if the entered gains exceed losses; when losses equal or exceed gains, the calculator reports no tax on a positive net gain.

Gains Losses Rate entered Net gain Estimated tax
$20,000 $0 15% $20,000 $3,000
$20,000 $5,000 15% $15,000 $2,250
$20,000 $10,000 20% $10,000 $2,000

These estimates assume the entered losses can offset the entered gains in the way modeled. Tax rules distinguish short-term from long-term gains and losses, and other limits or taxes can change the final amount.

What to check before acting

Confirm whether each sale is short-term or long-term and use your filing status and taxable income to identify the applicable rate. The IRS guidance on investment income and capital gains covers holding periods, loss carryovers, and other treatment this calculator does not model.

A net capital loss is not necessarily a tax refund equal to the loss multiplied by your tax rate. The amount and timing of any deduction depend on tax rules and your full return. For the percentage return on a particular position, use the Investment Gain Loss Calculator; for unused losses from prior years, use the Capital Gain Loss Carryover Calculator.

When to use a different calculator

Frequently Asked Questions

How do I calculate net capital gain or loss?

1. Add realized capital gains for the period. 2. Subtract realized capital losses. 3. If the result is positive, multiply it by the tax rate entered to estimate tax. If the result is negative, this calculator reports a net loss and zero tax on that net amount.

Does this estimate calculate my actual capital gains tax?

No, it is a simplified estimate using one rate on gains minus losses. Actual federal tax can depend on holding period, taxable income, asset type, other gains and losses, and taxes such as the net investment income tax; the IRS overview of capital gains and losses explains key rules.

Can a capital loss reduce tax on ordinary income?

In some cases, an individual's net capital loss can offset capital gains and then up to $3,000 of other income in a tax year, with a lower limit for married taxpayers filing separately. Unused losses may carry forward; see the IRS rules in Publication 550 and confirm how they apply to your return.

Are unrealized investment losses included?

No, an unrealized loss on an asset you still own is not entered as a realized capital loss. This calculator estimates results from amounts you enter and does not decide whether a sale qualifies for tax treatment.

Does the 15% rate apply to every investor's long-term gains?

No, 15% is not a universal capital gains rate. Long-term rates depend on taxable income and filing status, while short-term gains are generally taxed under ordinary income rules; this calculator does not determine which rate applies to you.