SelfSellIt

fsbo guide

How to Calculate Capital Gains Tax When Selling a House in Spain

If you are selling a property in Spain without an estate agent, one of the most searched questions is how much tax you may owe after the sale. This guide explains, in plain English, how capital gains tax on a Spanish home sale is usually calculated, which costs may count, and which common exemptions you should check before listing.

How capital gains tax works when you sell a house in Spain

If you are planning to sell your home privately, one of the first things to understand is the tax bill that may follow the sale. A very common search is some version of “capital gains tax when selling a house in Spain” or “how much tax do I pay if I sell my property in Spain?”

The short answer is this: if you sell for more than your adjusted purchase cost, the profit is usually treated as a capital gain and may be taxable in Spain.

For a For Sale By Owner seller, this matters for two reasons:

  • it affects the minimum price you are willing to accept
  • it changes how much cash you actually keep after completion

If you are still preparing your sale, it can help to read Sell your house in Spain without an agent first, then come back to the tax side with your numbers in front of you.

What counts as a capital gain

In simple terms, the gain is usually:

Sale value minus acquisition value

But neither side is always just the headline purchase price or sale price.

Sale value

The sale value is normally the amount you sell the property for, but you may be able to deduct certain sale-related costs that you, the seller, actually pay.

These may include, depending on the case:

  • estate agency fees, if any
  • legal fees linked to the sale
  • costs needed to complete the transaction

If you are selling privately, your selling costs may be lower than with a traditional agent, which is one reason many owners choose to List your home free and manage more of the process themselves.

Acquisition value

The acquisition value is usually broader than the original purchase price alone. It may include:

  • the price you originally paid for the property
  • certain taxes and expenses paid on purchase
  • the cost of qualifying improvements or major works

This adjusted acquisition figure is important because it can reduce the taxable gain.

A simple example

Imagine the following approximate scenario:

  • you bought a flat for €180,000
  • you paid eligible purchase costs and taxes of €18,000
  • you later spent €12,000 on qualifying improvements
  • you sell for €260,000
  • you pay €5,000 in eligible selling costs

Your simplified calculation would look like this:

  • Adjusted sale value: €260,000 - €5,000 = €255,000
  • Adjusted acquisition value: €180,000 + €18,000 + €12,000 = €210,000
  • Estimated gain: €255,000 - €210,000 = €45,000

That €45,000 is the figure that would generally be tested for capital gains tax.

This is only a planning example. Your own calculation depends on documentation, residency status, and whether each cost is actually deductible.

Which costs may help reduce the gain

Many sellers overestimate the taxable profit because they forget to gather evidence for costs that may count.

Purchase costs

When you bought the property, you may have paid costs such as:

  • transfer tax or VAT, depending on the purchase type
  • notary fees
  • land registry fees
  • legal fees

These can matter when calculating acquisition value, provided they were genuinely linked to the purchase and properly documented.

Improvement works

This area causes confusion.

Broadly, improvements may increase the acquisition value, while repairs and maintenance often do not in the same way.

Examples that may be treated more like improvements include:

  • structural works
  • major renovations that increase value or useful life
  • significant upgrades to installations

Examples often treated more like maintenance or repair include:

  • repainting
  • fixing leaks
  • replacing broken items on a like-for-like basis

The line is not always obvious. Keep invoices, payment records, and descriptions of the work. If there is any doubt, ask a qualified tax adviser before assuming a cost is deductible.

Selling costs

Seller-paid costs directly tied to the disposal can also be relevant. Keep:

  • invoices
  • proof of payment
  • completion statements

Without paperwork, a cost may be difficult to defend later.

Spanish tax rates on capital gains

Capital gains on a property sale are generally taxed using the savings income scale in Spain. The bands and rates can change over time, so always verify the current year treatment before filing.

For 2026 planning, it is safer to think in terms of progressive bands, meaning different parts of the gain may be taxed at different rates rather than a single flat rate on the whole amount.

Because rates can be updated, avoid relying on old blog posts or forum answers. Check the current tax guidance when your sale is close to completion.

Residents and non-residents: the difference matters

Your tax treatment can differ depending on whether you are a tax resident in Spain or a non-resident seller.

If you are tax resident in Spain

You generally declare the capital gain in your Spanish tax return. Exemptions and reliefs may be available in some cases, especially for a main home.

If you are non-resident

A withholding often applies on the sale price. In practice, buyers usually retain a percentage of the agreed price and pay it to the Spanish tax authorities on account of the seller’s possible tax liability.

That withheld amount is not always the final tax bill. It may be:

  • more than the actual tax due, in which case you may claim a refund
  • less than the actual tax due, in which case more tax may still be payable

This is one of the biggest traps for overseas owners selling in Spain.

Main home exemption: when you may not pay

One of the most important questions is whether the property is your habitual residence or main home.

In some situations, Spanish tax rules allow an exemption on the gain from selling your main home.

Common examples may include:

  • reinvesting in another main residence, subject to conditions
  • older sellers who meet age and occupancy requirements

The rules are detailed, and the conditions matter. You should not assume that simply having lived in the property at some point is enough.

Check things like:

  • how long it has been your main residence
  • whether you are reinvesting within the required time frame
  • whether the full proceeds or only part of them are being reinvested

If you think an exemption may apply, get professional confirmation before setting your budget.

Do not forget the local plusvalía tax

Capital gains tax is not the only tax sellers in Spain may face.

You should also look at municipal plusvalía (often called Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana). This is a local tax linked to the increase in the value of the land, not the building itself.

It is separate from national capital gains tax.

Depending on the municipality and your circumstances, this can be a meaningful extra cost of selling. It should be included in your estimated seller’s budget from the start.

Why local pricing still matters for tax planning

Tax starts with the numbers in your sale. If your asking price is too high, your home may sit on the market. If it is too low, you may give away value unnecessarily.

A practical way to start is to compare current asking prices in your area using market reports and active listings. Idealista publishes regular price reports for Spain and by area, which can help you understand broad local conditions, though asking prices are not the same as final achieved sale prices.[0]

If you are selling in a city-level market, looking at local owner listings can also help. For example, if you are in the region, you can browse Homes for sale by owner in Valencia to see how similar homes are being positioned.

You can also See buyers waiting in your area to gauge demand before you commit to a pricing strategy.

Documents to gather before you list

To estimate your likely tax position properly, prepare these early:

  • title deed from your purchase
  • purchase completion statement
  • proof of purchase taxes paid
  • invoices for notary, registry, and legal costs
  • invoices for improvement works
  • energy certificate and other sale documents
  • mortgage redemption figures, if applicable
  • ID and tax residency documentation

Having a clean file helps in two ways:

  • you can estimate net proceeds more accurately
  • you reduce delays once a buyer is ready

A practical pre-sale checklist

Before you accept an offer, run through this checklist:

  1. Estimate your likely sale price.
  2. List all sale-related costs.
  3. Rebuild your original acquisition cost from documents.
  4. Separate improvements from routine maintenance.
  5. Check whether you are resident or non-resident for tax purposes.
  6. Review whether a main-home exemption could apply.
  7. Budget separately for municipal plusvalía.
  8. Ask a tax professional to review the calculation if the gain is large.

Final thought

Selling without an agent can save money, but it should not mean guessing your way through the tax side. A good FSBO seller knows the likely net proceeds before the home goes live.

If you are ready to take the next step, List your home free on SelfSellIt and start testing buyer demand while keeping full control of your sale.

The key point is simple: do the tax maths before you set your asking price. It is one of the easiest ways to avoid an expensive surprise after completion.

Questions

How do I calculate capital gains tax on a house sale in Spain?

Start with the sale price, subtract eligible selling costs, then compare that figure with your acquisition value, which may include the original purchase price plus certain purchase costs and qualifying improvements. The resulting gain is usually the amount considered for tax, subject to rates, residency rules, and any exemption.

Do renovations reduce capital gains tax in Spain?

Some do, but not all. Qualifying improvements may increase the acquisition value and reduce the taxable gain, while ordinary repairs and maintenance may not be treated the same way. Keep invoices and ask a tax adviser if the classification is unclear.

Is there an exemption if I sell my main home in Spain?

Possibly. In some situations, gains on a habitual residence may be exempt, for example if the proceeds are reinvested in another main home or if specific age-related conditions are met. The exact requirements matter, so do not assume you qualify without checking.

Do non-residents pay capital gains tax when selling property in Spain?

Yes, non-residents can still owe tax on gains from Spanish property. A withholding on the sale price is commonly applied by the buyer as an advance payment toward the seller’s final tax position.

Is plusvalía the same as capital gains tax in Spain?

No. Municipal plusvalía is a separate local tax linked to the increase in land value, while capital gains tax is a national tax on the profit made from selling the property. A seller may need to consider both.