AEAT tax clearance certificates in Spain: the certificado de estar al corriente and how to prove you have no tax debts (2026)
AEAT tax clearance certificates in Spain: the certificado de estar al corriente, certificate types, validity and when non-resident owners need one.
AEAT tax clearance certificates in Spain: the certificado de estar al corriente and how to prove you have no tax debts (2026)
A Spanish tax clearance certificate, known as the certificado de estar al corriente de obligaciones tributarias, is the document the Agencia Tributaria (AEAT) issues to confirm that a taxpayer has no outstanding Spanish tax debts. It is requested through the Sede Electronica under procedure G304, takes 20 working days at most (often immediate), and is valid for 12 months for periodic obligations or 3 months for non-periodic ones. For non-resident property owners, the certificate is relevant at sale (alongside the 3% Modelo 211 buyer retention), at mortgage discharge and during buyer due diligence.
What is the certificado de estar al corriente?
The certificado de estar al corriente de obligaciones tributarias is an official AEAT document that certifies a taxpayer is up to date with all their Spanish tax obligations: filed returns, no debts or sanctions in the ejecutivo collection period, and no outstanding civil liabilities from tax-crime convictions. It is issued under procedure G304 on the AEAT Sede Electronica, governed by Article 117 of the Ley 58/2003 General Tributaria (LGT) and Articles 70 to 75 of the Real Decreto 1065/2007 Reglamento General.
The certificate is requested by the taxpayer (or their authorised representative) and can be filed online with a digital certificate, DNI electronico or Cl@ve. According to the G304 procedure page, the resolution deadline is 20 working days, though the AEAT help page confirms that delivery is immediate when the result is positive (no debts) and the request is filed by the interested party or an apoderado. The certificate carries a Codigo Seguro de Verificacion (CSV) that allows any third party to verify its authenticity through the AEAT cotejo de documentos portal at any time.
The certificate’s content depends on the “purpose” (finalidad) selected at request time. The AEAT help page lists five purposes: contratar con el sector publico (public-sector contracting), autorizaciones de transporte, subvenciones publicas (public grants), autorizaciones de trabajo o residencia por extranjeros (work or residency authorisations for foreigners), and generica (generic, covering all debts). The generic purpose is the broadest and is what most private transactions call for.
How do the three AEAT certificate types differ?
Spain does not issue a single “tax clearance” document. The AEAT operates three distinct certificate procedures, each serving a different evidentiary purpose. Understanding which one you need avoids requesting the wrong document and waiting 20 days for an irrelevant result.
| Certificate | Procedure | What it proves | When you need it |
|---|---|---|---|
| Estar al corriente | G304 | No outstanding tax debts; full compliance | Property sale due diligence, public contracts, grants, residency applications |
| Deuda pendiente | RA05 | Lists any outstanding debts you have | When a counterparty asks what you owe, or to document a specific debt position |
| Certificado generico | G317 | Facts about your tax status not covered by the above | Niche situations where no specific certificate fits the requested content |
All three are issued by the AEAT, carry a CSV for verification, and are governed by the same framework (LGT Art 117, RD 1065/2007 Arts 70 to 75). The certificado generico (G317) is explicitly a residual option: the AEAT help page states it is “prevista unicamente para la expedicion de certificados que, por su particular contenido, no pueden ser emitidos a traves del resto de opciones existentes.” For most property-related matters, G304 is the right request.
When does a non-resident property owner need tax clearance?
Non-resident owners encounter the certificate at three points in the property lifecycle:
At sale. When a non-resident sells Spanish property, the buyer is legally required to retain 3% of the purchase price and pay it to AEAT via Modelo 211 as an advance on the seller’s non-resident CGT. This retention is the formal tax-collection mechanism (governed by Orden HFP/1338/2023 and Orden EHA/3316/2010, per the GF01 procedure page). A certificado de estar al corriente is not a statutory prerequisite for the sale, but a buyer’s lawyer may request it as part of due diligence to confirm the seller has no separate tax debts that could attach to the property as an embargo. An unpaid AEAT debt in the ejecutivo period converts into an embargo via the via de apremio and appears as an afeccion fiscal in the nota simple.
At mortgage discharge. When discharging a mortgage at the notary, the bank issues a debt cancellation certificate and the deed is cancelled at the Land Registry. Some banks and notaries ask for a tax clearance certificate to confirm the borrower has no outstanding tax debts that could affect the property’s clean title post-discharge.
During buyer due diligence. A buyer’s lawyer pulling a nota simple may find an afeccion fiscal or anotacion preventiva de embargo. If the seller is non-resident, the certificado de estar al corriente helps demonstrate whether those encumbrances are resolved or still active, which affects whether the buyer can insist on clearing them before completion.
What are the eight conditions for being “al corriente”?
Article 74 of the Real Decreto 1065/2007 sets out eight cumulative conditions that must all be met for AEAT to certify a taxpayer as al corriente. If any one fails, the certificate will not be issued as positive:
- Registered in the Censo de Empresarios, Profesionales y Retenedores (where required) and in the Impuesto sobre Actividades Economicas (where not exempt).
- Filed all IRPF, IS or IRNR autoliquidaciones that correspond.
- Filed all autoliquidaciones and annual summary declarations for pagos a cuenta obligations.
- Filed all IVA autoliquidaciones, annual summaries and, where applicable, intracomunitarias recapitulativas.
- Filed all tributos locales declarations and autoliquidaciones.
- Filed all information declarations required under LGT Articles 93 and 94.
- No debts or tax sanctions in the periodo ejecutivo, unless those debts are aplazadas, fraccionadas or their execution is suspended.
- No pending fines or civil liabilities from firm sentences for delito contra la Hacienda publica.
The scope is broad: “obligacion tributaria” covers both filing obligations (declaraciones and autoliquidaciones) and payment obligations (debts), except debts that are deferred or suspended. A non-resident who has filed all their IRNR returns and has no ejecutivo-period debts meets the test.
How do you request the certificate online?
The request is filed through the AEAT Sede Electronica under procedure G304. The help page describes a three-step process:
-
Identify yourself. Access the Sede Electronica via “Todas las gestiones” then “Certificados” then “Situacion tributaria”. Identify with Cl@ve, certificado electronico or DNI electronico. For non-residents who cannot use Cl@ve (which requires a Spanish mobile number or prior registration), a digital certificate obtained through the FNMT or a consulate is the alternative.
-
Select representation and purpose. Choose whether you act in your own name (en nombre propio) or as a representative (en representacion de terceros). If acting as a representative, enter the titular’s details. Select the certificate purpose from the five options listed above. Select the date: either “en la fecha actual” or “en una fecha pasada” (only non-prescribed exercises are available).
-
Validate, sign and obtain. Click “Validar solicitud”, confirm the data, click “Firmar y Enviar”, mark “Conforme” and submit. The system returns a resguardo with a Codigo Electronico de la solicitud and, if delivery is immediate, the certificate itself. If not immediate, the certificate can be collected later through “Estado de tramitacion de la solicitud” or “Consulta de certificaciones expedidas”.
The certificate can also be requested in person at an AEAT Administracion or Delegacion (by prior appointment) or by telephone, where AEAT contacts the taxpayer at the number provided.
How does a non-resident who cannot access Cl@ve get the certificate?
Non-residents face a practical hurdle: Cl@ve requires a Spanish mobile number or prior registration, and many non-residents do not have a Spanish digital certificate. The AEAT provides two routes:
Fiscal representative. Under LGT Article 47, non-residents who operate through a permanent establishment, carry out economic activities in Spain, or are required by the tax administration must designate a representative resident in Spain. The AEAT’s non-resident representation page confirms this applies to residents of third countries (non-EU/EEA) and to those in jurisdictions without effective tax-information exchange. The representative can request the certificate on the taxpayer’s behalf using their own credentials, provided they are registered as an apoderado.
Colaborador social (gestor or tax advisor). A registered colaborador social can file the request through their own access and the certificate is delivered to the taxpayer’s Direccion Electronica Habilitada (DEHu) via CIE. This is the standard route for non-residents who use a Spanish asesor fiscal to handle their annual Modelo 210 obligations.
The certificate itself is free. There is no fee for requesting or obtaining a certificado de estar al corriente.
What happens if AEAT finds a debt?
If the taxpayer has an outstanding debt in the periodo ejecutivo, the certificado de estar al corriente will be issued as a negative certificate (negativa) rather than a positive one. The G304 procedure page distinguishes between certificaciones positivas (all obligations met) and negativas (any obligation unmet). A negative certificate still documents the taxpayer’s status, but it does not confirm compliance.
The taxpayer has 10 days from receipt to submit an escrito de disconformidad if they believe the certificate (or the refusal to issue one) is incorrect, attaching evidence to support their claim. If AEAT agrees, a new certificate is issued within 10 days. If not, the taxpayer is informed of the reasons.
For a non-resident selling property, discovering an outstanding debt means the seller must either settle it before completion (to produce a clean certificate) or accept that the buyer’s lawyer will factor the debt into the transaction, potentially withholding additional funds at the notary beyond the standard 3% Modelo 211 retention.
How long is the certificate valid?
The validity period depends on the nature of the obligations the certificate covers:
| Obligation type | Validity | Legal basis |
|---|---|---|
| Periodic obligations (annual returns, quarterly IVA, monthly retentions) | 12 months from issue date | RD 1065/2007 Art 74 |
| Non-periodic obligations (one-off declarations, specific transactions) | 3 months from issue date | RD 1065/2007 Art 74 |
In practice, requesting bodies often impose shorter acceptance windows. For public-sector contracting and grants, the common requirement is a certificate no more than 6 months old. For property transactions, a buyer’s lawyer may ask for a certificate dated within the last 30 to 90 days, since tax debts can arise quickly (a quarterly IVA return or an IRNR filing missed in the interim).
The certificate is a snapshot: it reflects the taxpayer’s status at the moment of issue, not a continuous guarantee. A debt incurred the day after the certificate is issued will not appear on it, which is why requesting bodies set their own freshness requirements.
How does the certificate relate to the Modelo 211 retention?
The Modelo 211 retention and the certificado de estar al corriente address different aspects of non-resident tax compliance at sale:
- Modelo 211 is the buyer’s obligation: the buyer retains 3% of the price and pays it to AEAT within one month. This is an advance on the seller’s non-resident CGT, not a debt check. It applies automatically, regardless of the seller’s tax status.
- The certificate is the seller’s evidence: it shows the seller has no separate outstanding debts that could encumber the property. It is voluntary, requested by the buyer’s lawyer as due diligence, not by statute.
A seller with a clean certificate and a correctly processed Modelo 211 retention faces no additional AEAT obstacle to completing the sale. A seller with an outstanding debt faces the risk that the buyer’s lawyer will insist on clearing it first, or that AEAT has already embargoed the property via the via de apremio, which would appear on the nota simple and block a clean transfer.
This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Verify current requirements with an independent lawyer (abogado) or tax advisor (gestor/asesor fiscal) before acting.
Frequently asked questions
- How long does it take to get a tax clearance certificate from AEAT?
- AEAT has 20 working days to issue the certificate from the date of request, per the G304 procedure page. In practice, when the result is positive (no debts) and the request is filed by the taxpayer or an authorised representative, delivery is immediate through the Sede Electronica with a Código Seguro de Verificacion.
- What is the difference between certificado de estar al corriente and certificado de deuda pendiente?
- The certificado de estar al corriente (G304) confirms you have no outstanding tax debts. The certificado de deuda pendiente (RA05) lists any debts you do have. Both are AEAT tax certificates under RD 1065/2007 Arts 70 to 75, but they serve opposite purposes: one proves compliance, the other documents what is owed.
- Do non-resident property owners need a Spanish tax clearance certificate to sell?
- There is no statutory requirement to present the certificate at the notary, but buyers routinely request proof of tax status as part of due diligence. The 3% buyer retention under Modelo 211 is the formal mechanism that ensures AEAT collects non-resident CGT, so a clearance certificate helps the seller demonstrate no separate debts that could trigger an embargo on the proceeds.
- How can a non-resident request the certificate if they cannot access Cl@ve?
- Non-residents who cannot use Cl@ve or a Spanish digital certificate can appoint a fiscal representative in Spain under LGT Art 47, or request the certificate through an authorised gestor (colaborador social) who files through their own credentials. The certificate is then delivered to the taxpayer's Direccion Electronica Habilitada or sent by the collaborator via CIE/DEHu.
Sources and data
- Certificados tributarios. Expedicion de certificados tributarios. Estar al corriente de obligaciones tributarias (G304) — Agencia Tributaria (AEAT)
- Solicitud de un certificado tributario de encontrarse al corriente de las obligaciones tributarias — Agencia Tributaria (AEAT)
- Certificados. Expedicion de certificados de deuda pendiente (RA05) — Agencia Tributaria (AEAT)
- Certificados tributarios. Expedicion de certificados tributarios. Certificado Generico (G317) — Agencia Tributaria (AEAT)
- Cotejo de documentos mediante codigo seguro de verificacion CSV — Agencia Tributaria (AEAT)
- Modelo 211. IRNR. Retencion en la adquisicion de bienes inmuebles a no residentes (GF01) — Agencia Tributaria (AEAT)
- Representacion de no residentes - Comunicar datos de representante legal o voluntario — Agencia Tributaria (AEAT)
- Ley 58/2003, de 17 de diciembre, General Tributaria (BOE-A-2003-23186) — BOE