
Overpay Your Mortgage or Invest? The Real Math, After Tax (Spain, 2026)
You get €10,000 out of nowhere. A big bonus, a small inheritance, a severance payment, savings that have finally added up. And the usual dilemma shows up: do you put it into the mortgage, leave it in a deposit that now pays 2.5 %, or invest it?
The answer you’ll find almost everywhere is «it depends». True, but not much use. Here we’ll do the maths with numbers, including what nearly every comparison leaves out: tax. And at the end you’ll see that part of the decision isn’t maths at all, but how well you sleep at night.
To make the numbers visible, we’ll follow Teresa: she has €150,000 left on her mortgage at a 3 % fixed rate, with 20 years to go, and pays €831.90 a month. She has just received that €10,000. (The fund is made up; the numbers are rounded so you can follow them.)
If you want to run your own numbers as you read, use the mortgage overpayment calculator.
Overpaying is an investment at your mortgage rate, and tax-free
When you overpay, your «return» is the interest you stop paying. If your mortgage is at 3 %, every euro you overpay saves you that 3 % for the rest of the loan. No surprises: it’s set by contract.
And one detail changes everything: that saving isn’t taxed. What you stop paying the bank isn’t income, so there’s nothing to declare.
Deposit interest, on the other hand, counts as income from movable capital1 and is taxed every year in the savings base of Spanish income tax (IRPF), on this scale (state and regional parts added together, the same across the common regime since 2025):2
| Interest and gains in the year | Rate |
|---|---|
| Up to €6,000 | 19 % |
| €6,000 to €50,000 | 21 % |
| €50,000 to €200,000 | 23 % |
| €200,000 to €300,000 | 27 % |
| Over €300,000 | 30 % |
In other words, a deposit at 3 % AER doesn’t give you 3 %: it gives you 2.43 % (3 % minus 19 %), and that’s in the lowest bracket. To beat a 3 % mortgage, a 3 % deposit isn’t enough. You need quite a bit more.
Why you can’t compare «€7,749 of interest» with «your fund will be worth €32,000»
The comparison you’ll see almost everywhere puts two figures side by side: the interest you save by overpaying, and what your investment will be worth in twenty years. They’re figures from different moments, and comparing them like that makes no sense.
The honest way is to run all three paths to the same day (the day Teresa would finish paying the mortgage as it stands today) and look at how much money she has saved on that day, after tax. In all three the mortgage ends up paid off, so that’s the only thing that changes:
- Overpay and shorten the term. Teresa keeps paying €831.90 a month and finishes 1 year and 9 months earlier. Those 21 months of payments she no longer makes go into savings.
- Overpay and lower the payment. She finishes on the same day, but her payment drops to €776.44. The €55.46 she saves each month goes into savings.
- Don’t overpay. The €10,000 goes into savings from day one.
That’s how our calculator works it out, and that’s how every example below is done.
Case 1: a deposit at 2.5 % AER
Teresa and the deposit. Her bank offers her a renewable deposit at 2.5 % AER. In 20 years, after paying tax on each year’s interest, she’d have this:
Path Saved at the end Overpay, shorter term €18,054 Overpay, lower payment €16,360 Deposit at 2.5 % €14,932 Overpaying and shortening the term wins by €3,121. Shortening the term saves her €7,749 in interest; lowering the payment, €3,310.
And from what rate would the deposit win? With Teresa’s numbers, from 3.75 % AER. Note that it isn’t her mortgage’s 3 %: it’s 3 % plus what income tax takes (3.75 % minus 19 % is just over 3 %).
If you’re comparing deposits or savings accounts, remember to look at the AER and not the nominal rate: we explain it in the difference between AER and nominal rate.
Case 2: an index fund
The fund has two advantages over the deposit. First, you expect it to earn more in the long run. Second, tax: the gain isn’t taxed until you sell, and if you move the money from one investment fund to another (a transfer, or traspaso) it isn’t taxed then either.3 So it grows whole, without income tax taking a bite every year. We go into detail in how investments are taxed in Spanish income tax.
Teresa and the Boring But It Works Fund. It’s a global stock index fund. Let’s assume it returns 6 % a year on average over the 20 years. That’s an assumption, not a promise: no actual year looks like the average. In 20 years, after paying tax when she sells:
Path Saved at the end Overpay, shorter term €18,484 Overpay, lower payment €22,782 Fund at 6 % €27,556 Investing beats the best way of overpaying by €4,775. And notice something curious: here lowering the payment beats shortening the term, because the money she saves each month starts earning 6 % from the start.
The break-even point with the fund is 3.58 % a year. It’s lower than the deposit’s because the tax is paid only once, at the end.
What the calculator doesn’t tell you: certainty against expectation
The €18,054 from overpaying and the €14,932 from the deposit are certain: the bank won’t charge Teresa a euro more or a euro less than agreed. The fund’s €27,556 is an expectation: an average 6 % over twenty years, which in real life comes as +25 % years and −20 % years (we explain it in how compound interest works). If Teresa needs the money right after a bad run, her result can fall well short, and even be negative if the period was short.
So the real comparison isn’t «€18,054 against €27,556», but «€18,054 for certain against a range that most of the time gives you more, but sometimes gives you less». How much that uncertainty weighs depends on you, not on a formula.
Shorter term or lower payment
When you overpay, the bank asks how to apply it. Check your deed, which usually says:
Shorten the term (same payment, you finish earlier). It saves you the most interest, and it almost always wins when the alternative is a deposit.
Lower the payment (same term, you pay less each month). It saves you less interest, but gives you breathing room every month from now on. And if you invest that room in something that earns more than your mortgage costs, as in case 2, it can leave you with more money at the end.
In other words, «more interest saved» doesn’t always mean «more money». If what you want is to ease your monthly budget, lowering the payment makes perfect sense even if the maths says otherwise.
The early repayment fee: what the law allows
Before you decide, check your deed. The limits depend on when you signed it.
If you signed on or after 16 June 2019, Spain’s Mortgage Credit Law applies, and the bank can never charge you more than it actually loses because of your overpayment:4
- Variable rate: at most 0.15 % of the capital you repay early during the first 5 years, or 0.25 % during the first 3 (one or the other, depending on what you agreed).5 After that, nothing.
- Fixed rate: at most 2 % during the first 10 years and 1.5 % after that.6
If it’s older, that law doesn’t apply to it (unless you’ve since changed or transferred it),7 and your deed rules within the law of the time. For those signed from December 2007 onwards, the early cancellation fee can’t exceed 0.5 % in the first 5 years and 0.25 % after that,8 and fixed-rate loans can also carry an interest-rate risk compensation, which «shall be as agreed».9
Teresa and the fee. Her mortgage is fixed-rate and she signed it in 2021, so the bank could charge her up to 2 %. Her deed says 1 %. Out of her €10,000, she overpays €9,901 and pays €99 in fees. Against the 2.5 % deposit, overpaying and shortening the term leaves her €17,877 instead of €18,054: it still wins, but the break-even drops from 3.75 % to 3.69 %.
If you bought your home before 2013
If you bought your main home before 1 January 2013 and were already claiming the home deduction, you still have it:10 15 % of what you pay towards the mortgage each year (7.5 % state and 7.5 % regional, unless your region set a different rate), up to €9,040 a year, including both capital and interest.11 What you overpay counts too: the Directorate General of Taxes (DGT) explicitly includes it in the base.12
And here’s a maths trap you’ll hear a lot: «overpay until you reach €9,040 a year, and you get 15 % back». Overpaying doesn’t give you any new deduction: it brings it forward. What you overpay today you no longer pay in later instalments, which would have been deductible too. And the interest you save stops earning its 15 %, so in practice your mortgage is a bit cheaper than the contract says, and overpaying pays off a little less.
Where the deduction really does change the decision is how you overpay.
Teresa, had she bought in 2010. Her instalments add up to €9,982.80 a year, above the maximum, so she deducts €1,356 every year. If she overpays and shortens the term, she finishes paying 21 months earlier… and stops deducting 21 months earlier. If she lowers the payment, she still pays €9,317 a year, still above €9,040, and loses nothing. Against the 2.5 % deposit:
Path Saved at the end Overpay, shorter term €15,654 Overpay, lower payment €16,360 Deposit at 2.5 % €14,932 With the deduction, the best option is no longer shortening the term, but lowering the payment.
If your mortgage is variable
With a variable mortgage you don’t know how much you’ll save, because it depends on Euribor over the coming years. The honest approach is to enter in the calculator the rate you expect to pay on average (Euribor plus your margin) and try a couple of scenarios: if overpaying wins with Euribor both low and high, the decision is clear. If it changes with the scenario, you’re betting. Go over the differences between fixed and variable mortgages if you’re not sure which one you have.
Three questions that weigh as much as the maths
Do you have a separate emergency fund? Money you put into the mortgage doesn’t come back. If the €10,000 is all your savings, neither overpaying nor investing should come first: you need an emergency fund to fall back on without selling investments at a bad time or taking out a loan to cover something unexpected.
How long is left on the mortgage? The less time left, the less interest there is to save, and the less sense overpaying makes.
How well do you handle watching your money fall? If a −20 % in the fund is going to make you sell at the worst moment, the 6 % average isn’t yours. For you, the right comparison is against the deposit, and there overpaying usually wins.
A rule of thumb so you don’t overthink it
- If the alternative is a deposit, overpaying almost always wins, unless the deposit pays quite a bit more than your mortgage. As a reference, in the lowest bracket it needs around 25 % more (3.75 % against 3 %).
- If the alternative is a fund, you have a horizon of more than ten years, you already have your emergency fund and your mortgage is below 3-3.5 %, investing usually comes out ahead in the long run, with ups and downs along the way.
- If you have the pre-2013 deduction and your instalments go over €9,040 a year, overpay by lowering the payment, not the term.
- And if you’re unsure, there’s nothing wrong with splitting: part to overpay and part to invest. It isn’t all or nothing.
How does Cuéntamo help with this?
Before deciding what to do with that €10,000, the first thing is to know whether it’s really spare. Cuéntamo’s balance forecast tells you how much you’ll have in each account over the coming months, with the mortgage and every other bill already taken off, so you can see whether that money is free savings or you’ll need it for something you haven’t written down yet.
If you overpay, you change the payment amount (or the end date, if you shorten the term) in the mortgage’s recurring item and see straight away how your future balance changes. If you invest, the investments module tracks that portfolio alongside the rest of your accounts, and the Net worth module shows how your net worth evolves: the mortgage as a debt going down and the investment as an asset going (hopefully) up.
You can try Cuéntamo for free at cuentamo.com, built for your household finances.
Frequently asked questions
Is it better to overpay my mortgage or put the money in a deposit?
It’s almost always better to overpay, because the interest you save isn’t taxed and deposit interest is, at between 19 % and 30 %. With a €150,000 mortgage at 3 % over 20 years, the deposit would have to pay around 3.75 % AER just to break even.
Is it better to overpay the mortgage or invest in a fund?
It depends on the return you expect and the risk you can stomach. In this article’s example, a fund averaging 6 % leaves €27,556 against €22,782 from overpaying, but that return isn’t guaranteed; the break-even point is around 3.58 % a year.
Should I shorten the term or lower the payment when I overpay?
Shortening the term saves more interest and usually wins if the alternative is a deposit. Lowering the payment can win if you invest what you save each month in something that earns more than your mortgage costs, and also if you have the pre-2013 home deduction and pay more than €9,040 a year.
How much can a Spanish bank charge me for overpaying?
For mortgages signed on or after 16 June 2019: on a variable rate, 0.15 % in the first 5 years or 0.25 % in the first 3, and nothing afterwards; on a fixed rate, up to 2 % in the first 10 years and 1.5 % after that. Never more than the bank actually loses.
If I have the home deduction, should I overpay up to €9,040?
It isn’t the bargain it seems: overpaying doesn’t create new deduction, it brings it forward, and the interest you save is no longer deductible. What matters is how you overpay: if you pay more than €9,040 a year, shortening the term costs you the last years of deduction and lowering the payment doesn’t.
Cuéntamo tells you how much money you’ll have in each account over the coming months, with the mortgage and every other bill already taken off. So you know whether what’s spare is really spare before you put it into the mortgage or a fund.
This article is for information only. It isn’t financial or tax advice. Before overpaying your mortgage or investing a significant amount of money, consider talking to an independent financial adviser.
Figures for 2026. Savings-base income tax scale in force since 2025 (Law 7/2024); early repayment fees under Law 5/2019, in force since 16 June 2019; home deduction under the transitional regime since 2013 (Law 35/2006, eighteenth transitional provision). The examples apply the common-regime scale and assume no other savings income.
This article is checked against official sources and reviewed periodically. If you spot anything out of date, email us at [email protected].
Spanish Income Tax Law 35/2006, art. 25.2: income from movable capital includes that obtained from the «cesión a terceros de capitales propios» (lending your own capital to third parties), including «los intereses» (interest). Art. 46 places it in savings income. ↩︎
Spanish Income Tax Law 35/2006, art. 66.1 (state scale) and art. 76 (regional scale), identical: 9.5 / 10.5 / 11.5 / 13.5 / 15 % each. The top bracket, «En adelante 15» (onwards, 15), was added by Law 7/2024, final provision 7, «con efectos desde el 1 de enero de 2025» (effective from 1 January 2025). The Basque Country and Navarre have their own scale. ↩︎
Spanish Income Tax Law 35/2006, art. 94.1.a): if the redemption goes into another fund, «no procederá computar la ganancia o pérdida patrimonial» (no capital gain or loss is recognised). It doesn’t apply if the money passes through your account, nor to exchange-traded funds (ETFs). ↩︎
Law 5/2019 on mortgage credit agreements, art. 23.4: the lender «no podrá cobrar compensación o comisión» (may not charge any compensation or fee) outside the cases in sections 5 to 7, and in those never above «la pérdida financiera» (the financial loss). ↩︎
Law 5/2019, art. 23.5: two cases «excluyentes entre sí» (mutually exclusive), with «el límite del 0,15 por ciento» (a 0.15 % limit) during the first 5 years or «el límite del 0,25 por ciento» (a 0.25 % limit) during the first 3. ↩︎
Law 5/2019, art. 23.7: «el límite del 2 por ciento» (a 2 % limit) during the first 10 years and «el límite del 1,5 por ciento» (a 1.5 % limit) until the end of the loan. ↩︎
Law 5/2019, first transitional provision: it «no será de aplicación a los contratos de préstamo suscritos con anterioridad» (shall not apply to loans signed before it), unless they are later «objeto de novación o de subrogación» (amended or transferred). ↩︎
Law 41/2007, art. 8: «al 0,5 por ciento del capital amortizado anticipadamente» (0.5 % of the capital repaid early) in the first five years and «al 0,25 por ciento» (0.25 %) afterwards. ↩︎
Law 41/2007, art. 9.2: for loans not reviewed every 12 months or less, the interest-rate risk compensation «será la pactada» (shall be as agreed). ↩︎
Spanish Income Tax Law 35/2006, eighteenth transitional provision: it is kept by those who bought their main home «con anterioridad a 1 de enero de 2013» (before 1 January 2013) and had claimed it before that date. ↩︎
Spanish Income Tax Law 35/2006 as worded on 31 December 2012, art. 68.1: «el 7,5 por ciento de las cantidades satisfechas» (7.5 % of the amounts paid), on a maximum base of «9.040 euros anuales» (€9,040 a year) which, with borrowed financing, includes «la amortización, los intereses» (repayment of capital and interest). The regional part, in art. 78 of that same wording, is «con carácter general el 7,5 por ciento» (7.5 % as a general rule). ↩︎
Directorate General of Taxes, binding ruling V2358-21: the deduction base includes what is paid «de cada anualidad, o amortización anticipada» (of each annual payment, or early repayment). ↩︎