Capital Gains TaxCalculator

Calculate federal, state, and Net Investment Income Tax (NIIT) on stocks, cryptocurrency, and real estate sales with zero registration.

💼 Business💼 Business⚡ Free & Instant

Transaction Details

Tax & Proceeds Summary

Total Net Gain
$0
Total Tax Due
$0
Net Cash Proceeds
$0
Effective Tax Rate
0.0%
Cost Basis (0%) Taxes (0%) Net Profit (0%)
Federal Capital Gains Tax: $0
Net Investment Income Tax (NIIT 3.8%): $0
Estimated State Tax: $0
Federal Tax Bracket Applied: 0%
Quick Overview & Direct Answer

Capital Gains Tax Calculator - Free Federal, State & NIIT Estimator: Free Capital Gains Tax Calculator tool: calculate short-term and long-term capital gains tax on stocks, crypto, and real estate. Includes 0%, 15%, 20%.

Primary Use Business planning, margin calculations, break-even analysis, invoicing
Input Formats Revenue figures, cost structures, pricing variables
Output Format Profit margins, break-even unit counts, financial summaries
Processing Mode 100% Client-Side Business Logic
Access Tier Free, unlimited, no sign-up needed

How to Use the Capital Gains Tax Calculator

1

Enter Cost Basis & Selling Price

Specify your original asset acquisition cost (including broker fees) and total gross sale proceeds.

2

Designate Holding Tenure

Select whether the asset was held for more than one full year (long-term preferential rates) or one year or less (short-term).

3

Configure Tax Profile

Pick your tax filing status, regular taxable salary/business income, and your resident state tax percentage.

4

Review Total Tax Breakdown

Inspect federal capital gains brackets, Net Investment Income Tax (NIIT 3.8%), state liability, and net retained cash.

Capital Gains Tax Mechanics: Long-Term Brackets, NIIT, and Exclusions

A capital gain occurs whenever a capital asset—such as publicly traded equities, mutual funds, cryptocurrency, precious metals, or real estate—is sold for an amount exceeding its adjusted cost basis. Cost basis represents your original purchase price plus any brokerage commissions, transaction fees, and documented capital improvements. For tax purposes, gains are recognized purely upon realization via sale rather than paper unrealized appreciation.

The temporal holding period governs the federal tax treatment of capital gains. Assets held for 365 days or fewer trigger short-term capital gains, which are taxed at ordinary individual income tax rates ranging from 10% to 37%. In contrast, assets held for more than 365 days qualify for long-term capital gains (LTCG) treatment, benefiting from preferential statutory rates of 0%, 15%, or 20% depending upon total combined taxable income thresholds.

High-earning taxpayers must also account for the Net Investment Income Tax (NIIT). Enacted under the Affordable Care Act, Section 1411 imposes an additional 3.8% surtax on net investment income (including interest, dividends, capital gains, and rental income) for taxpayers whose modified adjusted gross income (MAGI) surpasses $200,000 for single filers or $250,000 for married couples filing jointly.

Real estate investors benefit from unique statutory tax shelters, notably Section 121 and Section 1031. Under Section 121, homeowners who have occupied a property as their primary residence for at least two of the prior five years can exclude up to $250,000 in capital gains ($500,000 for married couples) entirely from federal taxation. For commercial and rental properties, Section 1031 like-kind exchanges enable investors to defer capital gains and depreciation recapture by rolling proceeds into replacement real estate.

Key Advantages & Analytical Value

⚖️

Dual Tenure Analysis

Accurately distinguishes between high ordinary short-term rates and preferential long-term brackets.

📊

NIIT 3.8% Inclusion

Automatically determines Net Investment Income Tax liability based on income phaseouts.

🏠

Section 121 Home Exclusion

Applies statutory primary residence tax exemptions up to $500,000 with a single toggle.

🗺️

State Tax Integration

Models localized state capital gains rates to ensure comprehensive after-tax cash visibility.

🔒

100% Client-Side Privacy

All financial data and portfolios remain strictly on your browser without server recording.

💰

Net Cash Proceeds

Instantly quantifies exactly how many clean liquidation dollars hit your bank account after taxes.

Frequently Asked Questions

Federal long-term capital gains rates are tiered at 0%, 15%, and 20% based on taxable income. Most middle-income filers pay 15%, while higher earners above the statutory threshold pay 20% plus 3.8% NIIT.

The IRS classifies cryptocurrency and digital assets as property. Selling, trading crypto-to-crypto, or spending cryptocurrency is a taxable event subject to short-term or long-term capital gains rules.

Yes. Capital losses first offset capital gains without limit. If net capital losses remain, individual taxpayers can deduct up to $3,000 per year against ordinary income, carrying forward excess losses indefinitely.

Under IRS Section 121, if you owned and lived in the home as your principal residence for at least 2 out of the 5 years prior to the sale, you can exclude up to $250,000 of profit if single or $500,000 if married filing jointly.

NIIT is a 3.8% federal surtax on net investment income that applies to individuals with MAGI over $200,000 (single) or $250,000 (married filing jointly).