MAYRASA Real Estate
My account
← Back to News

MAYRASA · News

Selling

Selling the House Before or After Divorce: Taxes, Mortgage and Timing

When a couple decides to separate and the house will be sold, a practical question arises: is it better to sell the house as part of the divorce, before signing it or afterwards? The answer affects taxes, the mortgage and, above all, the price you will ultimately obtain. Let’s break it down. Selling before divorce: the route that usually wins […]

Selling the House Before or After Divorce: Taxes, Mortgage and Timing

When a couple decides to separate and the house will be sold, a practical question arises: is it better to sell the house as part of the divorce, before signing it or afterwards? The answer affects taxes, the mortgage and, above all, the price you will ultimately obtain. Let’s break it down.

Selling before the divorce: the route that usually wins

Selling by mutual agreement while the marriage is still in force has clear advantages: both of you sign as sellers, the mortgage is discharged at the same notary appointment and each party receives their share without intermediate steps. In addition, the regulatory agreement comes later with the problem already solved: you only need to split the money, not negotiate over a property.

There is also a tax advantage: if the house was your main residence, each of you can apply the reinvestment exemption in Personal Income Tax (IRPF) if you buy a new main residence within the following two years, and those over 65 are exempt without conditions. The longer the time between leaving the house and selling it, the greater the risk of losing the status of main residence (the law allows some leeway, but not indefinitely; the spouse who left the property because of the divorce keeps the benefit if the other spouse continued living there with the children).

Selling after the divorce: when it makes sense

Sometimes there is no other option: there is no agreement yet, or the right of use has been granted to the children and the sale is postponed. It is perfectly viable, but with three warnings: you will continue to share expenses and the mortgage in the meantime; a house occupied by only one party usually reaches the market in worse presenting condition; and the sale will again require both signatures, whatever the relationship is like at that time. If the plan is to sell “later”, put a date in the agreement: “we’ll see” turns into years.

And selling my half to the other?

That operation is not a normal sale: it is an end of co-ownership (extinción de condominio), and when done correctly it is taxed much less. We have a full separate guide on it; the key here is a single point: the value of the half must come from an objective valuation, not from an emotional negotiation. Paying too much (or receiving too little) for half of your own home is the most common economic mistake in divorces.

The smart timetable

1) Real valuation of the property, together and with the same data. 2) Decision: sale, partition or agreed waiting period with a date. 3) If selling: prepare and go on the market with a defendable price, without conveying urgency (buyers sense it and use it). 4) Signing and distribution. The whole process can be resolved in a few months if step 1 is done well.

At Mayrasa we accompany separation sales every month: impartial valuation for both parties, identical information for both and full sales management with total discretion. If you are at this point, start by finding out how much the house is worth: it’s free and it clarifies everything else.

Before, after or partition: compared

To see it at a glance, this is how each path looks according to what usually matters most:

AspectSelling beforeSelling afterEnd of co-ownership
Who signsBoth, still marriedBoth, already divorcedOne buys; the other sells their half
TaxationReinvestment exemption easier to maintainRisk of losing main residence status over timeAJD (around 1.5%) for the party who keeps it
MortgageCancelled at the saleCancelled at the sale, but paid in the meantimeRequires loan modification or release of co-debtor
PriceProperty better presented and without urgencyOften worse presented and rushedDepends on the agreed appraisal

The tax clock: don’t lose the reinvestment exemption

The biggest tax advantage of selling what was your main residence is the reinvestment exemption, but it has timing rules that are worth respecting:

  • Two years to reinvest: if you buy another main residence in the two years before or after the sale, the reinvested gain is exempt from IRPF.
  • The spouse who left because of the divorce retains the status of main residence if the other spouse and the children continued living in the house, even if they no longer reside there.
  • Those over 65: the sale of their main residence is exempt without the need to reinvest.
  • The longer the sale is delayed after separation, the harder it is to sustain that it remains a main residence; that’s where the timetable costs money.

These are general IRPF criteria; the detail depends on your case, so confirm it with a gestoría before signing.

Timing mistakes that cost money

  • Leaving the house and letting years pass before selling, thereby losing the reinvestment exemption along the way.
  • Accepting a “we’ll sell later” without a written date in the agreement.
  • Selling in a hurry just after the divorce and accepting the first low offer.
  • Setting the value of the half “by eye” in the end of co-ownership, without an impartial appraisal.
  • Not informing the bank and continuing to be liable for 100% of a mortgage paid by the other party.

Frequently asked questions

Is it better to sell before or after the divorce?

In most cases, before: both of you sign as spouses, the mortgage is cancelled in the sale itself and it is easier to maintain the reinvestment exemption. Selling after makes sense when there is no agreement yet or the right of use has been granted to the children.

How long do I have to reinvest and avoid paying IRPF?

Two years to buy a new main residence, before or after the sale. Only the portion of the gain that you reinvest is exempt; if you reinvest part of it, the remainder is taxable.

Do I lose the exemption if I left the house before selling it?

Not necessarily. If you left the home because of the separation and your ex and the children continued living in it, the tax authorities accept that for you it still has the status of main residence for the exemption.

Can we agree in the settlement that it will be sold within a period?

Yes, and it is highly recommended. Setting a date or milestone (for example, the children reaching legal age) prevents the sale from becoming a “we’ll see” that drags on for years and reopens the conflict. With that clear date, preparing and executing the sale is straightforward.

An example of why timing matters

Imagine a couple with an apartment in Torrevieja that was their main residence. If they sell by mutual agreement before signing the divorce and each reinvests their share in a new main residence, the gain can be exempt from IRPF and the mortgage is discharged at the same notary: problem solved. If, instead, one leaves, the sale is postponed “for later” and three or four years go by with the house half-occupied and without agreement, they may find that it no longer counts as a main residence, that the gain is fully taxable and that during all that time they have continued paying and arguing over the same property. It’s the same flat and the same people: only the timetable changes, and with it, thousands of euros.