Civil law & contracts

Purchase and Sale Contract in Spain: Essential Elements

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

🇪🇸 Read the original in Spanish

Buying or selling a property, a vehicle, or any other asset of value in Spain is one of the most significant financial and legal decisions in a person's life. Although the exchange of goods for a price may seem like a simple, everyday action, the purchase and sale contract (contrato de compraventa) is a complex legal transaction regulated in detail by our legal system. An error in drafting its clauses, the omission of an essential element, or ignorance of the associated tax obligations can transform an exciting transaction into a long and costly judicial ordeal. In this reference article, we will analyze in depth what this contract is, what its mandatory elements are according to the Código Civil (Civil Code), and how to secure your transaction step-by-step to avoid unpleasant surprises.

What is the purchase and sale contract in Spanish law?

The purchase and sale contract is the ultimate example of bilateral and onerous contracts. It is defined in *Article 1445 of the Código Civil***, which establishes that by this contract, one of the contracting parties obligates themselves to deliver a specific thing and the other to pay a certain price for it, in money or a sign representing it.

From this legal definition, its fundamental characteristics emerge:

The three essential elements of the purchase and sale contract

For a purchase and sale contract to be fully valid and exert all its legal effects, it must inexcusably meet three essential elements: the consent of the parties, the object (the thing), and the cause (the price). The absence of any of these determines the radical nullity of the contract.

Consent is the agreement of wills between the buyer and the seller. To be valid, it must be given freely and consciously, without defects such as error, violence, intimidation, or fraud (dolo).

In addition, the parties must possess the necessary legal capacity to bind themselves. *Article 1457 of the Código Civil establishes, as a general rule, that all persons authorized by the Code to bind themselves may enter into this contract. However, there are specific prohibitions (for example, guardians cannot buy the assets of the persons they represent, nor can executors buy the assets entrusted to their care, according to Article 1459*).

2. The object: the specific thing

The "thing" (la cosa) is the asset that the seller agrees to transfer to the buyer. It can be tangible goods (a car, a house) or intangible goods (copyrights, patents, company shares). For the object to be valid, it must meet three requirements:

3. The certain price

The price is the consideration delivered by the buyer. The Código Civil requires that the price be certain (meaning real and determined, or capable of being determined using objective criteria) and that it consists of money or a sign representing it (such as a bank cheque, bank transfer, or promissory note).

If the price is agreed partly in money and partly in something else, the contract will be qualified by the manifest intention of the contracting parties. In the absence of this, it will be considered a barter (permuta) if the value of the thing given as part of the price exceeds the amount of money, and a purchase and sale contract otherwise (*Article 1446 of the Código Civil***). A ridiculous or non-existent price (simulated price) would turn the contract into a disguised donation or render it void due to lack of cause.

Obligations of the seller and the buyer

The purchase and sale contract generates a network of reciprocal obligations that are mandatory for both parties.

Obligations of the seller

  1. Preserve the item: The seller must safeguard the asset being sold with the diligence of a "good father of a family" (buen padre de familia) until the actual delivery takes place.
  2. Deliver the item: Transfer the material or symbolic possession of the asset. In the case of real estate, the execution of the public deed (escritura pública) is equivalent to the delivery of the property (symbolic delivery or tradición instrumental).
  3. Warranty against eviction: The seller guarantees that the buyer will not lose the item due to a court judgment recognizing a prior right of a third party (*Article 1475 of the Código Civil***).
  4. Warranty against hidden defects: The seller is liable to the buyer for hidden defects (vicios ocultos) that the sold item may have if they make it unfit for its intended use, or if they diminish this use to such an extent that, had the buyer known about them, they would not have acquired it or would have paid a lower price for it (*Article 1484 of the Código Civil**). The deadline to claim for hidden defects under the Código Civil* is just 6 months from delivery.

Obligations of the buyer

  1. Pay the price: The buyer must pay the agreed price at the place and time fixed in the contract. If they have not been fixed, the payment must be made at the time and place where the delivery of the sold item is made (*Article 1500 of the Código Civil***).
  2. Receive the item: The buyer must cooperate by facilitating the receipt of the asset so that the seller can be released from their obligation of delivery.
  3. Pay the corresponding expenses: Unless otherwise agreed, the buyer is responsible for the expenses of the first copy of the deed, those of registration in the Registro de la Propiedad (Property Registry), and the taxes derived from the purchase (such as the Impuesto de Transmisiones Patrimoniales or ITP [Property Transfer Tax] or VAT).

Practical Example 1: Purchase and sale of a second-hand property

To understand how these elements operate in practice, let's analyze the case of the purchase and sale of an apartment in Madrid between private individuals:

Practical Example 2: Purchase and sale of a used vehicle

Let's now look at an example of a movable asset, where the deadlines for claiming defects are critical:

Practical step-by-step process for a secure purchase and sale

If you are going to carry out a purchase and sale transaction of a real estate property in Spain, we recommend that you strictly follow this protocol:

  1. Registry and cadastral verification: Request a Nota Simple (property registry extract) from the Registro de la Propiedad to check who the real owner of the property is and if it has any charges (mortgages, seizures, or easements). Also consult the Catastro (Cadastre) record to verify that the square meters match.
  2. Verification of debts: Request from the seller a certificate of being up to date with payments to the homeowners' association (comunidad de propietarios), signed by the administrator and the president, as well as the last paid receipt of the Impuesto sobre Bienes Inmuebles (IBI [Property Tax]).
  3. Drafting and signing of the deposit contract: Draft a private document fully identifying the parties, the object, the price, the deadline to sign the deed, and the type of deposit (penitential deposits under *Article 1454 of the Código Civil*** are recommended).
  4. Preparation of the Public Deed: Send all documentation to the notary chosen by the buyer. The notary will draft the public deed of purchase and sale and request last-minute registry information to guarantee that no new charges have been introduced before the signing.
  5. Signing before a Notary and payment: The public reading of the deed, the signing by the parties, and the delivery of the payment methods (usually registered bank cheques verified by the notary) take place. The keys are handed over.
  6. Settlement of taxes and registration: You have a period of 30 business days from the signing of the deed to pay the corresponding taxes (ITP or VAT). Once settled, present the deed to the Registro de la Propiedad to register your ownership right against third parties.

Mistakes you must avoid

FAQ: Frequently asked questions about the purchase and sale contract

Is it mandatory to execute the purchase and sale of a property in a public deed?

It is not mandatory by law for the contract to be valid between the parties, as the principle of freedom of form prevails in Spain. However, in practice, it is essential, since to register the property in the Registro de la Propiedad and for banks to grant a mortgage, it is mandatory that the contract be recorded in a public deed authorized by a notary.

What is the difference between confirmatory, penal, and penitential deposits?

Confirmatory deposits (arras confirmatorias) are an advance on the total price and confirm the existence of the contract; if one party defaults, the other can demand performance or termination with compensation. Penal deposits (arras penales) function as a pre-established compensation in case of default, but do not allow unilateral withdrawal from the contract. Penitential deposits (arras penitenciales — the most common) allow either party to legally withdraw from the contract by losing the amount delivered (the buyer) or returning it doubled (the seller).

Who pays the notary fees in a purchase and sale according to the law?

*Article 1455 of the Código Civil** establishes that the expenses of executing deeds will be borne by the seller, and those of the first copy and others subsequent to the sale will be borne by the buyer, unless otherwise agreed. In practice, it is very common to agree in the contract that the buyer assumes all notary, registry, and management expenses, except for the plusvalía municipal*, which by law always corresponds to the seller.

What happens if the buyer does not pay within the agreed period?

The seller can demand the fulfillment of the contract (the payment of the agreed late interest) or request the resolution of the purchase and sale contract with the return of the item and compensation for damages, in accordance with the provisions of *Article 1124 of the Código Civil***.

In 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.