Capital Gains Cost Basis Calculator

Work out your adjusted cost basis and resulting capital gain (or loss) from your purchase price, fees, improvements, and selling costs.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Before you can calculate any capital gains TAX, you need an accurate gain figure — and that starts with your adjusted cost basis, which is usually more than just what you originally paid. Enter your original purchase price, any fees or commissions paid to buy it, improvements or capital additions you've made since (for real estate especially — a new roof or addition adds to basis, routine repairs don't), the sale price, and any selling costs or commissions.

This calculator adds fees and improvements to your purchase price to get your adjusted cost basis, subtracts selling costs from your sale price to get net proceeds, and shows the resulting gain (or loss) — the number every other capital gains calculator on this site actually taxes.

Example

Example: a property bought for $300,000 with $5,000 in purchase fees and $40,000 in capital improvements has an adjusted cost basis of $345,000. Sold for $420,000 with $25,000 in selling costs, net proceeds are $395,000 — a capital gain of $50,000, well below the naive $120,000 (sale price minus purchase price) someone might assume without accounting for basis adjustments.

Assumptions

This calculator performs straightforward addition and subtraction — it doesn't apply any tax rates, so there's no capital gains bracket or filing status involved here. It's a general-purpose basis calculator that applies to any asset type (real estate, stocks, or other property); some asset types have additional basis adjustment rules (like depreciation reducing real estate basis) that this simplified version doesn't include.

This tool provides general estimates for informational purposes only and isn't tax, legal, or financial advice. For guidance specific to your situation, consult a qualified tax professional or the IRS.

Frequently Asked Questions

Why isn't my cost basis just what I paid for the asset?

Your basis is adjusted upward by purchase fees/commissions and, for real estate, capital improvements (not routine repairs) — and your net proceeds are reduced by selling costs. Skipping these adjustments overstates your taxable gain.

What counts as a capital improvement versus a repair?

A capital improvement adds value or extends the asset's life (a new roof, an addition, a major renovation) and increases your basis. A routine repair (fixing a leak, repainting) maintains the asset and doesn't add to basis.

What do I do with the gain figure this calculator gives me?

Plug it into the Capital Gains Tax Calculator (or the Long Term/Short Term/Stock/Crypto/Real Estate variants on this site) as your "gain amount" to estimate the actual tax owed on it.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile