Calculate Spanish Capital Gains Tax: €95,000 Example & Audit Docs

Residents pay progressive savings tax rates on capital gains, while non-residents pay a flat 19% if they are EU/EEA taxpayers or 24% for everyone else. Non-resident property sellers also face a mandatory buyer withholding at closing equal to a small percentage of the sale price, filed through Form 211. Primary residence reinvestment and an over-65 annuity exemption can reduce or eliminate the bill, but neither applies automatically: you have to claim them.
TL;DR:
- Non-residents face a flat 19% or 24% capital gains rate, depending on their country of residence, with automatic withholding of 3% at sale for property.
- Residents are taxed on actual gains using progressive savings rates, which apply only to the profit, not the sale price, and may be reduced by reinvestment or age exemptions.
- Accurate gain calculation requires detailed documentation of purchase and sale costs, improvement expenses, taxes, and proof of reinvestment if claiming exemptions.
- Non-residents can file Modelo 210 to reconcile withholding, potentially reclaiming additional paid taxes, but refunds take months to process.
- Over-65 sellers can fully exempt gains by purchasing a life annuity within six months of sale, provided they meet the specific criteria and claim the exemption.
Table of Contents
- Who pays and what rates apply to residents and non-residents
- How to calculate your taxable capital gain step by step
- Reinvestment and over-65 exemptions that can cut your bill
- Non-resident property sales: the 3% withholding and Form 210
- Offsetting capital losses against gains and other savings income
- Documentation checklist to reduce your audit risk
- Exemptions beyond the primary residence and age-based rules
- How inflation and indexation affect your acquisition value
- How capital gains interact with wealth tax and income tax
- Penalties and interest for late or incorrect filings
- Tracking your gains and paperwork without the guesswork
- FAQ
- Sources
Who pays and what rates apply to residents and non-residents
Your tax treatment hinges on residency, not nationality. Spanish tax residency generally follows the 183-day rule or, failing that, where your main economic interests sit. AEAT treats this as the threshold question before any rate applies, so if your situation is borderline, confirming residency status with the Spanish Tax Agency before filing avoids filing under the wrong regime entirely.
Residents report capital gains inside the savings tax base (base imponible del ahorro), taxed on the gain itself, not the sale price, using progressive bands that climb as the gain grows. Non-residents skip the bands and pay a flat rate instead.
- Residents: progressive savings rates applied only to the actual gain, stacked with other savings income like dividends or interest.
- Non-residents from the EU or EEA with effective exchange of information: a flat 19% rate.
- Non-residents from outside the EU/EEA: a flat 24% rate.
Non-residents face a flat 19% or 24% rate depending on their country of residence, while double taxation treaties can sometimes shift the outcome for specific nationalities. Always check whether a treaty between Spain and your home country changes the default treatment before assuming the headline rate applies to you.
How to calculate your taxable capital gain step by step
The taxable gain is transfer value minus acquisition value, but each side of that equation has its own rules.
- Confirm the transfer value. Start with the sale price, then subtract transaction taxes and fees the seller legally paid, such as the plusvalía municipal or agency commissions.
- Confirm the acquisition value. Take the original purchase price, add documented improvement costs, and add acquisition-related taxes and notary fees you paid at purchase.
- Apply the formula. Subtract acquisition value from transfer value to get the gain, watching for special cases like mortgage repayment timing when claiming reinvestment, or transitory abatement coefficients that still apply to assets acquired before 1994.
Say you bought a flat for €150,000 in 2015, paid €12,000 in acquisition taxes and notary fees, and later spent €20,000 on a documented kitchen and bathroom renovation. Your acquisition value is €182,000. You sell in 2026 for €280,000, paying €3,000 in agency fees, giving a transfer value of €277,000. Your taxable gain is €95,000.
Non-resident sellers pay either 19% or 24% on the full gain, so that €95,000 gain would generate either €18,050 or €22,800 depending on residency category, before any withholding is reconciled. A resident would instead apply progressive savings bands to the same €95,000, layering it on top of any other savings income for the year.

Reinvestment and over-65 exemptions that can cut your bill
Two exemptions regularly eliminate capital gains tax entirely, but both require action on your part. AEAT does not apply either one automatically.
- The primary residence reinvestment exemption requires reinvesting the proceeds into a new main home within two years, either before or after the sale, and you must formally claim it on your return.
- Partial reinvestment only excludes a proportional share of the gain equal to the percentage reinvested, so reinvesting half the proceeds shields roughly half the gain.
- Sellers over 65 can exempt a gain entirely by purchasing a life annuity within six months of the sale, subject to a reinvestment cap of €240,000 for the exemption.
- Missing either deadline or failing to document the reinvestment triggers a supplementary filing with interest charged from the original due date.
The two-year reinvestment window and partial reinvestment rules are spelled out directly by AEAT, including the requirement to state your intention to reinvest when the purchase happens in a later tax year.
Pro Tip: Keep the purchase contract, payment proof, and notary deed for your reinvestment property in one folder from day one, since AEAT can request this evidence years after the exemption was claimed.

Non-resident property sales: the 3% withholding and Form 210
When a non-resident sells Spanish real estate, the buyer does not hand over the full sale price.
- At closing, the buyer withholds 3% of the total purchase price and submits it using Form 211, an on-account payment toward the seller’s eventual tax bill.
- The seller then files Modelo 210 to report the actual gain, calculate the real tax owed, and either pay any remaining balance or claim a refund if the 3% withheld exceeds the actual liability.
- The seller keeps the Form 211 withholding receipt from the buyer as proof of payment, since it is required to reconcile the amount on the Modelo 210 filing.
- The 3% withholding is not your final tax bill: it is a deposit, and many sellers end up owed money back once Modelo 210 reflects the real gain.
- Refunds typically take several months to process once the AEAT reviews the filing, so sellers expecting a refund should not plan around immediate cash availability.
- Non-residents without a Spanish tax ID or local presence often appoint a fiscal representative to handle the Modelo 210 filing and correspondence with AEAT.
Offsetting capital losses against gains and other savings income
Spain does not tax every capital gain in isolation. Gains and losses first net against each other inside the savings tax base before anything else happens.
- Capital gains and losses are integrated together in the savings base and offset against one another before touching other income categories.
- If losses still exceed gains after that netting, the remaining negative balance can offset other positive savings income, such as dividends or interest, up to 25% of that positive balance for the year.
- Any negative balance left after that can be carried forward to offset future savings income within the periods AEAT allows, so tracking the carryforward across multiple tax years matters.
Readers who also hold dividend-paying investments alongside property should see how dividend taxation interacts with the savings base, since gains and dividend income share the same pool for offset purposes.
Documentation checklist to reduce your audit risk
AEAT routinely disallows deductions it cannot verify, so the paperwork matters as much as the math.
- Purchase and sale deeds, notary receipts, and property registry documentation establishing both transfer and acquisition values.
- Invoices for structural improvements, kept separate from routine maintenance or staging costs, which are not deductible.
- Proof of taxes paid at both purchase and sale, plus the Form 211 withholding receipt for non-resident sales.
- Contracts or payment proof supporting a reinvestment or annuity purchase, if either exemption is being claimed.
Pro Tip: Scan and timestamp every invoice as soon as you pay it rather than searching for paperwork years later when AEAT requests it. A FIFO-based plusvalías walkthrough can help you organize records if you are also tracking securities sales alongside property.
Exemptions beyond the primary residence and age-based rules
A handful of less common situations change how capital gains tax applies, and they come up often enough to matter. Transfers between spouses as part of a divorce settlement or marital property division are generally not treated as a taxable transfer for capital gains purposes, since the asset is simply being reallocated within the marital estate rather than sold to a third party. The specific tax treatment depends on how the transfer is structured in the settlement, so this is worth reviewing with a tax professional before finalizing any agreement.
Inheritance-related gains work differently from a straightforward sale. When you inherit an asset, the acquisition value resets to the asset’s value at the time of inheritance for capital gains purposes, rather than carrying over what the deceased originally paid. Any capital gains tax question only arises later, when you eventually sell the inherited asset and calculate the gain from that stepped-up value, not from the original purchase price decades earlier. Inheritance itself is handled under inheritance tax rules, a separate regime from capital gains tax.
Gifts between family members follow yet another path: the giver may owe capital gains tax on the appreciation up to the gift date, while the recipient faces gift tax separately. These overlapping regimes mean a transaction that looks simple on paper, a property moving from parent to child, can trigger two different tax events for two different people.
How inflation and indexation affect your acquisition value
If you bought property decades ago, you might expect Spain to adjust your acquisition value for inflation before calculating the gain. It largely does not, for recent purchases. Spain eliminated the general inflation adjustment coefficients for most acquisitions, meaning the gain is calculated on nominal values: what you actually paid versus what you actually received, with no adjustment for the purchasing power lost between those two dates.
The one exception that persists involves assets acquired before December 31, 1994, which can still benefit from transitory abatement coefficients that reduce the taxable gain based on how long the asset was held before that date. This is a narrow carve-over rather than a general indexation system, and it only helps sellers with genuinely old acquisitions.
The practical effect is that a property bought twenty years ago and sold today is taxed on the full nominal appreciation, even though a meaningful share of that increase reflects inflation rather than real gain in value. This makes documenting your original acquisition costs and any improvement spending even more important, since those figures directly reduce the nominal gain you will be taxed on.
How capital gains interact with wealth tax and income tax
Capital gains tax does not exist in isolation from the rest of your Spanish tax obligations. Once you file your annual income tax return (IRPF for residents), the capital gain becomes part of your total savings base alongside dividends, interest, and other investment income, which is why the offsetting rules described earlier matter so much for your overall bill.
Wealth tax (Impuesto sobre el Patrimonio) operates on a separate track: it taxes your net worth as of December 31 each year, not your income or gains during the year. Selling an asset for a large gain increases your cash or your new asset’s value, which can in turn raise your wealth tax exposure for that year, even though the gain itself was already taxed under the capital gains rules. The two taxes assess different things, but a single sale can affect both.
Non-residents who sell Spanish property may also need to consider whether they hold other Spanish-situated assets that bring them into wealth tax territory, since wealth tax applies to non-residents based on Spanish-located assets regardless of where they live. Keeping a clear running picture of your total asset base, not just the property you are selling, helps you anticipate both tax exposures rather than being surprised by one after resolving the other.
Penalties and interest for late or incorrect filings
Missing a filing deadline or underreporting a gain carries real financial consequences in Spain, and they compound the longer the issue goes unresolved. Filing late without AEAT prompting you typically results in a surcharge that increases the longer you wait, on top of the tax actually owed. If AEAT catches an error or omission through its own review rather than a voluntary correction, the penalties tend to be steeper and can include a percentage-based fine calculated on the unpaid amount.
Interest accrues separately from penalties, calculated from the original due date until the balance is paid, which means a small discrepancy caught years later can grow considerably once interest compounds across that period. This is precisely why the reinvestment and annuity exemptions carry such a strong documentation requirement: if you claim an exemption but cannot later prove you met the conditions, AEAT treats it as an incorrect filing from the original date, not from when the error was discovered.
Sellers who treat the withholding as the end of their obligation, rather than the beginning of a reconciliation process, are the ones most likely to face a penalty notice months later.
Tracking your gains and paperwork without the guesswork
Calculating a Spanish capital gain accurately means pulling together purchase deeds, improvement invoices, withholding receipts, and prior-year carryforwards, often from several different folders and several different years. There are platforms designed to consolidate your assets, documents, and investment history into one dashboard without requiring you to connect a bank account, helping keep financial records private while still being organized enough to hand to an accountant or use for filing.

- The platform calculates FIFO-based capital gains summaries from manual or CSV-imported transaction history, without open banking.
- A 30-year scenario simulator lets you project how a sale, a reinvestment, or an annuity purchase changes your net worth over time.
- Exportable fiscal reports and detailed asset breakdowns help keep documentation ready for filing season rather than scattered across statements.
If you want a privacy-first way to organize the records this article just walked through, our pricing page outlines the Free, Pro, and Family plans, including a 30-day trial with no credit card required.
This article is general information, not a substitute for advice from a qualified financial advisor. Consult a qualified financial professional about your own circumstances before acting on anything here.
FAQ
How can you reduce or avoid capital gains tax in Spain?
The main legal routes are the primary residence reinvestment exemption, which requires reinvesting within two years, and the over-65 annuity exemption, which requires purchasing a life annuity within six months of the sale. Both require formally claiming the exemption and keeping documentation; neither applies automatically.
Do you pay capital gains tax in Spain if you are over 65?
You can still owe capital gains tax after 65, but you may qualify for a full exemption if you purchase a life annuity within six months of the sale, subject to a €240,000 reinvestment cap. Without meeting that condition, the standard resident or non-resident rates apply as usual.
What are the capital gains tax rates in Spain?
Residents pay progressive savings tax rates applied to the actual gain, stacked with other savings income for the year. Non-residents pay a flat 19% rate if they are from the EU or EEA, or 24% for other countries, and property sales also trigger a 3% buyer withholding at closing.
Which countries have 0% capital gains tax?
Some jurisdictions apply no capital gains tax at all or exempt specific asset classes, but the rules vary widely by country and by the type of asset sold. Spain is not among them: residents face progressive savings rates and non-residents face flat 19% or 24% rates, so anyone selling Spanish assets should plan around those figures rather than a zero-tax assumption.
How is capital gains tax calculated when selling property in Spain?
The taxable gain is the transfer value (sale price minus allowable selling costs) minus the acquisition value (purchase price plus documented improvement costs and acquisition taxes). That gain is then taxed at progressive savings rates for residents or a flat 19%/24% rate for non-residents, after accounting for any withholding already paid.