Ch6. Capital Gains Tax — Complete Guide to Selling Real Estate and Stocks
What Is Capital Gains Tax?
Capital gains tax is the federal tax on profit from selling a capital asset. Put simply: “buy low, sell high — pay tax on the difference.”
Capital Gain = Amount Realized − Adjusted Basis − Selling Costs
Capital Gains Tax = Capital Gain × Tax Rate
(after applicable exclusions and deductions)
Capital gains tax is governed by the Internal Revenue Code (primarily §§1001, 1221–1231) and is a federal direct tax. State income taxes also generally apply to capital gains.
Taxable Assets
The main asset categories subject to capital gains tax:
Real Property and Real Property Rights
- Land, buildings (including residential homes)
- Rights to acquire real property (contracts, options)
- Easements and other real property interests
Stocks and Business Interests
- Publicly traded stock (all sales — short and long term)
- Private company stock and LLC membership interests
- Partnership interests
Other Capital Assets
- Patents, copyrights, and other intangible assets
- Collectibles (antiques, art, coins, gems) — taxed at max 28%
- Precious metals (also max 28%)
Capital Gains Tax Calculation for Real Estate
Step 1: Calculate the Gain
Capital Gain = Amount Realized − Adjusted Basis − Selling Expenses
Adjusted Basis = Original purchase price
+ Acquisition costs (title insurance, attorney fees, transfer taxes)
+ Capital improvements (renovation, addition, new roof)
− Depreciation deductions taken (if rental property)
Selling Expenses: real estate commission (typically 5%–6%), attorney fees,
transfer taxes paid by seller, advertising costs
Step 2: Apply the §121 Primary Residence Exclusion
Long-term homeowners receive the most powerful tax break in the tax code.
| Filing Status | Maximum Exclusion |
|---|---|
| Single | $250,000 |
| Married Filing Jointly | $500,000 |
Requirements: Owned AND used as primary residence for at least 2 of the 5 years immediately preceding the sale. Cannot be used more than once every 2 years.
Step 3: Determine Capital Gains Rates
Long-Term Capital Gains Tax Rates (2025)
| Taxable Income (Single) | Taxable Income (MFJ) | LTCG Rate |
|---|---|---|
| 48,350 | 96,700 | 0% |
| 533,400 | 600,050 | 15% |
| Over $533,400 | Over $600,050 | 20% |
Plus: 3.8% Net Investment Income Tax (NIIT) if MAGI exceeds 250,000 (MFJ)
Short-Term Capital Gains (assets held ≤ 1 year): taxed as ordinary income (10%–37%)
Special Rates:
- §1250 unrecaptured depreciation (rental real estate): max 25%
- Collectibles gain: max 28%
§121 Primary Residence Exclusion — The Biggest Homeowner Tax Break
The most powerful legal tax reduction for individual taxpayers. When requirements are met, gains up to $500,000 (MFJ) are completely excluded from federal income tax.
Basic Requirements
- Ownership: owned the home for at least 2 years (of the past 5)
- Use: used as principal residence for at least 2 years (of the past 5)
- Frequency: not used the exclusion within the past 2 years
Partial Exclusion
If you fail to meet the full 2-year test due to a job change, health reasons, or unforeseen circumstances, you may qualify for a partial exclusion proportional to the time satisfied.
Temporary Absence and Rental
Example: Own home for 5 years, live in it 3 years, rent it for 2 years
Before renting: 3-year owner/use → 2-year test met
Can still use §121 exclusion since 2-of-5-year test is met
BUT: gain attributable to the rental period (depreciation recapture) is NOT excludable
Temporary Rental Rule:
If rented while trying to sell or temporarily relocated, IRS may treat as continued use
Consult a tax professional for mixed-use situations
The “Temporary 2-Home” Rule (Simultaneous Homeownership)
When buying a new home before selling the old one, both can potentially qualify — but only one residence can be the primary residence at any given time. The key is to sell the old home within 3 years of purchasing the new one.
Stock and Investment Capital Gains
When Does the IRS Tax Stock Sales?
All stock sales generate a capital gain or loss:
Short-term (≤1 year): ordinary income rates (10%–37%)
Long-term (>1 year): preferential 0/15/20% rates
Wash-Sale Rule (§1091):
Cannot sell a stock at a loss and repurchase the same or substantially identical
security within 30 days before or after the sale
If triggered: the loss is disallowed (added to basis of replacement shares)
Loss Harvesting:
Capital losses offset capital gains dollar-for-dollar
Net losses up to $3,000/year can offset ordinary income
Unlimited carryforward of excess losses to future tax years
Current US Stock Tax Treatment
Qualified Dividends:
Taxed at preferential 0/15/20% LTCG rates (not ordinary income)
Requirements: US corporation (or qualifying foreign); held >60 days around ex-dividend date
Ordinary Dividends:
Taxed at ordinary income rates (10%–37%)
Municipal Bond Interest:
Federally tax-exempt (generally also state-exempt if issued in your state of residence)
Treasury Bond Interest:
Federally taxable; exempt from state/local income tax
Foreign Stock / Investments:
Report on FBAR (FinCEN 114) if foreign accounts exceed $10,000 threshold
FATCA Form 8938 if specified foreign assets exceed thresholds ($50,000 single / $100,000 MFJ)
Stepped-Up Basis at Death
Critical estate planning concept:
When a person dies holding appreciated assets, heirs inherit at the fair market value
on the date of death ("stepped-up basis") — ALL pre-death appreciation is permanently
excluded from capital gains tax.
Example:
Parent purchased stock for $10,000 in 1990
Stock worth $500,000 at parent's death in 2025
Child inherits → adjusted basis = $500,000 (stepped up)
If child immediately sells: $0 capital gain, $0 capital gains tax
Unrealized gain of $490,000 permanently excluded
This is the primary reason wealthy families often prefer to hold appreciated assets
until death rather than gifting them during lifetime.
Filing and Payment Procedures
For Real Estate Sales
- Preliminary reporting: escrow company typically files Form 1099-S with the IRS
- Schedule D / Form 8949: report the sale on your annual Form 1040 (due April 15)
- Installment sales: if seller finances, report gain as payments are received (Form 6252)
For Stock Sales
- Broker provides Form 1099-B with proceeds and cost basis information
- Report all sales on Form 8949 → totals carry to Schedule D → Form 1040
- Wash-sale adjustments may be needed if broker doesn’t account for all wash sales
Practical Tax Minimization Strategies
Strategy 1: Hold Assets for Long-Term Rates
Holding 1 year and 1 day converts short-term (up to 37%) to long-term (max 20%)
For someone in the 22% ordinary income bracket:
Short-term on $100,000 gain = $22,000 tax
Long-term on $100,000 gain = $15,000 tax (or possibly $0 at 0% rate)
Savings: $7,000+ just by waiting past 1 year
Strategy 2: Use the §121 Exclusion Strategically
Build equity in a primary residence and hold for 2+ years before selling. For married couples, up to $500,000 of gain is completely excluded — one of the few truly large capital gains that can be made completely tax-free.
Strategy 3: Tax-Loss Harvesting
Sell underperforming investments to generate capital losses that offset other capital gains. Do not violate the wash-sale rule.
Strategy 4: Gifting Appreciated Assets to Family
Giving appreciated assets to family members in lower tax brackets who then sell can shift the capital gains tax to a lower rate (potentially 0%). The “kiddie tax” rules under §1(g) limit this strategy for children under age 19 (or 24 if full-time students).
Strategy 5: 1031 Like-Kind Exchange (Investment Real Estate Only)
§1031 Exchange:
Defer all capital gains tax by exchanging one investment property for another
Requirements:
- Both properties must be held for investment or business use (not personal residence)
- Must identify replacement property within 45 days of sale
- Must close on replacement property within 180 days
- Use a qualified intermediary (QI) — proceeds cannot touch your hands
Strategy: chain together 1031 exchanges indefinitely → step up basis at death → zero capital gains tax ever paid
Common Mistakes and Warnings
Mistake 1: Missing the estimated tax deadline for a large real estate sale
Large capital gains can create an underpayment penalty. If you sold a property in Q1, you may owe Q1 estimated taxes by April 15. Don’t wait until April 15 of the following year.
Mistake 2: Not tracking capital improvements
Every dollar of improvements (renovation, addition, new HVAC) adds to your adjusted basis and reduces taxable gain. Keep all contractor receipts for as long as you own the property plus 3 years after sale.
Mistake 3: Missing the 2-year residency requirement for §121
You must actually live in the home — not just own it. Renting the home during the 2-year window can disqualify the exclusion.
Mistake 4: Forgetting about state capital gains tax
Many states tax capital gains at ordinary income rates. California taxes capital gains up to 13.3%. Federal planning alone is not sufficient for high-value sales.
Summary Table
| Category | Key Point |
|---|---|
| Taxable assets | Real estate, stocks, collectibles, business interests |
| Primary residence exclusion | 500K — 2-of-5-year ownership + use |
| Tax reduction key | Long-term holding, §121 exclusion, loss harvesting |
| Filing deadline | Annual Form 1040 (April 15) + estimated payments if large gain |
| Annual loss deduction | $3,000 net capital loss against ordinary income |
Capital gains tax planning is fundamentally about advance planning. Before selling any high-value asset, always run a tax simulation and verify whether any exclusions or deferral strategies apply.
OIYO Editorial
Content Editor지식 인큐베이터이자 전문 콘텐츠 크리에이터. 경영, 경제, 법률 및 실생활에 유용한 실무/자격증 중심의 깊이 있는 정보를 연구하고 공유합니다.