Service Agreement vs. Work Contract in Spain: Key Differences
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 Legal Framework in the Spanish Civil Code
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).
- Regulation: It is governed generally by Articles 1583 to 1587 of the Civil Code (historically focused on the service of servants and workers, but applied today by analogy to liberal professionals) and by the general rules of obligations and contracts.
- Typical Example: A lawyer defending a client in a trial or a doctor treating a patient. The lawyer cannot guarantee they will win the lawsuit, nor the doctor that they will cure the disease; their obligation is to act with the utmost professional diligence and apply the appropriate scientific knowledge.
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.
- Regulation: It is detailed in Articles 1588 to 1600 of the Civil Code.
- Typical Example: A builder who commits to constructing a villa, a painter who must paint a facade blue, or a web programmer who must deliver an online store with an operational payment gateway.
Key Distinguishing Criteria: Means or Result?
To identify which type of contract we are dealing with, Spanish courts look at several essential factors:
- The distribution of risk: In a work contract, the risk of loss or destruction of the work before delivery is, generally, borne by the contractor (according to Article 1589 of the Civil Code). In a service agreement, if the professional performs their activity diligently, they have the right to collect their fees even if the client does not obtain the indirect benefit they were seeking.
- The remuneration: Although in both cases there must be a "certain price", in a work contract the price is usually fixed based on the final result (for example, a closed budget of €3,500 to renovate a bathroom). In a service agreement, it is very common to invoice for time worked (for example, €60/hour) or through a periodic monthly payment (retainers of €300/month).
- Dependence and autonomy: The contractor of a work contract usually enjoys greater organizational autonomy to achieve the result, whereas the service provider often has to integrate more closely into the client's guidelines or organizational structure.
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.
- The agreement: A contrato de obra is signed for a closed price of €8,500, detailing in a technical annex that the app must allow card payments, geolocate stores, and send push notifications. The delivery deadline is set at 3 months.
- The resolution: If after 3 months the app does not process payments or constantly crashes, the agency has not delivered the agreed result. Carlos can refuse to pay the final pending installment of €2,500, demand that the errors be rectified at no additional cost, or, in the event of a serious breach, terminate the contract and demand the return of the amounts paid, in addition to compensation for damages.
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.
- The agreement: A service agreement is agreed upon with a monthly fee (iguala) of €150/month.
- The resolution: The gestoría fulfills its obligation by diligently filing the VAT (IVA) and personal income tax (IRPF) forms every quarter. If one month Lucía's cafeteria does not make a profit or suffers losses, Lucía cannot refuse to pay the €150 to the gestoría claiming that "the service has not given her the expected economic result." The gestoría has complied by performing the technical work correctly and on time. There would only be a breach of contract if the gestoría filed the taxes late, generating a penalty from the Hacienda (tax authority) of €200 due to negligence.
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:
- 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.
- Establish a detailed budget:
- If it is a work contract, demand a closed budget with a breakdown of materials and labor.
- If it is a service agreement, determine the rate per hour, per day, or the monthly fee, detailing what specific tasks that rate includes.
- 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.
- 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.
- 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
- Not defining the acceptance criteria in work contracts: Delivering a project (such as a web design or a renovation) without having previously agreed on what exact technical requirements had to be met to consider the work "finished and correct" opens the door to endless arguments about subjective quality.
- Confusing a service agreement with an employment relationship (False Autónomo): If you hire a professional through a service agreement, but impose a strict office schedule, provide them with their work computer, and they lack their own business structure, the Inspección de Trabajo (Labor Inspectorate) can declare the existence of a disguised employment relationship, imposing fines of between €3,126 and €10,000.
- Paying the entire price in advance: In work contracts, making a 100% payment of the budget before seeing the result discourages the contractor from meeting deadlines and leaves you with no leverage in case of defects or delays.
- Not formally claiming hidden defects within the deadline: In a work contract, the general period to claim for construction defects that were not visible to the naked eye at the time of delivery is 2 years if they are defects affecting habitability or functionality according to the Ley de Ordenación de la Edificación (LOE - Building Planning Act), or the specific periods of the Civil Code. Letting time pass without sending a burofax (certified fax) to interrupt the statute of limitations extinguishes your right to claim.
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
- *Service agreement (arrendamiento de servicios):* The professional commits to carrying out a diligent activity (means), charging for their time or a periodic fee, without guaranteeing a specific final result.
- *Work contract (contrato de obra):* The contractor is obliged to deliver a specific, materialized, and quantifiable result; if that result is not achieved, there is a breach of contract.
- The burden of proof: In services, the professional must prove they acted with due diligence (lex artis); in works, the contractor must prove they delivered exactly what was agreed.
- The importance of a written contract: Specifying with absolute clarity the characteristics of the result, delivery deadlines, and penalties for delay is the only real guarantee of success before a court.
- Protection against non-payment and defects: Using payment milestones linked to certificates of conformity protects both the client (who does not pay for defective work) and the professional (who secures payment for each completed phase).
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 freeThis is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.