Civil law & contracts

Service Agreement vs. Work Contract in Spain: Key Differences

By the AbogadoAI editorial team · Updated 18 July 2026 · 11 min read

🇪🇸 Read the original in Spanish

In the Spanish legal and economic landscape, it is extremely common to hire professionals to carry out tasks ranging from renovating a home to tax advising or developing a web application. However, there is a very fine line—and often a source of intense court litigation—separating two fundamental contractual figures of our Civil Law: the arrendamiento de servicios (service agreement) and the contrato de obra (work contract, or arrendamiento de obra). Understanding the difference between committing to "do everything possible" to achieve an end versus guaranteeing the delivery of a "specific result" is crucial to avoiding devastating financial claims, determining who assumes the risk if things go wrong, and knowing how to claim in court if discrepancies arise.

The regulation of these two figures is found in the Real Decreto de 24 de julio de 1889 por el que se publica el Código Civil (Royal Decree of July 24, 1889, publishing the Civil Code). Although it is a nineteenth-century regulation, the jurisprudence of the Supreme Court has adapted its provisions to today's economic reality.

The Civil Code encompasses both figures under the generic category of the "lease contract", specifically in its Article 1544, which establishes in a unified manner:

> "En el arrendamiento de obras o servicios, una de las partes se obliga a ejecutar una obra o a prestar a la otra un servicio por precio cierto." (In the lease of works or services, one of the parties binds himself to execute a work or to render a service to the other for a certain price.)

Despite sharing this initial provision, the subsequent regulation and, above all, the nature of the obligation assumed by the contractor or service provider, completely split the legal regime of both figures.

1. The arrendamiento de servicios (Obligation of Means)

In a service agreement, the professional is obliged to carry out a diligent activity aimed at an end, but does not guarantee the final result. Their liability is limited to acting in accordance with the rules of their profession (the so-called lex artis ad hoc).

2. The contrato de obra (Obligation of Result)

In a work contract, the contractor is not only obliged to work diligently, but also to deliver a material, specific, measurable, and determined result. If the result is not achieved, a breach of contract occurs, regardless of the effort or hours the professional has invested.

Key Distinguishing Criteria: Means or Result?

To identify which type of contract we are dealing with, Spanish courts look at several essential factors:

Practical Examples with Real Figures

To clarify the difference in a tangible way, let's analyze two scenarios from daily business life and renovations in Spain.

Example 1: Software Development (Work Contract)

Carlos owns a bakery chain and hires a software development agency to create a mobile ordering application for his customers.

Example 2: Monthly Tax Advising (Service Agreement)

Lucía opens a cafeteria and hires a gestoría (administrative agency/bookkeeper) to handle her accounting, file her quarterly taxes, and resolve her day-to-day doubts.

Practical Step-by-Step Steps to Contract Safely

Whether you are an individual, a freelancer (autónomo), or a business owner, following these steps will prevent you from ending up in the civil courts:

  1. Define the contractual object in writing: Before signing, draft a clause specifying clearly whether you are contracting a "diligent effort" or a "specific result". Do not rely on verbal agreements; the Civil Code requires clarity.
  2. Establish a detailed budget:
  1. Set a delivery schedule and payment milestones: Divide the payments. For example, in a work contract of €12,000, establish an initial payment of 20%, an intermediate payment of 40% halfway through the project, and a final 40% after signing the certificate of reception and conformity.
  2. Draft a certificate of conformity or reception: This is especially critical in a work contract. When the professional finishes, both parties must sign a document certifying that the work has been delivered to the client's satisfaction, or detailing the minor defects to be corrected within a maximum period of 15 days.
  3. Provide for dispute resolution: Always include a clause determining which courts will have jurisdiction in the event of a dispute (usually those of the client's domicile or the place where the work is executed) to avoid unnecessary travel costs.

Mistakes You Must Avoid

Frequently Asked Questions (FAQ)

What happens if a contractor delays the delivery of a work?

If a specific delivery date has been agreed in the contract and the contractor is late, they fall into default (mora). It is highly recommended to include a penalty clause in the contract establishing automatic compensation of, for example, €50 for each day of delay. If no such clause was agreed, the client must legally prove the actual financial damages that the delay has caused them in order to claim compensation.

Can I withdraw from a work contract halfway through?

Yes. Article 1594 of the Civil Code grants the owner of the work an exceptional right of unilateral withdrawal: "El dueño puede desistir, por su sola voluntad, de la construcción de la obra aunque se haya empezado, indemnizando al contratista de todos sus gastos, trabajo y utilidad que pudiera obtener de ella" (The owner may withdraw, by his sole will, from the construction of the work even if it has begun, compensating the contractor for all their expenses, work, and the utility they could obtain from it). This means you can stop the work whenever you want, but you must pay the contractor what they have already spent, the work completed, and the industrial profit they would have obtained had they finished the project (usually set by the courts at 10% of the value of the pending part).

If a doctor or a lawyer loses my case, can I sue them for breach of a work contract?

As a general rule, no. Their contracts are service agreements (obligation of means). You can only sue them if you prove they acted with professional negligence (for example, if the lawyer missed the legal deadline of 20 days to answer the lawsuit, or if the doctor operated on the wrong leg). If they acted with diligence and in accordance with protocols, the fact of losing the trial or not curing the disease does not constitute a breach of contract.

How do I legally claim a breach of these contracts in court?

If the amount claimed is less than €15,000, the procedure will be handled through the channels of the Juicio Verbal (Oral Trial) according to the Ley de Enjuiciamiento Civil (LEC - Civil Procedure Act). If it exceeds that figure, it will go to a Juicio Ordinario (Ordinary Trial). It is worth noting that for monetary claims of up to €2,000, the intervention of a lawyer and a procurador (court representative) is not mandatory, making the process substantially cheaper for the citizen.

Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.