How is a capital gain or loss calculated?

by TurboTax •   402
Updated December 11, 2025 8:13 AM

The calculation for a capital gain or loss is straightforward: it starts with the selling price of your capital asset minus its cost basis (what you originally paid for it).

If the number is positive (in other words, you made money on the sale), that's your capital gain.

On the other hand, if the number is negative (you lost money), you have a capital loss, unless the item is personal-use property, which can never be deducted as a capital loss.

Your net capital gain/loss is calculated by subtracting your capital losses from your capital gains (Schedule D). If you have a net capital loss, you can deduct up to $3,000 ($1,500 if Married Filing Separately) per year as a capital loss. If your net capital loss is more than the yearly limit, you can carry the loss to next year's return as a capital loss carryover.

Examples

Joe purchased 100 shares of stock for $3,000 and later sold it for $5,000. Joe has a $2,000 capital gain.

Terry lost $2,400 when they sold their coin collection. Terry has a capital loss and can deduct $2,400 of the loss on this year's taxes.

Riley sold shares of stock in five different companies, and the result was a net capital loss of $5,400. Riley can deduct $3,000 of the loss on this year's taxes and has a $2,400 capital loss carryover for next year.

Found what you need?

Already have an account? Sign in

(4.6/5 | 323,971 reviews)

TurboTax flag icon

Unlock tailored help options in your account

Person smiling while representing TurboTax

Get answers to all your tax questions

Our experts are available on-demand, no appointment needed. Get help all year long with TurboTax Expert Assist.

Intuit Logo
TurboTax LogoCreditKarma LogoQuickBooks LogoMailChimp Logo

©1997-2025 Intuit, Inc. All rights reserved.
Intuit, QuickBooks, QB, TurboTax, Credit Karma, and Mailchimp are registered trademarks of Intuit Inc. Terms and conditions, features, support, pricing, and service options subject to change without notice.

Security Certification of the TurboTax Online application has been performed by C-Level Security.

By accessing and using this page you agree to the Terms of Use.