Home›Freelancer tools›Capital Gains Tax

Capital Gains Tax Calculator – Crypto, Stocks & Real Estate (US 2026)

Estimate US federal short-term vs long-term capital gains tax on stocks, crypto and property with 2026 tax brackets, NIIT surtax, and filing status.

Total Capital Gain
$30,000.00
Sale Price minus Cost Basis
Estimated Total Tax Owed
$6,000.00
Federal + State Combined
Net Profit (After Tax)
$24,000.00
Effective Tax Rate
20.0%
Tax Component Bracket / Rate Amount
Federal Capital Gains Tax15.0% (Long-Term)$4,500.00
Net Investment Income Tax (NIIT 3.8%)0.0% (Under MAGI limit)$0.00
State Income Tax Estimate5.0%$1,500.00
Total Tax Obligation-$6,000.00
Tax Tip: Holding this asset for more than 1 year qualified you for the preferential 15% long-term rate, saving you money over short-term ordinary tax rates.
Financial and commercial tariff estimate only, not certified customs or tax advice.

Short-Term vs. Long-Term Capital Gains Tax Explained

When you sell an investment asset—such as stocks, ETFs, Bitcoin, Ethereum, or real estate—for more than you paid for it, the profit is subject to Capital Gains Tax:

2026 Federal Long-Term Capital Gains Tax Brackets

Tax RateSingle FilersMarried Filing JointlyHead of Household
0%Up to $47,025Up to $94,050Up to $63,000
15%$47,026 – $518,900$94,051 – $583,750$63,001 – $551,350
20%Over $518,900Over $583,750Over $551,350

What is the Net Investment Income Tax (NIIT 3.8%)?

An additional 3.8% Medicare surtax applies to net investment income if your Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers or $250,000 for married couples filing jointly.

Frequently asked questions

How is crypto capital gains taxed?

The IRS classifies cryptocurrency as property. Selling, trading one crypto for another, or spending crypto triggers a taxable event based on your cost basis in USD.

Can capital losses offset capital gains?

Yes! You can offset an unlimited amount of capital gains with capital losses. If your losses exceed gains, you can deduct up to $3,000 per year against ordinary income and carry forward the rest indefinitely.

What is the wash-sale rule?

The wash-sale rule prevents you from deducting a loss if you buy the same or substantially identical security within 30 days before or after the sale.

Automate high-yield savings & wealth growth

Earn competitive yields on your emergency reserves with FDIC insurance and automated portfolio rebalancing.

Explore High-Yield Savings

More tools

Hourly Rate Calculator
Project Quote Calculator
Self-Employment Tax (US)
Invoice Generator
Hourly to Salary Converter
Profit Margin Calculator
Mortgage / Loan Calculator
VAT / Sales Tax Calculator
Compound Interest Calculator
Password Generator
Word & Character Counter
Credit Card Payoff
Auto Loan Calculator
ROI & Break-Even
Case Converter
JSON Formatter
PayPal & Stripe Fee
Inflation Calculator
Percentage Calculator
URL Encoder / Decoder
Markdown to HTML
Text Diff Checker
Debt Payoff Planner
Retirement Calculator
Currency Converter
Enterprise Quote Maker
Timestamp Converter
UUID Generator
M3U8 Player
WebRTC Tester
JWT & SSL Inspector
Bitrate Calculator
Cron Generator
SaaS Metrics & LTV/CAC
Payment Gateway Fees
W-2 vs 1099 Converter
Runway & Burn Rate
OG & Card Previewer
JSON to TS & Zod
Mortgage Extra Payoff
Startup Equity & Options
SQL Formatter & Explainer
Amazon FBA & E-Com Margin
Email Subject Line Tester
High-Yield Savings
Lease vs Buy Car
Rent vs Buy Home
Freelance Rate & Pricing
Bill of Sale Generator
FIRE & Early Retirement
Real Hourly Wage & Commute
Promissory Note
Deposit Demand Letter
Cash Receipt Voucher
TDEE & Calorie Deficit
IP Fraud & Quality Score
Browser Fingerprint
Security Headers Evaluator
Display & Monitor Tester
Mic & Audio Analyzer
Webhook HMAC Verifier
SSL CSR & Key Generator
Bufferbloat Speed Tester
Regex & ReDoS Auditor
PDF Redaction & Sanitizer
SQLite Database Studio
CIDR Subnet Planner
Domain Ping & DNS
Dockerfile Security Linter
Audio Tone & Sweeper
BIP-39 Mnemonic Generator
WCAG Contrast & Vision Simulator
SQL to ORM Converter
HAR Analyzer & Redactor
PCAP Packet Dissector
SQL EXPLAIN Visualizer
OpenAPI Auditor & Mock
RSA Key & Envelope Cryptor
US Synthetic Address Gen
Parquet SQL Studio
K8s Security & Cost Auditor
SSL Certificate Chain Verifier
Protobuf AST Inspector
JS Memory Leak Analyzer
Landed Cost Calculator
CBM & Volumetric Weight
E-Com Return Simulator
GS1 Barcode Generator
Fraud & Chargeback Auditor
US Visa Cost Calculator
Green Card Cost Estimator
Citizenship N-400 Calculator
ESTA vs B1/B2 Comparison
H-1B Visa Fee Breakdown
Life Insurance Calculator
Term vs Whole Life Simulator
Social Security Breakeven
Disability Gap Calculator
Umbrella Insurance Calculator
LTC Cost Calculator
1040-ES Tax Calculator
Roth vs Traditional Calculator
RSU Tax Calculator
Crypto Tax Calculator
State Paycheck Moving Calculator
Section 179 Calculator
QBI 199A Calculator
Estate & Gift Tax Calculator
401(k) Match Maximizer
Mega Backdoor Roth
HSA vs FSA vs Roth
Withdrawal Sequence Planner
T-Bill Ladder Calculator
LLC vs S-Corp Calculator
Operating Agreement Maker
Lease Agreement Maker
NDA & Contractor Maker
DRIP Calculator
Portfolio Rebalancer
Offer Letter Maker
SOW Generator
Cap Rate Calculator
BRRRR Method Calculator
1031 Exchange Calculator
HELOC vs Cash-Out Refi
Airbnb Income Calculator
Etsy Fee Calculator
ROAS Calculator
Cloud Cost Calculator
SWE Offer Calculator
Contract Kill Fee Calculator
SaaS Churn & LTV Calculator
SAFE Note Dilution Calculator
Buy-Sell Agreement Maker
Car Depreciation Calculator
Rule of 72 Calculator
HYSA Tax Drag Calculator
Paid Family Leave Calculator
Affidavit Generator