Capital Gains Fundamentals - Understanding Your Tax Bill
Learning Objectives
Calculate capital gains and losses using the formula: proceeds minus cost basis
Distinguish short-term from long-term treatment and understand the significant rate difference
Apply 2025 federal capital gains rates accurately based on income brackets
Account for Net Investment Income Tax (NIIT) and state taxes in total liability calculations
Implement holding period strategies to minimize tax legally
Consider two investors who both bought XRP at $0.50 and sold at $3.00:
Gain: $2.50 per XRP
Tax rate: 37% (highest ordinary income bracket)
Tax per dollar of gain: $0.37 + $0.038 NIIT = $0.408
On 10,000 XRP ($25,000 gain): $10,200 tax
Gain: $2.50 per XRP
Tax rate: 20% (long-term capital gains)
Tax per dollar of gain: $0.20 + $0.038 NIIT = $0.238
On 10,000 XRP ($25,000 gain): $5,950 tax
Same investment. Same gain. $4,250 difference in tax.
Two months of additional holding cut the tax bill by 42%.
This is why understanding capital gains mechanics isn't just compliance—it's money in your pocket.
Important Disclaimer:
Tax rates and brackets change annually. This lesson uses 2025 rates. Consult IRS publications or a tax professional for current rates when filing.
CAPITAL GAIN/LOSS CALCULATION:
Capital Gain (or Loss) = Amount Realized - Adjusted Basis
- Amount Realized = Fair market value of what you received (minus selling expenses)
- Adjusted Basis = Your cost in the asset (plus buying expenses)
For XRP, this simplifies to:
XRP GAIN/LOSS:
Gain = Sale Proceeds - Cost Basis
- USD received (if selling for fiat)
- FMV of crypto received (if trading)
- FMV of goods/services received (if spending)
- Original purchase price
- Plus: Transaction fees at purchase
- Plus: Exchange fees
- Plus: Network fees paid at acquisition
DETAILED CALCULATION EXAMPLE:
- Bought 5,000 XRP at $0.60 each = $3,000
- Coinbase fee: $15
- Total cost basis: $3,015
- Sold 5,000 XRP at $2.50 each = $12,500
- Coinbase fee: $25
- Net proceeds: $12,475
Gain calculation:
Proceeds: $12,475
Basis: $3,015
Capital gain: $9,460
Per-unit calculation (useful for partial sales):
Per-XRP basis: $3,015 / 5,000 = $0.603
Per-XRP proceeds: $12,475 / 5,000 = $2.495
Per-XRP gain: $1.892
Losses work the same way but in reverse:
CAPITAL LOSS EXAMPLE:
- Bought 2,000 XRP at $3.00 = $6,000
- Fees: $12
- Basis: $6,012
- Sold 2,000 XRP at $1.50 = $3,000
- Fees: $6
- Proceeds: $2,994
Loss calculation:
Proceeds: $2,994
Basis: $6,012
Capital loss: ($3,018)
- Offset capital gains dollar-for-dollar
- Offset up to $3,000 of ordinary income per year
- Carry forward indefinitely to future years
At year-end, you net your gains and losses:
NETTING PROCESS:
Step 1: Calculate all short-term gains and losses
Step 2: Calculate all long-term gains and losses
Step 3: Net short-term against short-term
Step 4: Net long-term against long-term
Step 5: If both net amounts are same sign, report both
Step 6: If different signs, offset against each other
Example:
Short-term gains: $15,000
Short-term losses: ($8,000)
Net short-term: $7,000 gain
Long-term gains: $25,000
Long-term losses: ($5,000)
Net long-term: $20,000 gain
Result: $7,000 taxed at short-term rates, $20,000 at long-term rates
Short-term: Held ONE YEAR OR LESS
Long-term: Held MORE THAN ONE YEAR
HOLDING PERIOD EXAMPLES:
- Sold January 15, 2025: SHORT-TERM (exactly 1 year = not more than)
- Sold January 16, 2025: LONG-TERM (more than 1 year)
The clock starts the day AFTER acquisition.
Short-term capital gains are taxed at ordinary income rates:
2025 ORDINARY INCOME TAX BRACKETS (SINGLE FILERS):
Rate Taxable Income
10% $0 - $11,925
12% $11,926 - $48,475
22% $48,476 - $103,350
24% $103,351 - $197,300
32% $197,301 - $250,525
35% $250,526 - $626,350
37% Over $626,350
MARRIED FILING JOINTLY:
Rate Taxable Income
10% $0 - $23,850
12% $23,851 - $96,950
22% $96,951 - $206,700
24% $206,701 - $394,600
32% $394,601 - $501,050
35% $501,051 - $751,600
37% Over $751,600
```
Long-term gains receive preferential rates:
2025 LONG-TERM CAPITAL GAINS RATES (SINGLE):
Rate Taxable Income (including gains)
0% $0 - $48,350
15% $48,351 - $533,400
20% Over $533,400
MARRIED FILING JOINTLY:
Rate Taxable Income (including gains)
0% $0 - $96,700
15% $96,701 - $600,050
20% Over $600,050
**Critical insight:** The 0% bracket means some investors pay ZERO federal tax on long-term gains.
RATE COMPARISON AT DIFFERENT INCOME LEVELS:
Example: $50,000 gain on XRP
Scenario A: $100K other income, single filer
Short-term: 24% = $12,000 tax
Long-term: 15% = $7,500 tax
Savings from long-term: $4,500
Scenario B: $400K other income, single filer
Short-term: 35% = $17,500 tax
Long-term: 15-20% = $7,500-10,000 tax
Savings from long-term: $7,500-10,000
Scenario C: $30K other income, single filer
Short-term: 12-22% = $6,000-11,000 tax
Long-term: 0-15% = $0-7,500 tax
Savings from long-term: Up to $11,000
High earners face an additional 3.8% tax on investment income:
NIIT BASICS:
- Net investment income, OR
- Modified AGI exceeding threshold
- Single: $200,000
- Married Filing Jointly: $250,000
- Married Filing Separately: $125,000
- Capital gains (short and long-term)
- Interest
- Dividends
- Rental income
- Royalties
NIIT CALCULATION:
Taxpayer: Single, $180K salary, $100K long-term crypto gains
Step 1: Calculate MAGI
$180,000 + $100,000 = $280,000
Step 2: Amount over threshold
$280,000 - $200,000 = $80,000
Step 3: Identify net investment income
$100,000 (the crypto gains)
Step 4: NIIT applies to lesser of Step 2 or Step 3
Lesser of $80,000 or $100,000 = $80,000
Step 5: Calculate NIIT
$80,000 x 3.8% = $3,040
- Long-term capital gains: $15,000 (15%)
- NIIT: $3,040
- Total: $18,040 (effective 18.04%)
MAXIMUM COMBINED FEDERAL RATES:
Short-term gains (high earner):
37% ordinary + 3.8% NIIT = 40.8%
Long-term gains (high earner):
20% LTCG + 3.8% NIIT = 23.8%
Difference: 17 percentage points
On $100,000 gain: $17,000 savings for long-term
ZERO STATE INCOME TAX:
Alaska
Florida
Nevada
New Hampshire (dividends/interest only)
South Dakota
Tennessee
Texas
Washington
Wyoming
Crypto gains in these states: 0% state tax
HIGH STATE TAX RATES (2025):
California: Up to 13.3% (no LTCG preference)
New York: Up to 10.9% (NYC adds 3.876%)
New Jersey: Up to 10.75%
Oregon: Up to 9.9%
Minnesota: Up to 9.85%
Vermont: Up to 8.75%
Hawaii: Up to 11%
Most states do NOT offer preferential long-term rates—gains are taxed as ordinary income.
$100,000 LONG-TERM GAIN - HIGH EARNER:
Texas Resident:
Federal LTCG: $20,000 (20%)
NIIT: $3,800 (3.8%)
State: $0
Total: $23,800 (23.8%)
California Resident:
Federal LTCG: $20,000 (20%)
NIIT: $3,800 (3.8%)
State: $13,300 (13.3%)
Total: $37,100 (37.1%)
Difference: $13,300 (13.3 percentage points)
New York City Resident:
Federal: $23,800
State: $10,900
City: $3,876
Total: $38,576 (38.6%)
State residency can matter almost as much as holding period.
ZERO PERCENT BRACKET STRATEGY:
Single filer with $40,000 ordinary income
0% LTCG bracket extends to $48,350
Available 0% space: $48,350 - $40,000 = $8,350
Strategy: Realize up to $8,350 in long-term gains at 0% tax
- Hold XRP with $10,000 unrealized long-term gain
- Sell enough to realize $8,350 gain
- Pay $0 federal tax
- Reset basis to higher level
- Repurchase immediately (no wash sale for crypto currently)
This "gain harvesting" locks in tax-free appreciation.
CAPITAL LOSS RULES:
Losses offset gains: Unlimited
Losses offset ordinary income: $3,000/year maximum
Excess losses: Carry forward indefinitely
- Deduct $3,000 vs ordinary income
- Carry forward $47,000
- Apply $20,000 carried loss = $0 tax on gain
- Remaining carryforward: $27,000
- Deduct $3,000 vs ordinary income
- Carry forward $24,000 to 2027
CURRENT WASH SALE STATUS (December 2025):
- Cannot deduct loss if buying "substantially identical"
- Loss is disallowed, added to basis of replacement shares
- Can sell at loss and immediately repurchase
- Loss is deductible
- New position has new (lower) basis
WARNING: This may change. Treasury has proposed extending
wash sale rules to crypto. Form 1099-DA includes Box 1i
in preparation for this change.
COLLECTIBLES TREATMENT:
- Art
- Antiques
- Precious metals
- Stamps, coins
- Certain NFTs (per Notice 2023-27)
- Taxed at regular 0/15/20% long-term rates
- NFT representing collectible art: 28% rate
- NFT as game item, ticket, etc.: Regular rates
---
FULL TAX CALCULATION:
- Single filer
- $120,000 W-2 salary
- Resident of California
- Sold XRP for $80,000 long-term capital gain
Step 1: Federal Ordinary Income Tax (on salary)
Taxable income after standard deduction: $120,000 - $15,000 = $105,000
Tax: $11,000 (10-12%) + $4,500 (22%) + $396 (24%) = ~$16,300
Step 2: Federal Long-Term Capital Gains
Income including gains: $105,000 + $80,000 = $185,000
LTCG in 15% bracket: $80,000 x 15% = $12,000
Step 3: NIIT
MAGI: $200,000 (salary + gains)
Over threshold: $200,000 - $200,000 = $0
NIIT: $0 (just at threshold)
Step 4: California State Tax
CA taxes all income at ordinary rates
Combined income: $200,000
CA tax on gains portion: ~$80,000 x 9.3% = $7,440
Step 5: Total Tax on $80,000 XRP Gain
Federal LTCG: $12,000
NIIT: $0
California: $7,440
Total: $19,440
Effective rate on gain: 24.3%
SAME SCENARIO - IF HELD <1 YEAR:
Short-term gain: $80,000
Taxed at ordinary rates
- Already in 24% bracket from salary
- Additional $80K pushes into 32% bracket partially
- Estimated federal: ~$22,000
- MAGI: $200,000
- At threshold, so $0
- Same ~$7,440
Total if short-term: ~$29,440
Total if long-term: $19,440
Cost of selling early: $10,000 additional tax
CREATE YOUR TAX ESTIMATE:
Input Variables:
A = Your ordinary income (salary, etc.)
B = Your filing status
C = Your state of residence
D = Amount of XRP gain
E = Short-term or long-term
F = Your total MAGI (for NIIT)
1. Look up federal rate based on (A + D) and (B)
2. Apply rate to D
3. If F > threshold, calculate NIIT on lesser of (D) or (F - threshold)
4. Look up state rate for your state
5. Apply state rate to D (if state taxes cap gains)
6. Sum: Federal + NIIT + State = Total tax on gain
7. Effective rate = Total / D
---
HOLDING PERIOD DECISION FRAMEWORK:
- You expect significant price decline
- You need liquidity urgently
- Tax rate difference is minimal (low income)
- You have losses to offset the gain
- You're in high tax bracket (big rate savings)
- You don't need immediate liquidity
- You remain bullish on XRP
- Close to 1-year mark (wait a few more days/weeks)
Calculate your "break-even":
How much would XRP need to fall before short-term
sale saves money vs. waiting for long-term rates?
Example at 35% short-term, 20% long-term:
Break-even decline = (35% - 20%) / (1 - 20%) = 18.75%
If XRP would need to drop >18.75% before your 1-year mark,
holding for long-term treatment makes sense.
INCOME MANAGEMENT:
Strategy: Shift gains to lower-income years
- 2025: High income year (bonus, etc.)
- 2026: Expected lower income (sabbatical, between jobs)
- Defer XRP sales to 2026 if possible
- Lower income = lower capital gains bracket
- May even reach 0% bracket
- Don't let tax tail wag investment dog
- Market risk of holding may exceed tax savings
LOT SELECTION FOR OPTIMIZATION:
- Lot A: 3,000 XRP at $0.30 (old, long-term eligible)
- Lot B: 4,000 XRP at $0.80 (old, long-term eligible)
- Lot C: 3,000 XRP at $2.50 (recent, short-term)
You want to sell 3,000 XRP at current $2.00 price.
- Gain: $2.00 - $0.30 = $1.70/XRP = $5,100 total
- Long-term rate applies
- Tax: $5,100 x 15% = $765
- Loss: $2.00 - $2.50 = -$0.50/XRP = -$1,500 total
- Loss offsets other gains
- Actual benefit depends on gains you're offsetting
- Gain: $2.00 - $0.80 = $1.20/XRP = $3,600 total
- Long-term rate applies
- Tax: $3,600 x 15% = $540
Specific identification lets you choose.
✅ Long-term rates are significantly lower: 0-20% vs. 10-37% creates substantial savings opportunity
✅ Holding period is exactly >1 year: One day matters—January 15 sale of January 15 purchase is short-term
✅ NIIT adds 3.8% for high earners: Applies above $200K single / $250K married thresholds
✅ State taxes vary dramatically: 0% (Texas) to 13.3% (California) changes total burden significantly
⚠️ Future rate changes: Tax rates can change with new legislation
⚠️ Wash sale extension timing: Current crypto advantage may disappear
⚠️ State rule evolution: Some states considering crypto-specific treatment
📌 Selling one day early: Missing long-term treatment by a day is costly and irreversible
📌 Ignoring state taxes: Federal planning that ignores 13% state tax misses major liability
📌 Not tracking lots: Without specific identification, you may get unfavorable FIFO treatment
📌 Tax tail wagging dog: Holding for tax reasons while position crashes is worse than paying tax
Capital gains taxation is where sophisticated planning creates real value. The difference between short-term and long-term rates, the NIIT threshold, the 0% bracket opportunity, and state residency can each save (or cost) thousands to tens of thousands of dollars. But tax optimization should inform, not dictate, investment decisions. A 15% tax on a gain is better than a 0% tax on a loss.
Assignment: Create a spreadsheet that calculates your total tax on XRP gains under various scenarios.
Requirements:
Filing status (single, MFJ, MFS, HoH)
State of residence
Ordinary income (salary, etc.)
XRP gain amount
Holding period (short-term or long-term)
Taxable income (including gains)
Applicable capital gains rate
Federal tax on gains
MAGI calculation
Amount over threshold
NIIT liability
State rate lookup (at least 5 states including your own)
State tax on gains
Short-term vs. long-term treatment
Different gain amounts ($25K, $50K, $100K, $250K)
Different income levels
Different states
Your personal break-even for short vs. long-term
Impact of state residence on your situation
Optimal timing strategies for your circumstances
Accuracy of rate application (30%)
Completeness of scenarios (25%)
Spreadsheet usability (20%)
Analysis quality (25%)
Time investment: 3-4 hours
Value: This calculator becomes your planning tool for all future XRP sales
1. Holding Period Question:
You purchased XRP on March 1, 2024. What is the FIRST date you can sell and receive long-term capital gains treatment?
A) March 1, 2025
B) March 2, 2025
C) February 28, 2025
D) March 1, 2026
Correct Answer: B
Explanation: Long-term treatment requires holding MORE than one year. Exactly one year (March 1, 2025) is not more than one year—it's exactly one year. March 2, 2025 is the first date that is more than one year from March 1, 2024.
2. Rate Calculation Question:
A single filer with $80,000 salary realizes $50,000 in long-term XRP gains. What federal rate applies to the gains?
A) 0%
B) 15%
C) 20%
D) 24%
Correct Answer: B
Explanation: Total income is $130,000. For single filers in 2025, the 15% long-term rate applies from $48,351 to $533,400. The $50,000 gain falls entirely within the 15% bracket. (The 0% bracket ends at $48,350, which is below their ordinary income alone.)
3. NIIT Application Question:
A married couple filing jointly has $300,000 in total income including $75,000 in XRP gains. How much NIIT do they owe?
A) $0
B) $1,900
C) $2,850
D) $5,700
Correct Answer: B
Explanation: NIIT threshold for MFJ is $250,000. Amount over threshold: $300,000 - $250,000 = $50,000. Net investment income is $75,000. NIIT applies to lesser of $50,000 or $75,000 = $50,000. NIIT: $50,000 × 3.8% = $1,900.
4. Loss Limitation Question:
An investor has $60,000 in capital losses and $0 in capital gains this year. How much can they deduct against ordinary income?
A) $0
B) $3,000
C) $60,000
D) $30,000
Correct Answer: B
Explanation: Capital losses can offset capital gains without limit, but only $3,000 of net capital losses can be deducted against ordinary income per year. The remaining $57,000 carries forward to future years.
5. State Tax Impact Question:
An investor with $100,000 XRP gain is choosing between remaining in California or moving to Nevada. Approximately how much state tax would they save by moving?
A) $0
B) $3,800
C) $13,300
D) $20,000
Correct Answer: C
Explanation: California taxes capital gains as ordinary income at rates up to 13.3%. Nevada has no state income tax. On $100,000, California tax would be approximately $13,300 (at the high bracket). Nevada tax: $0. Savings: approximately $13,300.
- IRS Topic 409: Capital Gains and Losses
- IRS Publication 550: Investment Income and Expenses
- IRS Schedule D Instructions
- IRS Form 8949 Instructions
- IRS Revenue Procedure (annual rate updates)
- Tax Foundation state rate comparisons
- Various CPA firm crypto tax guides
- Tax policy analyses on capital gains rates
For Next Lesson:
Lesson 4 examines crypto income—mining, staking, airdrops, and payments—which are taxed differently (and often at higher rates) than capital gains.
End of Lesson 3
Total words: ~5,700
Estimated completion time: 55 minutes reading + 3-4 hours for deliverable
Key Takeaways
Holding period is the biggest lever:
The difference between short-term (up to 37%) and long-term (0-20%) rates on the same gain can exceed 17 percentage points—plus NIIT savings.
The 0% bracket is real:
Low-income years or retirement can enable completely tax-free long-term gains up to $48,350 (single) or $96,700 (married).
NIIT adds 3.8% above thresholds:
High earners ($200K+ single) face maximum combined federal rate of 23.8% on long-term gains, 40.8% on short-term.
State taxes matter enormously:
Moving from California (13.3%) to Texas (0%) on $100K gain saves $13,300—more than many federal strategies.
Lot selection enables optimization:
Specific identification allows choosing which shares to sell, enabling short-term loss harvesting while preserving long-term low-basis positions. ---