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 Bryan Driscoll and Josh Rupall

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

Recognizing Legal Leaders: The 2027 Best Lawyers Awards in Australia, Japan and Singapore


by Jamilla Tabbara

Market drivers, diversity trends and the elite practitioners shaping the legal landscape.

Illustrated maps of Australia, Japan and Singapore displayed with their national flags, representing

Musk v. Altman: The Lawyers Behind the Case


by Jamilla Tabbara

Meet the Trial Lawyers Shaping One of AI's Biggest Legal Disputes.

Portrait photos of Elon Musk and Sam Altman positioned in front of the OpenAI logo.

Can You Go to Jail at an Arraignment?


by Bryan Driscoll

Understanding What Happens at Your First Court Appearance.

A heavy chain lying on the ground in the foreground with a blurred figure standing in the background

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 Legal Teams Behind the Blake Lively–Justin Baldoni Settlement


by Grace Greer

A closer look at the legal teams and attorneys involved in the Blake Lively–Justin Baldoni litigation and its resolution.

Split-screen image of Blake Lively and Justin Baldoni

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

Colorado’s 2026 Water Rights Battles


by Bryan Driscoll

A new era of conflict begins.

Colorado Water Rights 2026: A New Era of Conflict headline

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

What Happens if You Don't File Taxes


by Bryan Driscoll

The penalties are real, but so are your options. Here's what the IRS can do and what you can do about it.

A torn dollar bill revealing a watchful eye, surrounded by flying documents

New England's Climate Litigation Surge


by Bryan Driscoll

What law firms need to know

New England's Climate Litigation Surge: What Firms Must Know headline

What Is a Quitclaim Deed? Uses, Risks and When to Get Help


by Bryan Driscoll

A quitclaim deed can be one of the fastest ways to transfer property but knowing when it's the right tool and when it isn't, can save you from serious legal and financial headaches down the road.

One hand holding a wooden house model and another holding house keys.

An Employee's Guide to Non-Disclosure Agreements (NDA)


by Bryan Driscoll

Before you sign anything, here's what you need to know about non-disclosure agreements.

Figure stands before an open giant book, holding a large key, facing a keyhole on the inner page.

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.

Best Lawyers Launches ChatGPT App


by Jennifer Verta

Expanding Trusted Legal Guidance Into AI-Driven Search

A glowing digital network overlay on a person typing on a laptop, representing AI in legal search.

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.