Insight

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

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

SL

Written by Select lawyer...

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

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

Holiday Pay Explained: Federal Rules and Employer Policies


by Bryan Driscoll

Understand how paid holidays work, when employers must follow their policies and when legal guidance may be necessary.

Stack of money wrapped in a festive bow, symbolizing holiday pay

How Far Back Can the IRS Audit You?


by Bryan Driscoll

Clear answers on IRS statutes of limitations, recordkeeping and what to do if you are under review.

Gloved hand holding a spread of one-hundred-dollar bills near an IRS tax document

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 File Bankruptcy on Credit Cards


by Bryan Driscoll

Understanding your options for relief from overwhelming debt.

Red credit card on point-of-sale terminal representing credit card debt

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

How AI Is Changing the Way Clients Find Lawyers


by Jamilla Tabbara

Best Lawyers CEO Phil Greer explains how AI-driven search tools are reshaping legal marketing and why credibility markers matter.

AI chat bubble icon with stars representing artificial intelligence transforming client-lawyer conne

When Is It Too Late to Stop Foreclosure?


by Bryan Driscoll

Understanding the foreclosure timeline, critical deadlines and the legal options that may still protect your home.

Miniature house model on orange background surrounded by thumbtacks representing foreclosure

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

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

What’s the Difference Between DUI and DWI?


by Bryan Driscoll

Understanding the terminology and consequences of impaired driving charges.

Driver during nighttime police traffic stop with officer's flashlight shining through car window

How to Choose a Personal Injury Lawyer


by Bryan Driscoll

Finding the right legal representation after an injury is a critical decision that requires careful evaluation. 

3D scene representing the deliberative process of choosing a personal injury attorney

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

When to Get a Lawyer for Work Injury


by Bryan Driscoll

Understanding your rights and navigating the complexity of workers’ compensation claims.

Injured worker receiving medical attention at workplace

What Disqualifies You From Filing Bankruptcies


by Bryan Driscoll

A guide to navigating eligibility, the means test and the legal hurdles of declaring bankruptcy.

A silhouette of a large hand pushing over a row of falling dominos toward a small figure standing be

Legal Separation vs. Divorce


by Bryan Driscoll

A clear guide to understanding the legal, financial and emotional differences between separating and ending a marriage.

Miniature figures of two people standing apart with a child figure between them on a cracked surface