Recommended resources
The freely available resources this lesson will direct you to.
- Invertir en INMUEBLES como EMPRESA o PARTICULAR ¿Cuál es la Mejor Opción?www.youtube.com
- Cómo Pagar menos IMPUESTOS: ¿Comprar Vivienda como Empresa o como Persona Física?🤔www.youtube.com
- Cómo tributan los ingresos por alquiler de viviendasgermanjover.com
- Comparativa Autónomo vs SLU ¿Qué conviene más?iseasesores.com
Hello! Welcome back to our course on real estate investment analysis.
In our last lesson, we explored the high-level strategic decision of whether to invest through a Spanish Sociedad Limitada or as an individual. We focused on how rental income is taxed, the "trapped cash" problem in an SL, and the powerful wealth and estate planning benefits of achieving actividad económica.
Today, we will build directly on that foundation to fully address our current learning outcome: Compare the tax treatment of rental income and capital gains for a Sociedad Limitada vs. an individual. We will move from strategy to a detailed, tactical comparison of the tax rules that apply to your two main sources of profit: ongoing rent and the final sale of the property. Understanding this is crucial, as the optimal structure can change dramatically depending on whether your primary strategy is buy-and-hold or buy-to-sell.
1. Taxation of Rental Income (The "Buy-and-Hold" Scenario)
Let's begin by solidifying our understanding of how profits from long-term rentals are taxed. We touched on this last time, but now we'll formalize the comparison.
First, let's watch a concise explanation that contrasts the two approaches.
Cómo Pagar menos IMPUESTOS: ¿Comprar Vivienda como Empresa o como Persona Física?🤔
The video 'Cómo Pagar menos IMPUESTOS' by Jose Muñoz provides a clear starting point for comparing the taxation of rental income for an individual versus a company.
Watch the segment from 00:33 to 03:02. Focus on two key points: the fixed corporate tax rate versus the individual's progressive IRPF rates, and the critical 50% tax reduction available only to individuals.
As the video highlights, the two systems are fundamentally different. Let's break them down.
A. Individual Investor (Persona Física)
When you own a rental property in your own name, the net profit is considered a return on real estate capital (rendimiento del capital inmobiliario) and is integrated into the general tax base (base imponible general) of your Personal Income Tax (IRPF).
The calculation is as follows:
- Calculate Net Rental Income:
Gross Rental Income - All Deductible Expenses - Apply the 50% Reduction: If the property is the tenant's primary residence, you reduce the net rental income by 50%. This is a huge advantage.
Taxable Base = Net Rental Income * 0.5 - Apply IRPF: The resulting taxable base is added to your other general income (like your salary) and taxed at your progressive marginal IRPF rates, which can range from 19% to over 47%.
To better understand what qualifies as a deductible expense, the following article provides an excellent list.
Cómo tributan los ingresos por alquiler de viviendas
The article 'Cómo tributan los ingresos por alquiler de viviendas' by Germán Jover details the expenses you can deduct as an individual landlord and explains the significance of the rental income reduction.
Read the sections titled 'Gastos que se pueden deducir de los ingresos por los alquileres' and 'Reducción del 60% por arrendamiento de inmuebles destinados a vivienda habitual'. Please note that the general reduction discussed in the article has been updated from 60% to 50% for new contracts starting in 2024, but the mechanism is the same. Focus on the variety of deductible costs, from financing and taxes to depreciation.
B. Corporate Investor (Sociedad Limitada)
For a company, the process is more straightforward but lacks the key benefit of the individual.
- Calculate Profit Before Tax:
Gross Rental Income - All Deductible Expenses - Apply Corporate Tax (IS): The profit is taxed at a fixed rate under the Impuesto sobre Sociedades. This is generally 25%, or a reduced rate of 23% for companies with a turnover below €1 million. There is no 50% reduction.
The cash is now in the company. As we discussed in the previous lesson, getting it into your personal account requires paying a second layer of tax via salary or dividends (double taxation).
Rental Income: Comparative Summary
| Feature | Individual (Persona Física) | Company (Sociedad Limitada) |
|---|---|---|
| Tax Applied | IRPF (Personal Income Tax) | IS (Corporate Tax) |
| Tax Base | Net Rental Income (after expenses) | Profit Before Tax (after expenses) |
| Key Feature | 50% reduction on net income | No special reduction |
| Tax Rate | Progressive (19% - 47%+) on the reduced base | Fixed (typically 23% or 25%) |
| Cash Access | Immediate | Requires salary or dividend distribution (double tax) |
| Best For... | Generating immediate personal cash flow from rentals. | Reinvesting profits within the company to grow a portfolio. |
2. Taxation of Capital Gains (The "Buy-to-Sell" Scenario)
Now we turn to the second major profit center: selling the property. Here, the tax treatment diverges significantly, and the advantage often flips to the corporate structure. This is especially relevant for "fix-and-flip" strategies but applies equally to the eventual sale of a long-term rental.
The following video brilliantly explains the core difference, focusing on a major pitfall for individual investors.
Cómo Pagar menos IMPUESTOS: ¿Comprar Vivienda como Empresa o como Persona Física?🤔
Let's analyze the tax on capital gains. This clip from Jose Muñoz's video explains a critical, and often costly, nuance regarding deductible expenses when an individual sells a property.
Watch from 05:57 to 08:35. The central point is the distinction between 'conservation/repair' and 'improvement' costs. Understand why, for an individual, many common renovation costs do not reduce the taxable gain, leading to tax on 'phantom profits'.
Let's formalize the concepts from the video.
A. Individual Investor (Persona Física)
When you sell a property as an individual, the profit is a capital gain (ganancia patrimonial) and is taxed in the savings tax base (base imponible del ahorro) of your IRPF.
The calculation is: Taxable Gain = Sale Price - Acquisition Value
The problem lies in what constitutes the "Acquisition Value." While it includes the purchase price and transaction costs, many renovation expenses are considered improvements (mejoras), not repairs (reparaciones). For tax purposes, improvements do not reduce your taxable gain upon sale.
- Example: You buy for €150k, spend €20k on a new kitchen and bathroom (an improvement), and sell for €200k. Your cash profit is €30k (€200k - €150k - €20k). However, Hacienda may consider your taxable gain to be €50k (€200k - €150k), as the €20k improvement is not deducted. You pay tax on €20k of profit you never actually made.
This taxable gain is then subject to the progressive capital gains tax rates.

B. Corporate Investor (Sociedad Limitada)
For a company, the logic is much simpler and aligns with standard business accounting.
- Calculate Profit Before Tax:
Profit = Sale Price - (Acquisition Value + All Legitimate Renovation & Sale Costs) - Apply Corporate Tax (IS): The profit is simply added to the company's other profits for the year and taxed at the fixed Corporate Tax rate (23%/25%).
Crucially, all renovation costs, whether repairs or improvements, are considered business expenses and are fully deductible from the sale price. The company pays tax on its real, economic profit. This is a major advantage for any strategy that involves significant renovations before selling.
Capital Gains: Comparative Summary
| Feature | Individual (Persona Física) | Company (Sociedad Limitada) |
|---|---|---|
| Tax Applied | IRPF (Savings Base) | IS (Corporate Tax) |
| Taxable Base | Sale Price - Acquisition Value |
Sale Price - (Acquisition Value + All Costs) |
| Key Feature | Non-deductibility of "improvement" costs, leading to potentially inflated taxable gains. | Full deductibility of all legitimate business expenses, including all renovation costs. |
| Tax Rate | Progressive (19% - 28%) | Fixed (typically 23% or 25%) |
| Best For... | Selling a long-term hold with minimal renovations. | "Fix-and-flip" or any strategy involving significant value-add renovations before sale. |
Test your understanding!
An investor buys an apartment for €100,000. They spend €15,000 on a full renovation (considered an "improvement") and sell it for €140,000. Their real cash profit is €25,000. Compare the tax paid as an individual (at 19% IRPF) versus through an SL (at 23% IS).
Show answer
-
Individual:
- Taxable Gain: €140,000 - €100,000 = €40,000 (The €15k renovation cost is not deducted).
- Tax Paid: €40,000 * 19% = €7,600.
-
Sociedad Limitada:
- Taxable Profit: €140,000 - €100,000 - €15,000 = €25,000.
- Tax Paid: €25,000 * 23% = €5,750.
The SL structure results in paying nearly €2,000 less in tax because it taxes the real profit.
Conclusion
We have now conducted a detailed comparison of the tax treatment for both rental income and capital gains, which is fundamental to choosing the right ownership structure for your real estate investments in Spain.
Key Takeaways:
- For rental income (buy-and-hold), personal ownership is often more tax-efficient for generating immediate cash flow, thanks to the powerful 50% reduction on net income in IRPF.
- For capital gains (buy-to-sell/flip), a Sociedad Limitada is generally more tax-efficient because it allows for the full deduction of all renovation expenses, ensuring tax is paid only on the true economic profit.
- The optimal structure is not one-size-fits-all. It's a trade-off that depends directly on your primary investment strategy:
- Strategy: Long-term rentals for cash flow? Lean towards Personal Ownership.
- Strategy: Renovate and sell for capital growth? Lean towards a Sociedad Limitada.
Preview of the Next Lesson:
Theory and tables are essential, but as a software engineer, you know that the real insights come from modeling. In our next and final lesson of this module, we will put this knowledge into practice. You will write Python code to model and compare the after-tax returns of owning property personally versus through a Sociedad Limitada. This will create a powerful tool to run your own scenarios, test different assumptions, and make data-driven decisions for your future investments.