Back to the blog
Guides

Container homes Spain: prices, licences and what happens on rustic land in Andalusia

Vladimir Shokov By Vladimir ShokovFounder, EVS PROPERTY GROUP 17 November 2026 · 10 min read
Casas contenedores en Andalucía: precios, licencia y qué pasa si las instalas en suelo rústico

Container homes in Spain cost between €600 and €900/m² turnkey, for the house alone, according to the manufacturer casascontenedores.es (the idealista/news guide gives an average of €600 to €800/m²). In Andalusia, however, a container home you intend to live in counts as a building. It needs a project and a municipal licence, on rustic land it is authorised only exceptionally, and placing one without permission on non-developable land can lead to fines, demolition and even criminal proceedings.

This guide is for anyone thinking of buying a plot in the province of Málaga, whether on the Costa del Sol (Mijas or Estepona) or inland (Casabermeja, Cártama or Ronda), and putting a container house on it. It is not legal advice: before buying any land, ask the town hall for a planning report (informe urbanístico) and speak to a specialist lawyer.

How much does a container home cost in Spain in 2026?

Prices and models of shipping container homes in Spain vary widely with size, finish and manufacturer. The idealista/news guide, updated in January 2026, quotes the manufacturer Casas Contenedores at an average of €600 to €800/m². The price page of casascontenedores.es (October 2026) gives €600 to €900/m² turnkey, VAT included. As a rough guide, a 20-foot container gives you about 15 m² and a 40-foot one about 30 m². These are some starting prices cited by idealista/news:

Manufacturer Floor area Price from
Dos Días Container 30 m² €25,500
Dos Días Container 75 m² €69,700
Dos Días Container 120 m² €106,200
The Corten Company 65.25 m² €117,458
The Corten Company 130 m² €213,358
The Corten Company 253.76 m² €415,908

Building your own is a different starting point. According to casascontenedores.es, an empty 20-foot container costs €850 to €1,500 second-hand and €1,950 to €2,450 new, excluding VAT. A finished home takes 3 to 6 months to manufacture and, if it is maintained, can last 50 years or more, according to the same idealista/news guide.

What is not included in the price?

When a manufacturer advertises a price for a container house in Spain, it covers the module only. It does not include the plot, the technical project and licence, the foundations, the water, electricity and drainage connections, or transport and the crane to get it onto the land. On inland plots with awkward access, these items can change the final budget considerably.

Does a container home need a licence in Andalusia?

Yes. Article 137 of Andalusia’s Law 7/2021 on territorial sustainability (LISTA) requires a prior municipal planning licence for works, constructions, buildings, installations and land uses. The same article obliges companies that sell or install prefabricated buildings suitable for residential use to ask the customer for the licence, or the filed declaración responsable, before installing, selling or renting, and to keep a copy for six years. Selling without it is an offence under Article 161 of the same law.

National law points the same way. Article 11.4.c of the consolidated Land Act (Royal Legislative Decree 7/2015) requires express authorisation to place prefabricated houses and similar installations, whether temporary or permanent. If the authority does not reply, the answer is treated as a refusal.

On top of that, a container home fixed to the plot as a dwelling falls under the Building Act (Ley de Ordenación de la Edificación), which covers residential buildings in all their forms and refers to the Technical Building Code (CTE). In practice, that means an architect’s project, a building licence, compliance with the CTE and, once finished, an occupancy licence or declaration.

What if it has wheels? In December 2024, in a case about a campsite in Tarragona, the Spanish Supreme Court ruled that a mobile home should be treated as a prefabricated house, not a trailer, so it needs a planning licence.

Can you put a shipping container home on rustic land in Spain?

As a home, only exceptionally. Under Article 22 of the LISTA, a detached single-family home on rustic land can only be authorised as an ‘extraordinary action’, on the terms set by regulation. It also must not encourage a new settlement or get in the way of normal rural use. The procedure is demanding:

  • You need prior authorisation before you can even apply for the municipal licence.
  • Neighbours are notified for at least one month.
  • The authority has up to 6 months to decide; if it does not reply, the application counts as refused.
  • If granted, a compensatory levy of 15% of the construction budget applies to detached single-family homes, payable when the licence is issued.

That is why the clearest legal route for a container home as a dwelling is a building plot on urban land, with a licence. On rustic land you cannot simply put the module down and live in it without prior authorisation and a licence, even if it can be dismantled or has wheels.

What can happen if you install it without a licence?

The consequences can be administrative and, on non-developable land, criminal as well:

Route What the law provides
Minor offence (LISTA, Art. 162) Fine of €600 to €2,999
Serious offence (LISTA, Art. 162) €3,000 to €29,999, or up to 75% of the value of the works or land if higher
Very serious offence (LISTA, Art. 162) €30,000 to €120,000, or up to 150%
Restoring legality (LISTA, Art. 153) While works are under way and up to 6 years after completion; no time limit on public land, rustic land in the coastal influence zone, or land at risk of flooding or landslides, among others
Criminal offence (Criminal Code, Art. 319.2) 1 to 3 years’ prison, a fine of 12 to 24 months and a 1 to 4-year professional ban for developers, builders or site managers of works that cannot be authorised on non-developable land
Protected or public land (Art. 319.1) 1 year 6 months to 4 years’ prison
Demolition (Art. 319.3) The court may order demolition at the offender’s expense

The Cártama case

According to idealista/news, the Supreme Court reviewed in its judgment 317/2026 the case of a 4,512 m² plot of ordinary non-developable land in Cártama. The land was split into three parts and sold in 2016 and 2017 as ‘rustic plots with mobile homes’. The buyers set prefabricated modules on concrete blocks and added septic tanks, electricity and water. Málaga Criminal Court No. 5 sentenced the seller to 2 years and 3 months in prison and each buyer to 3 months, plus fines and demolition. The Supreme Court cut the seller’s sentence to 1 year and 10 months. The buyers’ sentences were lower because the court found an avoidable mistake of law: they had not known it was prohibited, but could have found out with minimal care.

The underlying principle, according to the same report, is that what counts is the physical reality and the actual use, not the label. A home that can be dismantled or moved is still subject to planning rules.

The Casabermeja case

In Casabermeja, Xataka reported in October 2026, citing Málaga Hoy, that prosecutors are seeking 15 months in prison for an alleged offence against land-use planning. The accused bought a 3,127 m² plot of ordinary rustic land in 2022 and placed a second-hand mobile home on it, on wheels and without foundations. This is only an accusation: there has been no judgment and the case is awaiting trial.

What should you check before buying a plot?

  • Land classification: ask the town hall for a planning certificate or report to confirm whether it is urban, ordinary rustic or protected rustic land.
  • The nota simple from the Land Registry: ownership, charges and registered area.
  • The Catastro (cadastre), to check that the description matches what is on the ground.
  • That there are no open planning enforcement proceedings against the property.
  • Access, water and electricity: if they are not there, bringing them in is your cost.
  • If it is rustic, whether prior authorisation for a detached home is realistically obtainable at all.

Be wary of adverts offering a ‘rustic plot with mobile home’ as if it were a ready-to-live-in property: that is exactly how the Cártama case began.

Can you get a mortgage on a container home?

Yes, if it is real property. As BBVA explains in an article from January 2026, a prefabricated home can be mortgaged when there is a plot with building rights, an approved (visado) project, a licence, foundations fixing it to the ground and registration in the Land Registry as a completed building. A mobile home on rustic land that is not registered does not qualify for a mortgage; at most, a consumer loan would be the only option.

Container home versus a traditional home on the Costa del Sol

The big appeal of a container house in Spain is the price per square metre. For context, these are the median asking prices from EVS Property’s November 2026 market report:

Area Median asking price €/m²
Costa del Sol €649,000 €4,744/m²
Mijas €549,000 €4,317/m²
Estepona €625,900 €4,825/m²
Marbella €950,000 €6,053/m²
Malaga €625,800 €4,977/m²

But the comparison is misleading. The €/m² of a home for sale includes the land and the location, whereas the €600–900/m² of a container home covers the house alone. You still have to add a buildable plot, the project, the licence, foundations and connections, and the cost of that land can change the numbers completely.

Conclusion

A container home can be a legal, modern home that is cheaper per square metre, as long as it goes on the right land with a licence. The expensive mistake is buying a cheap rustic plot first and asking questions later. If you are looking for land in Mijas, Estepona, Ronda or inland Málaga, EVS Property can tell you what to ask before you commit and, if it suits you better, help you find a home that is already built.

Frequently asked questions

Is it legal to live in a prefabricated or container home in Spain?

Yes, provided it stands on land where housing is allowed, has a project, a building licence and an occupancy licence or declaration, and meets the CTE. What is not legal is installing it without a licence, and on rustic land a detached home also needs prior authorisation.

How much is a container for a home?

According to manufacturers quoted by idealista/news, prices start at €25,500 for 30 m² and go above €400,000 for large models; the manufacturer casascontenedores.es puts the turnkey price at €600 to €900/m². That excludes the plot, licence, foundations and connections.

What are the drawbacks of a container home?

The paperwork is that of any building (project, licence, CTE and occupancy), the advertised price does not include the land or groundworks, and on rustic land it is authorised as a home only exceptionally. To get a mortgage, it must be registered as real property.

Can I put a mobile home on land in Spain?

Not to live in without prior authorisation and a licence. In December 2024 the Supreme Court treated mobile homes as prefabricated houses, and national law requires express authorisation for prefabricated houses, whether temporary or permanent.

What is the average lifespan of a shipping container house?

With proper maintenance, 50 years or more, according to the idealista/news guide. Manufacturing one usually takes 3 to 6 months.

Related articles