If you're an investor, expatriate, or dual-resident trying to decide where your capital gains will be taxed more favorably, this Spain United States capital gains tax comparison is exactly what you need. Whether you're selling stocks, real estate, or cryptocurrency, understanding which country has lower capital gains tax can save you thousands—or even tens of thousands—of dollars each year.
In this guide, we'll walk through the 2025/2026 capital gains tax frameworks of both countries, compare rates side by side, explore real-world scenarios, and highlight the treaty provisions that prevent double taxation. Let's dive in.
How Capital Gains Tax Works: A Quick Primer
Before we compare Spain and the United States, let's align on the basics. A capital gain is the profit you earn when you sell an asset—stocks, bonds, mutual funds, real estate, or other investments—for more than you originally paid. Most countries tax these gains, but the rates, thresholds, and exemptions can vary dramatically.
Two key distinctions apply in both countries:
- Short-term capital gains – profits from assets held for a shorter period (generally one year or less in the US; Spain does not differentiate by holding period for rate purposes but does in certain exemption contexts).
- Long-term capital gains – profits from assets held for a longer period, which often qualify for preferential tax rates.
With that foundation, let's examine each country's system in detail.
Spain's Capital Gains Tax System in 2025/2026
Spain taxes capital gains as part of what it calls the "savings income base" (base imponible del ahorro). This is separate from general income (such as salary or business income), and it benefits from its own progressive rate schedule.
Tax Rates for Residents
For the 2025 tax year (filed in 2026), Spain applies the following progressive rates to net capital gains:
| Net Capital Gains (EUR) | Tax Rate |
|---|---|
| Up to €6,000 | 19% |
| €6,001 – €50,000 | 21% |
| €50,001 – €200,000 | 23% |
| €200,001 – €300,000 | 27% |
| Over €300,000 | 28% |
These rates apply to the combined total of all savings income, including dividends, interest, and capital gains from the sale of assets.
Key Exemptions and Reliefs
- Primary residence exemption: If you sell your principal home and reinvest the full proceeds into a new primary residence within two years, the capital gain can be fully exempt.
- Over-65 exemption: Taxpayers aged 65 or older who sell their primary residence are exempt from capital gains tax on that sale, with no reinvestment requirement.
- Loss offsetting: Capital losses can be offset against capital gains in the same tax year, and unused losses can be carried forward for four years.
Non-Resident Taxation
Non-residents who earn capital gains from Spanish sources—most commonly from selling Spanish real estate—are taxed at a flat rate of 19% (for EU/EEA residents) or 24% (for non-EU/EEA residents). Additionally, the buyer is required to withhold 3% of the sale price as an advance payment toward the non-resident seller's tax liability.
Use our Spain Capital Gains Tax Calculator to estimate your exact liability based on your specific gain amount and residency status.
United States Capital Gains Tax System in 2025/2026
The US federal tax code draws a sharp line between short-term and long-term capital gains, and the difference in rates is substantial.
Short-Term Capital Gains (Assets Held ≤ 1 Year)
Short-term gains are taxed as ordinary income, meaning they are added to your other income and taxed at your marginal federal income tax rate. For 2025, those brackets range from 10% to 37%:
| Taxable Income (Single Filer) | Federal Rate |
|---|---|
| Up to $11,925 | 10% |
| $11,926 – $48,475 | 12% |
| $48,476 – $103,350 | 22% |
| $103,351 – $197,300 | 24% |
| $197,301 – $250,525 | 32% |
| $250,526 – $626,350 | 35% |
| Over $626,350 | 37% |
Long-Term Capital Gains (Assets Held > 1 Year)
Long-term gains enjoy preferential rates:
| Long-Term Gains (Single Filer) | Federal Rate |
|---|---|
| Up to $48,350 | 0% |
| $48,351 – $533,400 | 15% |
| Over $533,400 | 20% |
For married filing jointly, the thresholds are roughly double.
The Net Investment Income Tax (NIIT)
High earners in the US face an additional 3.8% Net Investment Income Tax (also known as the Medicare surtax) on capital gains if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This effectively raises the top federal long-term rate to 23.8%.
State-Level Taxes
Unlike Spain, the US has state-level capital gains taxes that stack on top of federal rates. States like California can add up to 13.3%, while states like Texas, Florida, and Nevada impose 0% state capital gains tax. This creates a wide range of effective rates depending on where you live.
Key Exemptions and Reliefs
- Primary residence exclusion (Section 121): If you've lived in your home for at least two of the last five years, you can exclude up to $250,000 in gains ($500,000 for married couples filing jointly).
- Loss harvesting: Capital losses offset capital gains dollar for dollar. If losses exceed gains, up to $3,000 in net losses can be deducted against ordinary income per year, with the remainder carried forward indefinitely.
- Step-up in basis at death: Inherited assets receive a stepped-up cost basis to their fair market value at the date of death, effectively eliminating unrealized gains for heirs.
Estimate your US federal capital gains liability with our United States Capital Gains Tax Calculator.
Spain vs United States: Side-by-Side Rate Comparison
Here's a direct comparison of the key capital gains tax parameters for 2025/2026:
| Feature | Spain | United States |
|---|---|---|
| Short-term rate | 19%–28% (same as long-term) | 10%–37% (ordinary income rates) |
| Long-term rate | 19%–28% | 0%–20% (+ 3.8% NIIT for high earners) |
| Top effective federal/national rate | 28% | 23.8% (federal + NIIT) |
| State/regional surcharge | Regional surcharges are minimal and built into savings rates | 0%–13.3% depending on state |
| Primary residence exclusion | Full exemption if reinvested (or age 65+) | Up to $250K/$500K exclusion |
| Loss carryforward | 4 years | Indefinite |
| Non-resident flat rate | 19% (EU/EEA) / 24% (others) | 15%–30% depending on treaty |
| Holding period differentiation | No rate difference by holding period | Major rate difference (short vs long) |
Which Country Has Lower Capital Gains Tax?
The answer depends heavily on your income level, holding period, state of residence (in the US), and the size of your gain:
- For small long-term gains: The US is often more favorable. A single filer with total income under $48,350 pays 0% federal long-term capital gains tax—something Spain cannot match with its 19% floor.
- For moderate gains ($50,000–$200,000): The US long-term rate of 15% beats Spain's 21%–23% rate on the same bracket.
- For very large gains (over $300,000): Spain's top rate of 28% may be comparable to or slightly higher than the US federal rate of 20% + 3.8% NIIT = 23.8%. However, once US state taxes are added, a California resident could face an effective rate of 37.1%, far exceeding Spain's maximum.
- For short-term gains: Spain may actually be more favorable for high earners, since Spain's 19%–28% rates are typically lower than the US ordinary income rates of up to 37% (plus state taxes and the NIIT).
Practical Examples: Running the Numbers
Let's put real figures behind the comparison.
Example 1: Selling Stocks with a €30,000 Long-Term Gain
In Spain (resident):
- First €6,000 at 19% = €1,140
- Next €24,000 at 21% = €5,040
- Total tax: €6,180 (effective rate: 20.6%)
In the US (single filer, $60,000 total income including the gain, no state tax):
- The entire $30,000 long-term gain falls within the 15% bracket (assuming income above the 0% threshold)
- Total federal tax: $4,500 (effective rate: 15%)
Winner: United States by approximately 5.6 percentage points.
Example 2: Selling Real Estate with a €400,000 Gain (Not Primary Residence)
In Spain (resident):
- €6,000 at 19% = €1,140
- €44,000 at 21% = €9,240
- €150,000 at 23% = €34,500
- €100,000 at 27% = €27,000
- €100,000 at 28% = €28,000
- Total tax: €99,880 (effective rate: ~25%)
In the US (single filer, high income, California resident):
- Federal: 20% + 3.8% NIIT = 23.8% → $95,200
- California state tax: ~13.3% → $53,200
- Total tax: ~$148,400 (effective rate: ~37.1%)
In the US (single filer, high income, Texas resident—no state tax):
- Federal: 23.8% → $95,200
- Total tax: $95,200 (effective rate: 23.8%)
Winner: United States (no-tax state) edges out Spain slightly, but Spain wins decisively against high-tax US states.
You can model your own scenario with our Spain Capital Gains Tax Calculator and United States Capital Gains Tax Calculator.
The Spain-US Tax Treaty and Avoiding Double Taxation
For taxpayers with ties to both countries, the US-Spain Tax Treaty (Convention for the Avoidance of Double Taxation) is critical. Key provisions include:
- Real estate gains: Gains from the sale of real property can be taxed in the country where the property is located. The treaty provides a foreign tax credit in the taxpayer's country of residence to avoid double taxation.
- Stock and securities: Generally taxed only in the seller's country of residence, though certain exceptions apply for gains related to real-property-rich companies.
- Foreign tax credits: US citizens and residents can claim a credit on their US tax return for Spanish capital gains tax paid, and vice versa. This prevents the same gain from being fully taxed twice.
- US citizens in Spain: American citizens living in Spain are uniquely affected because the US taxes its citizens on worldwide income regardless of residence. They must file US returns and can use Form 1116 (Foreign Tax Credit) or the Foreign Earned Income Exclusion (for earned income only—not capital gains) to mitigate double taxation.
Common Mistakes to Avoid
- Forgetting state taxes: Many expats compare Spain's rates only against US federal rates and are surprised by the state-level impact.
- Assuming the treaty eliminates all tax: The treaty reduces double taxation but doesn't always eliminate it. If Spain's tax on a gain is lower than the US tax on the same gain, a US citizen will owe the difference to the IRS.
- Ignoring the 3% withholding in Spain: Non-residents selling Spanish property must account for the buyer's mandatory 3% withholding and file to reclaim any overpayment.
- Misclassifying holding periods: The US holding period rules (over one year for long-term treatment) don't apply in Spain. Moving between countries mid-year requires careful tracking.
- Not reporting foreign accounts: US taxpayers with Spanish financial accounts may need to file FBAR (FinCEN 114) and Form 8938 (FATCA) disclosures, with severe penalties for non-compliance.
Special Considerations for Expats and Dual Residents
Americans Living in Spain
US citizens residing in Spain face the most complex situation. They must:
- File Spanish tax returns as residents (reporting worldwide income)
- File US federal tax returns (reporting worldwide income)
- Use foreign tax credits to avoid double taxation
- Be aware that Spain's higher savings tax rates on moderate gains may generate excess credits that can be carried forward for up to 10 years on the US return
Use our Spain Income Tax Calculator and United States Income Tax Calculator to see how your total income picture interacts with your capital gains.
Spaniards Living in the United States
Spanish nationals living in the US generally only owe US taxes on their capital gains (as US residents). However:
- Gains from the sale of Spanish real estate can still be taxed in Spain (with a US foreign tax credit available)
- Spain's exit tax (Impuesto de Salida) may apply if a Spanish resident with significant unrealized gains moves to certain jurisdictions, though the US-Spain treaty and EU rules provide some protections
Cryptocurrency Gains
Both countries tax cryptocurrency gains as capital gains. Spain includes crypto within the savings income base at the standard 19%–28% rates. The US treats crypto as property, subject to the short-term/long-term distinction. For large crypto gains, the US long-term rate of 15%–23.8% is typically more favorable than Spain's 23%–28% on the same amounts.
Frequently Asked Questions
Is capital gains tax higher in Spain or the United States?
It depends on the gain size, holding period, and US state of residence. For long-term gains, the US is generally more favorable at the federal level (0%–23.8%) compared to Spain (19%–28%). However, high-tax US states can push effective rates above Spain's maximum.
Do I have to pay capital gains tax in both Spain and the US?
If you have tax obligations in both countries, the US-Spain Tax Treaty provides mechanisms—primarily foreign tax credits—to prevent full double taxation. You may still owe a residual amount to one country if its rates are higher.
Can I avoid capital gains tax by moving to Spain or the US?
Moving countries can change your tax residency, but both countries have anti-avoidance rules. The US taxes its citizens regardless of residence, and Spain may impose exit taxes. Timing the sale of assets around a move requires careful planning with a cross-border tax advisor.
What is the capital gains tax rate on real estate in Spain for non-residents?
Non-resident EU/EEA citizens pay a flat 19% on Spanish real estate gains. Non-EU/EEA non-residents pay 24%. The buyer must withhold 3% of the total sale price and remit it to the Spanish tax authority.
Does Spain have a 0% capital gains tax rate like the US?
No. Spain's lowest capital gains rate is 19%, applied to the first €6,000 of net gains. The US offers a 0% rate on long-term gains for taxpayers below certain income thresholds, making it uniquely favorable for lower-income investors.
Conclusion: Key Takeaways for 2025/2026
Here's what you need to remember from this Spain United States capital gains tax comparison:
- The US generally offers lower capital gains tax rates at the federal level, especially for long-term holdings and lower-to-moderate income taxpayers.
- Spain's system is simpler—no holding period distinction for rates, and fewer variables—but its floor of 19% means there's no zero-rate bracket.
- US state taxes are a wildcard that can push American effective rates well above Spain's maximums.
- The US-Spain Tax Treaty is essential for anyone with ties to both countries, providing foreign tax credits to mitigate double taxation.
- Real estate sellers should pay close attention to primary residence exemptions in both countries, as they can eliminate significant tax liabilities.
- US citizens abroad face the most complexity and should plan proactively with qualified cross-border tax advisors.
Ready to calculate your specific capital gains tax? Try our Spain Capital Gains Tax Calculator or United States Capital Gains Tax Calculator to see your estimated liability for 2025.
This article is for informational purposes only and does not constitute tax advice. Tax laws change frequently; consult a qualified tax professional for advice specific to your situation.