Spain retention guarantee calculator
For firms working on Spanish public sector contracts: the amount of the garantía definitiva (the performance guarantee, 5% of the price excluding VAT, plus the complementary guarantee of up to 5%), the retention on each certificación (monthly progress certificate) when the pliego (the contract's tender specifications) allows it, and the release dates under articles 107 to 111 of the LCSP (Ley de Contratos del Sector Público, Spain's public contracts act).
This calculation comes back with every certificación. Mirage prepares the work.
Mirage reads contracts, drawings and mediciones (quantity takeoffs) and prepares the repetitive work, every figure traced to its document. Send us a project file and we send back a plan, no commitment.
The rule and its source
garantía definitiva = final price offered (excl. VAT) × 5%
complementary guarantee = price × up to 5% (special cases, art. 107.2)
retention per certificación = certified amount × total percentage
release deadline = end of the guarantee period + 2 months (art. 111.2)
fallback release = the later of termination + 1 year (6 months for SMEs and works < €1,000,000) and the end of the guarantee period (art. 111.5)
- Art. 107
- Amount: 5% of the final price offered, excluding VAT; complementary guarantee of up to 5% in special cases, with a total maximum of 10%. No exemption possible on works.
- Art. 108
- Forms: cash, securities, bank guarantee, surety insurance or, when the pliego allows it, retention from the price.
- Art. 110
- What it secures: signing the contract, penalties, proper performance, damages and forfeiture.
- Art. 111
- Release and cancellation: when the guarantee period expires with the contract performed; decision within two months of that date; one year after termination (six months for SMEs and small contracts) if there was no acceptance or final account for reasons outside the contractor's control.
Consolidated text of Ley 9/2017 read on the BOE (Spain's official gazette) on 7 October 2026 (last update published on 9 April 2026). Percentages and periods in force in October 2026; your contract's pliego sets the guarantee period and the form of the guarantee.
A worked example
A works contract awarded for €1,200,000 excluding VAT, with a complementary guarantee of 2% because the offer was presumed abnormally low. Garantía definitiva: €60,000; complementary: €24,000; total: €84,000, or 7% of the price. If the pliego allows retention from the price, €7,000 is withheld from a first certificación of €100,000 and €10,500 from a second one of €150,000: €66,500 remains to be withheld. With the works accepted on 31 March 2026 and a twelve-month guarantee period, the period ends on 31 March 2027 and the release decision must be notified before 31 May 2027.
FAQ
5% of the final price offered, excluding VAT (art. 107.1 of Ley 9/2017). In special cases the pliego can require a complementary guarantee of up to another 5%, bringing the total guarantee to 10% (art. 107.2), for example when the offer was presumed abnormally low. In works contracts the garantía definitiva cannot be waived.
One of the ways of constituting the garantía definitiva, when the pliego allows it: instead of a bank guarantee or a surety insurance policy, the contracting authority withholds the guarantee percentage from each certificación until the amount is complete (art. 108.2). This calculator shows how much is withheld from each certificación and how much remains to be withheld.
When the guarantee period ends and the contract has been satisfactorily performed, or when it is terminated through no fault of the contractor (art. 111.1). Once the final account (liquidación) is approved and the guarantee period has run, the release decision must be adopted and notified within two months of the end of the guarantee period; after that, the contracting authority pays statutory interest (art. 111.2).
One year after the contract ends and with the guarantee period expired, with no formal acceptance (recepción) or final account for reasons not attributable to the contractor, the guarantee is released or cancelled without further delay, once the liabilities of article 110 have been settled. The period is reduced to six months for works with an estimated value below €1,000,000, other contracts below €100,000, or when the contractor is an SME (pyme) (art. 111.5).
The obligation to sign the contract on time, the penalties imposed on the contractor, the proper performance of the works, the costs and damage caused to the contracting authority by delay or default, and forfeiture if the contract is terminated for the contractor's fault (art. 110).
The release is won with a well documented acceptance and final account.
Mirage deploys AI agents that read the contract, the certificaciones and the signed records and tie each withheld amount to its certificación, so your team claims the release with the documents already located.
See AI for construction