Insight

Duration of pre-trial detention: maximum time limits, extensions and limits

Duration of pre-trial detention: maximum time limits, extensions and limits

PA

Written by Pardo Geijo Abogados

Published: June 10, 2026

Duration of pre-trial detention: maximum time limits, extensions and limits

When someone is placed in pre-trial detention, the first question is always the same: until when? The uncertainty about the duration of the deprivation of liberty before trial is one of its most distressing aspects. The Spanish legal system establishes precise and binding maximum time limits that the judge cannot exceed.

It is worth starting from a principle: pre-trial detention must last only the time strictly indispensable to achieve the aims that justify it. The judge cannot maintain it until the maximum limit is exhausted if the grounds have disappeared earlier: if it was ordered for risk of flight and that risk disappears, or for risk of destruction of evidence and the evidence is already secured, the measure must be lifted. This principle is not always applied ex officio: the defence must actively request it, periodically reviewing whether the circumstances still apply.

The maximum time limits vary according to the seriousness of the offence. When the prescribed penalty does not exceed three years, pre-trial detention cannot last more than one year; when the penalty exceeds three years, it can last up to two years. The period is computed from the effective entry into the penitentiary, not from the order that decrees it; the time of prior police detention does not count within it.

When the initial period is close to expiring and the process has not concluded, the judge may ask the Provincial Court for an extension, always reasoned. In offences with a penalty not exceeding three years, the extension may add up to six months, placing the maximum at a year and a half. In more serious offences, it may add up to two more years, reaching a maximum of four years, but only in specified circumstances: when the person under investigation has caused the delay or when the case is of special complexity.

There is also an absolute and impassable limit: pre-trial detention can never last longer than the maximum penalty prescribed for the offence, because the precautionary measure cannot be more onerous than the very consequence of the offence. The computation is carried out in calendar days, continuously, and the time elapsed while the appeal is being resolved is also deducted from the maximum period.

When the period is exhausted, the person under investigation must be released immediately and unconditionally; the process continues, but with the accused at liberty. If they are not released, the deprivation becomes unlawful and habeas corpus is available. The law also requires a periodic review ex officio when the detention exceeds one year, without this preventing the defence from requesting release at any time. Several factors may shorten the detention before the time limits are exhausted: the posting of bail, the disappearance of the grounds that justified it, the holding of the oral trial or the success of the appeal.

Finally, the time in pre-trial detention is not lost even if there is a conviction: it is credited in full against the penalty automatically. Someone who has spent eighteen months in pre-trial detention and is sentenced to four years will only serve two and a half more years. And if the accused is acquitted after a long period of pre-trial detention, they have the right to compensation from the State for the harm suffered.

Trending Articles

What AI Visibility Means for Lawyers


by Josh Rupall and Bryan Driscoll

AI tools increasingly interpret lawyers public information. Clear, consistent and credible sources help ensure they describe legal expertise accurately.

AI dashboard visualizing a lawyer's online profile, reputation, and practice information across mult

The Best Lawyers in Canada 2027: Recognizing the Nation's Top Legal Talent


by Jamilla Tabbara

Honoring established leaders and rising practitioners across Canada's legal profession.

3D model of Canada textured with the Canadian flag.

2027 Best Lawyers Awards: Honoring Excellence in the Legal Profession


by Jamilla Tabbara

Recognizing the outstanding attorneys leading top practice areas nationwide.

United States with American flag representing The Best Lawyers in America 2027 awards

2027 Best Lawyers Awards in Brazil, Mexico, Portugal and Spain


by Jamilla Tabbara

Explore key findings from the awards, including recognition figures and emerging legal talent.

3D country maps of Brazil, Mexico, Portugal and Spain with national flags

Announcing the 2027 Best Lawyers Awards: Austria, Germany and Switzerland


by Jamilla Tabbara

Celebrating the legal professionals throughout Central Europe.

Graphic displaying three-dimensional map cutouts of Austria, Germany and Switzerland.

The Best Lawyers in France 2027: Peer-Reviewed Excellence


by Jamilla Tabbara

Seventeen editions of peer trust, a growing profession and a dynamic legal market.

3D Map of France with National Flag Graphic

Who Can Override a Power of Attorney?


by Bryan Driscoll

A power of attorney carries real legal authority, but it isn't absolute. Here's who can step in to revoke, restrict or set it aside.

Close-up of a power of attorney document, symbolizing legal authority, revocation rights, guardiansh

Inside the 2027 Best Lawyers Awards in Chile, Colombia and Puerto Rico


by Jamilla Tabbara

A closer look at the research process, methodology and key statistics behind the 2027 editions.

3D map cutouts of Chile, Colombia, and Puerto Rico

How to Get an Eviction Off Your Record


by Bryan Driscoll

Whether an eviction can be removed, sealed or corrected depends on your state, your case and where the record appears.

A printed eviction notice attached to a decorative metal security gate, representing housing instabi

How Peer Review Works: Best Lawyers Methodology Explained


by Jamilla Tabbara

Understanding the independent, data-driven framework that defines professional legal standing.

A glowing professional icon surrounded by incoming arrows, symbolizing data collection and feedback.

How to Optimize Your Best Lawyers Profile for AI Search


by Everett Sizemore

Learn how a complete, well-structured Best Lawyers profile can strengthen your visibility and accuracy across AI search platforms.

A laptop screen displaying the Best Lawyers profile dashboard showing customizable sections.

Google Is Losing Major Antitrust Cases. Is This the End of Big Tech’s Winning Streak?


by Justin Smulison

Legal experts say the remedies and appeals, not the liability findings, will determine if Google's losses reshape the tech industry.

Google Antitrust Losses: What They Mean for Big Tech

What Is a Hostile Work Environment?


by Bryan Driscoll

Not every difficult job is a hostile work environment in the eyes of the law. Here's how to tell the difference and what to do next.

Blurred image of a distressed employee in an office, surrounded by motion-blurred coworkers, conveyi

Turn Client Questions Into Content That AI Search Can Find


by Bryan Driscoll and Manny Candal

Client questions are becoming search inputs. Your firm’s content should answer them clearly.

Pile of question marks with a single bright yellow question mark in the center, representing search.

Can You Sue Someone for Emotional Distress?


by Bryan Driscoll

Emotional distress can sometimes support a lawsuit, but whether you have a valid claim depends on the facts, the law and your ability to prove real harm.

Abstract black-and-white face with multiple screaming mouths, representing emotional distress, anxie

GEO for Law Firms: What It Is and How to Optimize for AI Search


by Bryan Driscoll and Everett Sizemore

A seven-step audit for law firms that covers the terms, the pages, the outside profiles and what you can actually measure.

Hands typing on a laptop with glowing GEO and AI search graphics
Tap to expand

Welcome to Smithy AI the Best Lawyers Assistant

I can help you find attorneys, compare firms, explore practice areas, and surface rankings curated from the Best Lawyers methodology.

Not legal advice This assistant provides general information only. For guidance on your specific situation, please consult a licensed attorney.
Learn about Best Lawyers Research Process
Suggested prompts
Chat limit reached
You've reached the message limit for this chat. To keep exploring, browse Best Lawyers directly or come back later to start a fresh conversation.
Browse Best Lawyers