Comparison: Mortgage vs. Investment
Compare your mortgage equity against an investment portfolio over time
Select reports to compare
Select two reports to compare
Choose one mortgage report and one investment report to see the wealth comparison
Saved reports
No saved reports yet
What does this tool compare?
It compares two uses for the same money: overpaying your mortgage or investing it. Overpaying reduces your debt and the interest you will pay in future. Investing lets that capital grow through compound interest. The outcome depends primarily on the gap between your mortgage interest rate and the return you earn on your investments.
When to overpay / When to invest
Overpay the mortgage
- Mortgage interest rate > 4 %
- Low tolerance for financial risk
- Variable-rate mortgage and rising Euribor
- You want a guaranteed saving in interest
Invest the difference
- Low mortgage rate (< 3 %)
- Investment horizon > 10 years
- Fixed rate with comfortable monthly payments
- You already have a solid emergency fund
How to read the chart
The vertical axis shows accumulated net wealth. The 'Mortgage equity' line represents the total debt you have cancelled on your mortgage. The 'Investment portfolio' line shows the investment value in each year. The break-even year is when the portfolio surpasses the mortgage equity. If your expected return exceeds your mortgage rate, investing tends to win over the long term — but the investment return is uncertain.
What this comparison does not cover
This tool compares the financial mathematics of the two options. It does not account for: investment risk (returns can be negative), tax treatment of mortgage interest (varies by Spanish resident status and autonomous community), early repayment notary costs, or your personal liquidity situation. Speak with a financial adviser before making a significant decision.
Frequently asked questions
- Why do I need to save reports before comparing?
- The comparison uses the exact parameters of your mortgage and your investment — principal, interest rate, overpayment strategy, horizon, and contributions. Saving reports in each calculator lets you compare with your own numbers, not generic defaults.
- When is overpaying better than investing?
- In general, if your mortgage interest rate is higher than your expected investment return, overpaying is a guaranteed saving. If you expect to earn more from investments than your mortgage costs, investing may build more wealth over the long term. The mortgage rate is a certain cost; the investment return is uncertain.
- What if I want to compare reducing the term vs. reducing the monthly payment?
- Create two strategies in the mortgage calculator — one reducing the term and one reducing the payment — save each as a separate report, then compare each against the same investment scenario.
When should you overpay and when should you invest?
The decision hinges on a single threshold: the real cost of your mortgage versus your expected investment return. If your mortgage rate is 3 % and you expect 7 % annually from a stock index, the maths favour investing. If your mortgage rate exceeds your expected return, overpaying is a guaranteed saving.
However, the mortgage rate is a fixed, known cost; investment returns are uncertain. A bad market year can temporarily flip the comparison. This is why overpaying carries a security value the numbers do not always capture: certainty.
A balanced approach: maintain an emergency fund of 3-6 months of expenses, pay off expensive debts first (credit cards, personal loans), then decide between overpaying your mortgage or investing the surplus. Both strategies can be combined.
The return threshold
The break-even point where investing and overpaying are equal is roughly your mortgage interest rate. Historically, the S&P 500 has returned around 10 % per year (gross, in USD); the MSCI World, around 8 % per year; Spanish 10-year government bonds, between 3 % and 4 %.
With variable-rate mortgages tied to Euribor, rates rise and fall. In 2022-2024 the 12-month Euribor moved from negative to 4 %, dramatically shifting the analysis for many Spanish homeowners. At a 4 % mortgage rate, investing in equities is still reasonable over the long term (10+ years), but the mathematical edge shrinks and risk weighs more heavily.
With fixed-rate mortgages between 2 % and 3 %, diversified long-term investing has historically been the mathematically superior choice. Above 5 %, overpaying and equities are roughly equivalent on a risk-adjusted basis.
Tax considerations in Spain
Tax treatment can shift the return threshold by several percentage points. Three key elements to consider in Spain.
Mortgage interest deduction
The national mortgage deduction for primary residence was abolished in 2013. Only buyers who purchased before 1 January 2013 and were already claiming it can apply it. For these buyers, making early repayments reduces the loan balance but does not affect the deduction, which is calculated on amounts paid that year.
Capital gains taxation
Investment gains are taxed under the savings income rate in the IRPF: 19 % up to €6,000; 21 % from €6,000 to €50,000; 23 % from €50,000 to €200,000; and 27 % above €200,000. This reduces your net investment return and can bring the threshold closer to the mortgage rate.
Pension plans and PIAS
Contributions to pension plans reduce your IRPF taxable base (up to €1,500 per year individually, plus €8,500 from employer contributions). If you have access to a company pension scheme with employer contributions, it may be more tax-efficient than either overpaying your mortgage or investing in direct funds. Always consult a tax adviser for your specific situation.
Time horizon matters
In the short term (under 3 years), equities are unpredictable — they can fall 30-40 % without recovering within that window. Mortgage overpayments always produce a guaranteed interest saving.
In the medium term (3-10 years), equities begin to show their historically positive risk premium, but market cycles mean results can vary enormously depending on entry and exit timing.
Over the long term (10+ years), historical evidence strongly favours diversified investing over early mortgage repayments on loans with moderate rates (below 4-5 %). Compound interest has time to work and volatility smooths out.
Personal factors that influence the decision
The maths is only part of the equation. Your income stability, psychological risk tolerance, and mortgage type (variable vs. fixed) determine which strategy suits you best. With variable income, reducing debt provides security that is hard to quantify numerically. If you know you would react badly to a 30 % market drop, the guaranteed overpayment may be the smarter decision even if the numbers say otherwise.
Also factor in early repayment fees. Law 5/2019 caps charges: for variable-rate mortgages, maximum 0.25 % of the repaid capital in the first three years, 0.15 % in years four and five, and nothing from year six onwards. For fixed-rate mortgages, the cap is 2 % in the first ten years and 1.5 % thereafter. Include these costs in your real-saving calculation.
How to get the most from this tool
To get maximum value from Pirfila's comparison: go to the mortgage calculator, enter your real mortgage data (outstanding balance, current rate, remaining term) and add the overpayment you are considering; save the report. Then go to the investment calculator, enter the same amount as an initial contribution with a horizon matching your remaining mortgage term; save the report. Finally, open this comparison, select both reports, and observe the break-even year and wealth evolution.
Remember that a 1 % change in expected return can shift the break-even year by several years. Experiment with different assumptions to understand the range of possible outcomes before making a decision.