Saltar al contenido principal
    Skip to main content

    How long do you have to keep invoices and business records in Spain? Periods by document

    4 years for the tax office, 6 under the Commercial Code, 10 or more in some cases. A table by document with its law, digital storage rules and when to delete.

    By Filip Balik, co-founder · Updated on 9 November 2026

    Keep invoices, accounts and their supporting documents for at least six years: that is what article 30 of the Commercial Code requires of businesses, counted from the last entry in the books. The Spanish tax office only needs four years from the end of each return's filing period (art. 66 LGT), but some periods are longer: ten years if you carry forward losses or tax credits, and about fourteen for the invoice of business premises with deducted VAT.

    The periods at a glance

    These are the minimum periods set by Spanish national law as of 9 November 2026. When several apply to the same document, the longest one wins.

    Document Minimum period Law
    Accounting books, correspondence, documents and receipts of the business 6 years from the last entry in the books Commercial Code (Código de Comercio), art. 30.1
    Invoices issued and received and other documents with tax effects 4 years from the end of the filing period for the tax General Tax Act (Ley General Tributaria, LGT), arts. 66, 67 and 70; Invoicing Regulation, art. 19
    Invoices for capital goods (machinery, vehicles, premises) Their VAT adjustment period (5 or 10 years) plus the following 4 years VAT Act, art. 107; Spanish Tax Agency
    Returns and accounts for the year in which tax losses or pending tax credits arose 10 years for the tax office to check them, and after that for as long as you keep using them LGT, art. 66 bis; Corporate Income Tax Act, art. 26.5
    Payslips, social security contribution documents, registrations and terminations 4 years LISOS, art. 21.1
    Daily record of working hours 4 years Workers' Statute, art. 34.9
    Anti-money laundering records (accountants, tax advisers, estate agents and other obliged entities) 10 years, then deleted Ley 10/2010, art. 25
    VeriFactu invoicing records The LGT period VeriFactu Regulation, art. 8.2.c
    Contracts and proof of payment No specific period; keep them while a claim is still possible (5 years for personal actions with no special period) Civil Code, art. 1964.2
    Security camera footage Deleted within one month at most, unless there is an incident LOPDGDD, art. 22.3
    Community of owners: meeting notices, communications and proxies 5 years (the minute books, always) Horizontal Property Act, art. 19.4

    Why do some people say four years and others six?

    Because two different laws with different purposes apply at the same time.

    The tax rule: four years. Article 66 of the General Tax Act says that "el derecho de la Administración para determinar la deuda tributaria mediante la oportuna liquidación" (the tax office's right to assess the tax due) expires after four years. Keeping invoices is a formal obligation, and article 70.1 ties it to that period: such obligations "sólo podrán exigirse mientras no haya expirado el plazo de prescripción" (can only be enforced while the limitation period has not expired). The Invoicing Regulation (art. 19) refers to the same period for invoices received and copies of those issued, and the Spanish Tax Agency (Agencia Tributaria) sums it up as the "plazo de prescripción de 4 años" (four-year limitation period).

    The commercial rule: six years. Article 30.1 of the Commercial Code says: "Los empresarios conservarán los libros, correspondencia, documentación y justificantes concernientes a su negocio, debidamente ordenados, durante seis años, a partir del último asiento realizado en los libros, salvo lo que se establezca por disposiciones generales o especiales." (Businesses shall keep the books, correspondence, documents and receipts relating to their business, properly organised, for six years from the last entry made in the books, unless general or special provisions say otherwise.)

    The tax act itself recognises the commercial period. When what you keep is used to check other people's taxes (your clients, your suppliers), article 70.2 says it must be kept "en el plazo previsto en la normativa mercantil" (for the period set by commercial law) or for your own period "si este último fuese superior" (if that is longer).

    In practice: if you throw invoices away after four years, you are fine with the tax office but not with the Commercial Code. That is why the safe figure for a business is six years, and the "unless" at the end of article 30 is the door to the longer periods below.

    When do the tax office's four years start?

    Not from the invoice date, but from the day after the filing period ends for the return in which it counts (art. 67.1 LGT).

    An example with corporate income tax. A company whose financial year is the calendar year files "en el plazo de los 25 días naturales siguientes a los 6 meses posteriores a la conclusión del período impositivo" (within the 25 calendar days following the 6 months after the end of the tax period) (art. 124.1 of the Corporate Income Tax Act). For 2025, the deadline is 25 July 2026; the limitation period starts on 26 July 2026 and does not end until July 2030. So an invoice from January 2025 matters to the tax office for more than five years. For VAT, each quarter has its own deadline and its own count.

    Watch out, because the clock restarts. Under article 68.1 LGT, it is interrupted "por cualquier acción de la Administración tributaria, realizada con conocimiento formal del obligado tributario" (by any action of the tax office of which the taxpayer is formally aware) aimed at checking or assessing the tax, by appeals and claims, and by "cualquier actuación fehaciente del obligado tributario conducente a la liquidación o autoliquidación" (any provable step by the taxpayer towards assessing the tax), such as a supplementary return. If you have received a request from the tax office, do not throw away anything from that year.

    When do you need to keep documents for more than six years?

    There are four common cases for a small business.

    1. Losses you offset in later years. If your company had tax losses (bases imponibles negativas) that it is still offsetting, or has pending tax credits, the tax office can check them for ten years from the end of the filing period for the year in which they arose (art. 66 bis.2 LGT; art. 26.5 of the Corporate Income Tax Act). And after those ten years, while you keep using them, you must still be able to produce the return in which they arose "y la contabilidad" (and the accounts) (art. 66 bis.3).
    2. Assets you still use or depreciate. Article 70.3 LGT keeps the obligation to "justificar la procedencia de los datos que tengan su origen en operaciones realizadas en períodos impositivos prescritos" (justify figures that come from transactions in time-barred periods) for as long as the taxes they affect are not time-barred. For example, the deed and invoice for premises you bought fifteen years ago and are still depreciating.
    3. Invoices for capital goods with VAT. The VAT Act requires you to adjust the VAT deducted on capital goods during the following four calendar years (five in total) and, for land and buildings, during the following nine (ten in total). The Spanish Tax Agency asks you to keep those invoices "durante su correspondiente período de regularización y los cuatro años siguientes" (during their adjustment period and the four following years). Goods worth less than 500,000 pesetas, the figure art. 108 of the VAT Act still uses (about €3,005), do not count as capital goods.
    4. Anti-money laundering. If your business is covered by Ley 10/2010 (among others, auditors, external accountants and tax advisers; estate agents who broker sales, or rentals of at least €120,000 a year or €10,000 a month; and lawyers in certain transactions, under its art. 2.1), art. 25 requires you to keep customer due diligence and transaction records for ten years, "procediendo tras el mismo a su eliminación" (and then delete them). Five years after the relationship ends, only internal control or legal defence may access them.

    A change ahead for money laundering. Regulation (EU) 2024/1624 applies from 10 July 2027 (2029 for some obliged entities), and its article 77 sets five years from the end of the business relationship or transaction, which authorities can extend case by case by up to five more. Until then, Ley 10/2010's ten years apply.

    How long do you keep payslips and employment records?

    Four years, under two rules:

    • The Social Order Infringements and Penalties Act (LISOS) makes it a minor social security offence "no conservar, durante cuatro años" (not to keep, for four years) the records of registrations, terminations and changes, "así como los documentos de cotización y los recibos justificativos del pago de salarios" (as well as contribution documents and payslips) (art. 21.1).
    • The Workers' Statute (Estatuto de los Trabajadores) requires the employer to keep the daily record of working hours "durante cuatro años" (for four years), available to staff, their representatives and the Labour Inspectorate (art. 34.9).

    For health and safety at work we have not found a general retention period, but very serious offences become time-barred after five years (art. 4.3 LISOS): reason enough not to throw those records away sooner.

    Can you keep invoices in digital form only?

    Yes. Article 20 of the Invoicing Regulation allows paper or electronic format, by any means that guarantees "la autenticidad de su origen, la integridad de su contenido y su legibilidad" (authenticity of origin, integrity of content and legibility), and lets the tax office access them "sin demora" (without delay). What it asks of an electronic archive (arts. 21 to 23):

    1. Original format. An e-invoice you received is kept as it arrived, readable in that format and with its signature if it has one. Printing it and deleting the file does not guarantee that.
    2. Full access. The tax office must be able to consult it online, and the rule defines full access as allowing "su visualización, búsqueda selectiva, copia o descarga en línea e impresión" (viewing, selective search, copying or downloading online, and printing).
    3. Location. You can choose where to keep them. If outside Spain, only electronically with online access, and you must tell the Spanish Tax Agency beforehand (art. 22).
    4. Third parties. Your gestoría (accounting and admin agency) or a provider can keep them, but on your behalf and under your responsibility; if that third party is not established in the EU (with some exceptions), you must also tell the tax office beforehand (art. 19.3 and 19.4).

    What about paper invoices? To throw the original away, the rules provide for certified digitisation (digitalización certificada): article 7 of Orden EHA/962/2007 says documents digitised this way "permitirán que el obligado tributario pueda prescindir de los originales en papel" (allow the taxpayer to do without the paper originals). It requires scanning software approved by the Spanish Tax Agency, which still points to that order on its FAQ page (updated 25 March 2026). An ordinary scan is not certified digitisation, so the prudent course is to use it as a working copy and keep the paper.

    Has anything changed? Articles 19 to 23 of the Invoicing Regulation are unchanged since 2012. Royal Decree 238/2026, which implements mandatory e-invoicing between businesses and professionals and has been in force since 20 April 2026, amended other articles of that regulation. And with VeriFactu, invoicing software will have to keep its records "durante el plazo previsto" (for the period set) in the LGT and allow them to be exported (art. 8.2.c of the Regulation); under its fourth final provision, corporate income taxpayers must have it in place before 1 January 2027 and everyone else covered before 1 July 2027.

    What if you close the business or retire?

    The obligation does not end with the activity. Article 30.2 of the Commercial Code says that "el cese del empresario en el ejercicio de sus actividades no le exime" (ceasing to trade does not release the business owner) from keeping records, that if the owner has died the duty "recaerá sobre sus herederos" (falls on the heirs), and that when a company is wound up, its liquidators are responsible. Before you clear out the office, decide who keeps the archive and until when.

    When do you have to delete? What data protection says

    Keeping too much is also a problem when documents contain personal data. The General Data Protection Regulation (art. 5.1.e) requires data to be kept in identifiable form "durante no más tiempo del necesario para los fines del tratamiento" (for no longer than necessary for the purposes of processing), and the record of processing activities must state, "cuando sea posible, los plazos previstos para la supresión" (where possible, the time limits for erasure) (art. 30.1.f).

    When the period ends, Spain's data protection act, the LOPDGDD, does not simply say delete: first the data are blocked (art. 32), that is, set aside so that only courts, the public prosecutor or the competent authorities can see them, "y solo por el plazo de prescripción" (and only for the limitation period) of any liability. "Transcurrido ese plazo deberá procederse a la destrucción de los datos." (Once that period has passed, the data must be destroyed.)

    Security cameras have their own rule: footage is erased "en el plazo máximo de un mes desde su captación" (within one month of recording at most), unless it has to be kept to prove an act against people or property (art. 22.3 LOPDGDD).

    How long does a community of owners keep its paperwork?

    The Horizontal Property Act (Ley de Propiedad Horizontal, art. 19.4) makes the secretary responsible for the minute books and for keeping "durante el plazo de cinco años, las convocatorias, comunicaciones, apoderamientos y demás documentos relevantes de las reuniones" (for five years, the meeting notices, communications, proxies and other relevant documents of the meetings). The minute books have no expiry date. If the community has employees or files tax returns, its payslips and tax papers follow the rules above. What the minutes must contain and how to send them is in our guide to owners' meeting minutes.

    How do you organise the archive so nothing goes too early?

    1. One folder per year and per type (invoices issued, invoices received, bank, payroll, contracts), on paper and in digital form with the same structure.
    2. A destruction date on every folder. The longest of those that apply according to the table: for ordinary invoices, six years from the end of the financial year is the prudent way to apply the Commercial Code.
    3. A list of exceptions: pending losses, capital goods, anti-money laundering files, open inspections or appeals. Anything on that list stays.
    4. A review once a year to destroy what has expired, using confidential destruction if there are personal data.
    5. Emails count too. The Commercial Code includes "correspondencia" (correspondence), so do not empty a mailbox to free up space without thinking: we cover this in the guide to the Outlook shared mailbox. And if an email may end up in court, see what Spanish civil procedure requires.

    Keeping documents is half the job; the other half is finding the paper when the tax office, a judge or a client asks for it. That is why we built Archive, which finds any document in the office by what it says, scanned ones included, with OCR on the office's own computer and no cloud.

    Frequently asked questions

    How many years does a self-employed person (autónomo) have to keep invoices?

    For the tax office, four years from the end of the filing period for the return in which they count: the Invoicing Regulation refers to "empresarios o profesionales" (businesses or professionals), so it applies to every autónomo. If you are a business owner, the Commercial Code raises it to six years. The prudent choice is six.

    Can I throw away paper invoices if I have scanned them?

    Only if they went through certified digitisation, with software approved by the Spanish Tax Agency (Orden EHA/962/2007, art. 7). With an ordinary scan, keep the paper original.

    How long do you have to keep payslips?

    Four years, together with social security contribution documents, registrations and terminations: not doing so is a minor offence under art. 21.1 of the LISOS. The record of working hours is also four years.

    Do you have to keep company emails?

    Yes, those related to the business: art. 30 of the Commercial Code includes "correspondencia" among what must be kept for six years. If they contain personal data, once the period ends they must be blocked and then deleted.

    When do the Commercial Code's six years start?

    The law says "a partir del último asiento realizado en los libros" (from the last entry made in the books). The prudent way to apply it is to count six years from the end of each financial year, and longer if a document falls under one of the exceptions.

    Sources

    This article explains the law and published court criteria as of the update date. It is not a substitute for advice from a lawyer on a specific case.

    We write each article with the help of AI and check every fact against primary sources before publishing it. If you spot a mistake, write to info@quantumnovaagency.com and we will correct it.

    Terms in this article

    Book your free diagnosis.

    Emailinfo@quantumnovaagency.comWhatsApp+34 678 428 710
    LocationTorrevieja (Alicante) · all of Spain

    What happens next

    1. 1We reply within 24 hours.
    2. 2We have a call to look at your case.
    3. 3We send you a proposal with a fixed price.

    By submitting this form you agree to your data being handled under the Privacy Policy.