When buying an office, the price in the deed is only part of the cost. Between the tax on the transfer, the associated expenses, the recurring taxes during ownership and the tax on an eventual sale, taxation can substantially alter the effective return on the transaction. Two offices with the same price in the same building can have acquisition costs that differ by several percentage points simply because of the nature of the seller, the status of the buyer or the way the transaction is documented.
Unlike residential property, where the taxation of a purchase is fairly standardised, the acquisition of a commercial property opens up a range of scenarios: buying from a developer or between private parties, acquiring as an individual or through a company, owner occupation or letting, and the option of waiving the VAT exemption. Each combination has different consequences for the liquidity needed to complete the transaction, for the final cost and for future taxation.
This article sets out those scenarios from the perspective of an office buyer in Madrid and complements, on the tax side, the analysis of whether it is better to buy or rent offices in Madrid in 2026. The figures and rates quoted correspond to the national and Community of Madrid regulations in force at the time of writing; any specific transaction should be reviewed with a tax adviser, because the particulars of each case are usually what determine the outcome.
VAT or ITP: the first tax decision in the purchase
The first question that defines the tax cost of the acquisition is whether the transaction is subject to Value Added Tax or to the property transfer tax, ITP (Impuesto sobre Transmisiones Patrimoniales). The two taxes are mutually exclusive for the same transfer, but they are not equivalent in their economic effect on the buyer.
First transfer: buying from a developer
When the office is bought from a developer on its first transfer after construction or after a refurbishment that meets the legal requirements, the transaction is subject to VAT and not exempt. The rate applicable to offices and commercial premises is the standard 21%. On top of this comes stamp duty, AJD (Impuesto sobre Actos Jurídicos Documentados), on the public deed, whose general rate in the Community of Madrid is 0.75% of the declared value.
For a business or professional buyer entitled to deduct it, the input VAT is not a final cost: it is recovered in subsequent returns or through a refund claim. It is, however, a liquidity problem, because it requires paying the additional 21% at signing and financing it until it is recovered. For a buyer who cannot deduct VAT, such as a private individual who does not assign the office to a business activity or an entity whose activity is exempt, the 21% becomes a pure acquisition cost.
Second and subsequent transfers: ITP and waiving the exemption
When the office has already been transferred before, the transaction is, as a general rule, exempt from VAT and subject to the property transfer tax (ITP). In the Community of Madrid, the rate applicable to real estate is 6% of the transaction value, which cannot be lower than the cadastral reference value where one exists.
ITP is a final cost for any buyer: it cannot be recovered. That is why VAT legislation allows the seller to waive the exemption if the seller is a business and the buyer is also a business entitled to deduct the tax in full or in part. In that case, the transaction is subject to VAT at 21% under the reverse charge mechanism, meaning that the buyer self-assesses the tax and, in most cases, deducts it in the same return. In exchange, the deed becomes subject to AJD.
The economic effect is significant. On an office worth 2 million euros, the difference between paying 6% ITP and 0.75% AJD amounts to more than 100,000 euros in final tax cost. The waiver requires precise formal conditions: verifiable notice between the parties, a declaration by the buyer of their right to deduct and consistency with the use of the property. An error in the documentation can invalidate the waiver and lead the tax authorities to claim the ITP years later.
When waiving does not pay
Waiving the exemption is not always advantageous. If the buyer has a limited right to deduct, for example a bank or insurance company with a reduced pro rata, the non-deductible portion of the VAT may exceed the ITP saving. In addition, an acquisition with VAT opens a ten-year adjustment period for real estate capital goods: if during that period the use of the office changes to an exempt activity or it is sold without VAT, the buyer may be required to repay part of the VAT deducted.
Completion costs and total acquisition cost
In addition to indirect taxes, the purchase of an office involves notary, land registry and administrative agency (gestoría) costs and, where applicable, valuation and brokerage fees. In mid-sized transactions, notary and registry fees together usually represent a small percentage of the price, normally below 0.5%, although their relative weight increases in smaller deals.
If the purchase is financed with a mortgage, the loan deed has its own treatment. Since the 2018 reform, the lender is liable for AJD on mortgage-backed loan deeds. The other completion costs, such as valuation or administrative agency fees, are allocated as set out in the 2019 Real Estate Credit Act when the borrower is an individual; in financing granted to companies on commercial property, that allocation is negotiated with the bank and must be reviewed in the offer.
A buyer looking at offices for sale in Madrid should always work with the total acquisition cost rather than the price in the deed. In a resale purchase without a waiver, that total cost can be 7% to 8% above the price; with a valid VAT waiver and a buyer with full deduction rights, it can fall to around 1.5% to 2%, not counting the financial impact of paying the VAT upfront when the reverse charge does not apply.
Buying as an individual or through a company
The second major tax decision is the acquisition vehicle. The choice between buying directly or through a company determines the taxation of income, the deductibility of expenses and the taxation of a future sale.
Individual
An individual who buys an office to let it pays tax on the income obtained as income from real estate capital under personal income tax (IRPF), included in the general tax base, with marginal rates that in the Community of Madrid can exceed 43% in the top brackets. Unlike residential lettings, office lettings do not benefit from the 60% reduction on net income.
Deductible items include interest on the financing, IBI (property tax), community fees, insurance, repairs and maintenance, and depreciation, calculated at 3% of the higher of two values, acquisition cost or cadastral value, excluding the value of the land in both cases. Office lettings are subject to VAT, so an individual owner must charge 21% to the tenant and file the corresponding returns, and a business tenant must withhold 19% of the rent.
Company
If the office is acquired through a company, the income is taxed under corporate income tax at the standard rate of 25%. The same items are deductible, with depreciation adjusted to the tax tables: for commercial, administrative and service buildings, the maximum straight-line rate is 2% a year on the value of the building, with a maximum period of 68 years.
The comparison does not end with the headline rate. If profits are distributed to shareholders as dividends, they are taxed again in the savings base of personal income tax, at rates of 19% to 30%. The company is efficient when the income is reinvested in the asset-holding structure itself, and less so when the investor needs to draw on it regularly.
Asset-holding entity and economic activity
There is a nuance worth knowing: a company whose assets consist mainly of let properties may be classified as an asset-holding entity (entidad patrimonial) if the letting does not constitute an economic activity. For corporate income tax purposes, the letting of property is considered an economic activity when at least one person is employed full time under an employment contract to manage it. Classification as an asset-holding entity has consequences for certain tax incentives, for the taxation of the transfer of shares and, in succession planning, for the application of reductions in inheritance and gift tax.
Depreciation: separating land and building
Whatever the vehicle, depreciation is one of the items with the greatest impact on annual taxation, and its base depends on how the price is split between land and building. Land cannot be depreciated. In offices in central Madrid, where land values are very high, the depreciable portion can be considerably smaller than the buyer assumes.
The most common approach is to apply to the purchase price the ratio between the cadastral value of the land and that of the building shown on the IBI bill. It is a simple method accepted by the tax authorities, although it does not always reflect economic reality: in recently refurbished buildings, the building has a real value higher than its cadastral value. In such cases, a valuation report justifying a different split can legitimately increase the depreciable base, provided it is properly documented.
Subsequent investment in the office, such as upgrading air-conditioning systems, improving the building envelope or fitting out spaces, is also depreciated, usually at its own rates depending on its nature. From a technical standpoint, the renovation project should break down the items properly so that they can be correctly classified for tax purposes: an air-conditioning system does not have the same useful life for tax purposes as a façade.
Taxation during ownership: IBI and other recurring costs
While the property is held, the office generates local taxes that must be built into the return analysis. The most significant is IBI (property tax). Madrid City Council applies differentiated rates to non-residential properties whose cadastral value exceeds certain thresholds, so the highest-value offices in areas such as the Castellana axis, Salamanca or Chamberí bear a higher rate than the standard one. In commercial buildings of a certain size, IBI can represent a noticeable share of gross rent.
For let offices, IBI and the waste collection charge are usually passed on to the tenant under the contract, a common practice in Madrid's office market. Passing them on improves the owner's net return, but it must be expressly agreed in the lease. For anyone analysing Madrid's prime office submarkets such as Azca, Cuzco, Salamanca or Chamberí, the difference between a lease with full pass-through and one without it can amount to several tenths of a point of yield.
In terms of wealth tax, the Community of Madrid maintains a 100% relief on Wealth Tax, although the temporary national solidarity tax on large fortunes may affect high-net-worth estates. This is a matter to be analysed case by case with specialist advice, because its validity and its interaction with regional legislation have been subject to recent changes.
Taxation on sale: capital gains and adjustments
The tax analysis of a purchase is incomplete if it does not anticipate the exit. When the office is sold, three main tax effects arise.
Capital gain or corporate income
For an individual, the difference between the transfer value and the acquisition value, reduced by the depreciation taken, constitutes a capital gain taxed in the savings base, at rates of 19% to 30% depending on the amount. It is important to stress that the depreciation deducted during ownership reduces the acquisition value: what is saved in annual income tax is partly recovered on sale.
For a company, the income obtained is included in the corporate income tax base at the standard rate of 25%, with no inflation adjustment coefficients, which were abolished in 2015.
Municipal capital gains tax
The transfer also triggers the municipal capital gains tax (plusvalía), the tax on the increase in value of urban land. Following the 2021 reforms, the taxpayer can choose between the objective method, based on the cadastral value of the land and coefficients according to the holding period, and the actual gain method, and pays no tax if they can show that there has been no increase in the value of the land.
VAT on sale
If the office was acquired with VAT and is sold within the ten-year adjustment period through an exempt transaction, the seller must adjust the proportional part of the VAT deducted. Waiving the exemption on sale, when the buyer is a business entitled to deduct, avoids that adjustment and is usually the option preferred by both parties.
Tax planning built into the purchase decision
The taxation of an office is not a formality settled at the notary's office, but a variable that must be built into the investment decision from the very first analysis. The acquisition vehicle, the possibility of waiving the VAT exemption, the split between land and building, the treatment of IBI in the lease and the exit strategy together determine how much the asset really returns.
For a long-term property investor, the useful question is not how much it costs in tax to buy an office, but which tax structure maximises the net return over the entire holding cycle. The answer depends on the buyer's profile, time horizon and liquidity needs, and it can only be reached when the technical, financial and tax analyses of the property are carried out in a coordinated way. That is the standard of analysis demanded by any commercial asset in Madrid intended to remain in a portfolio for the long term.
