document retention

Summary: Invoices and tax documentation must be kept for a minimum of 4 years, which is the statutory limitation period with the Tax Authority. Accounting books and their supporting documents must be kept for 6 years according to the Commercial Code. And if your company has losses or pending deductions to apply, up to 10 years. The format can be paper or digital, but you can only destroy paper if you have digitized it with a system approved by the Tax Agency.

How long to keep invoices: the three periods

PeriodWhat it coversRegulation
4 yearsInvoices issued and received, supporting documents, and tax returns (VAT, Personal Income Tax, Corporate Tax, withholdings)General Tax Law (statutory limitation)
6 yearsAccounting books, correspondence, business documentation and supporting documents, from the last entryCommercial Code
Up to 10 yearsDocumentation supporting negative tax bases and deductions offset in subsequent tax periodsCorporate Income Tax Law

The practical rule for a company: keep everything for at least 6 years. And if you have losses from previous years or pending deductions, keep the documentation that justifies them for as long as you are applying them and until the Tax Authority can no longer check them.

How the 4 years are counted

This is the most common mistake: the 4 years do not start on the invoice date, but the day after the deadline for submitting the return in which it was included.

  • An invoice from November 2022 is included in the fourth quarter VAT, which was filed by January 30, 2023. The Tax Authority can review it until January 30, 2027.
  • The same invoice counts for the 2022 Corporate Income Tax, which was filed by July 25, 2023. For that tax, the period extends until July 2027.

Furthermore, the period is interrupted if the Tax Authority initiates any action (a request, an inspection) or if you file an amended return. In that case, the clock restarts.

Cases where you need to keep documents longer

  • Tax losses pending offset: The Tax Authority can check negative tax bases for 10 years. After that period, they can still request the return and accounting records that support them.
  • Investment goods: The purchase invoice for machinery, vehicles, or real estate must be kept for the duration of the VAT regularization period (5 years, or 10 for real estate) and the subsequent 4-year limitation period. Also, while the asset is being depreciated.
  • Real estate and shares of individuals: The purchase deed and invoices for improvements are needed to calculate the gain on the day of sale. They must be kept as long as the asset is owned and for 4 years after declaring the sale.
  • Related-party transactions: Transfer pricing documentation must be available for as long as the tax period can be audited.

In what format to keep invoices

Paper invoices

Originals are kept, organized, and in a place where they can be located if the Tax Authority requests them. A simple scan serves as a working copy but does not replace the original: if you destroy the paper, during an inspection you may not be able to prove the expense or the input VAT.

Certified digitization

If you want to eliminate paper, the invoice must be digitized with software approved by the Tax Agency. This process ensures that the image is faithful to the original and has not been modified, allowing you to destroy the paper with full guarantees. For companies with a high volume of received invoices, this is the most efficient option.

Electronic invoices

An invoice received as a PDF by email or downloaded from a portal is an electronic invoice and must be kept in electronic format. Printing it and deleting the file is not the correct solution. The archiving system must guarantee:

  • Authenticity: that the issuer is known.
  • Integrity: that it has not been modified.
  • Legibility: that it can be opened and read throughout the entire period, even if the software changes.
  • Access: that it can be quickly located and provided if the Tax Authority requests it.

What changes with mandatory e-invoicing and Verifactu

Invoice retention is about to change for almost all companies:

  • Electronic invoicing between companies: Order HAC/1028/2026, of October 2, has set the deadlines in motion. Companies with an operating volume exceeding 8 million euros will have to issue electronic invoices to other companies in about 12 months (October 2027), and the rest in about 24 months (October 2028).
  • Verifactu: Current regulations set its mandatory implementation for January 1, 2027, for companies and July 1, 2027, for others, although a new postponement to October 2028 has been announced to align it with electronic invoicing. It is advisable to follow the official publication.

Both changes push towards 100% digital archiving. Companies that still work with paper or unorganized PDF folders now have a good reason to organize their system.

Expats and international companies: documentation often lost

For clients with activity or assets in several countries, these documents cause the most problems when the Tax Authority asks:

  • Proof of tax residence: tickets, rental contracts, residence certificates from other countries. These are the basis for proving days of stay or center of interests.
  • Taxes paid abroad: certificates of withholding tax on dividends or salaries, necessary to apply the double taxation deduction.
  • Beckham Law: employment contract, Model 149 communication and its resolution, for all tax periods in which the regime is applied and the following 4 years.
  • Assets abroad (Model 720): statements and valuations of declared accounts, securities, and real estate.
  • Subsidiaries of foreign groups: documentation must be available to the Spanish Tax Authority, even if the group’s accounting is kept abroad. Storing invoices outside Spain by electronic means is possible, but only by complying with the access requirements demanded by the Invoicing Regulation.

What happens if you don’t keep the documentation

  • The Tax Authority may not accept deductible expenses or input VAT that you cannot justify.
  • If the accounting is not reliable, it may determine the tax base by indirect estimation.
  • Failure to keep invoices or supporting documents may constitute a sanctionable tax infraction.

Tax Archiving Checklist

  • Invoices issued and received, organized by quarter: minimum 6 years.
  • Accounting books and annual accounts: 6 years from the last entry.
  • Filed returns and their supporting documents: minimum 4 years from the end of the deadline.
  • Documentation for pending losses and deductions: up to 10 years.
  • Invoices for assets and real estate: as long as they are held, plus the regularization period and the limitation period.
  • Electronic invoices: always in their original format.
  • Paper: original or certified digitization, never just a scan.

Frequently Asked Questions

How many years should a company keep invoices?

At least 4 years for tax purposes and 6 years for commercial purposes. In practice, the safe rule is 6 years, and longer if there are losses or pending deductions to apply.

Can I scan invoices and throw away the paper?

Only if you digitize them with software approved by the Tax Agency. A simple scan does not replace the original.

Can I print an electronic invoice and delete the file?

No. An invoice received in electronic format must be kept in that format, ensuring its authenticity, integrity, and legibility.

When do the 4 years start counting?

From the day after the deadline for submitting the return in which the invoice is included, not from the invoice date.

Organize your archive before they ask for it

At GR International Advisors, we review how your company retains tax documentation, help you transition to a digital archive that meets requirements, and prepare for mandatory e-invoicing. Contact our team and we will review your case.

This is for guidance only and is current as of October 2026. Each case must be assessed on an individual basis, and the regulations may change.