What is the difference between pretrial detention and a prison sentence in Egypt, and how long can pretrial detention last?

Pretrial detention is a temporary measure ordered by the prosecution or a judge while a case is pending and before judgment, and the accused remains presumed innocent throughout. A prison sentence can only be imposed by a court judgment that convicts the accused and sets the term. Pretrial detention has a ceiling that cannot be exceeded, which depends on the type of offence (misdemeanour, felony, or felony punishable by life imprisonment or death), and it is governed by the new Code of Criminal Procedure, Law No. 174 of 2025, in force since 1 October 2026.

What exactly is the difference?

PointPretrial detentionPrison sentence
NatureTemporary precautionary investigative measureCriminal penalty
Ordered byPublic Prosecution, a judge or the court while the case is pendingThe court, in a conviction
Status of the personPresumed innocentConvicted
LengthRenewed periodically, with a ceiling by offence typeSet by the judgment within the statutory range
AlternativesRelease on bail or under an alternative measureSuspended sentence or parole where applicable

Why can someone be detained before any judgment?

Pretrial detention exists to protect the investigation, not to punish: for example where there is a risk of flight, of pressure on witnesses or tampering with evidence, or a threat to public security. It is meant to be the exception, with alternatives used whenever they are enough.

The Public Prosecution may extend detention for periods of up to fifteen days each, to a total of forty-five days (Article 121), after which the matter goes before the competent judge.

What is the maximum length of pretrial detention?

Article 124 of Law No. 174 of 2025 provides that pretrial detention during the preliminary investigation may not exceed one third of the maximum penalty prescribed for the offence, and in any event may not exceed:

For felonies, detention beyond five months requires an order from the competent court. The verbatim wording should be checked against the Official Gazette [needs verification].

Press reports on the new Code also say the case file is referred to the Public Prosecutor every three months of detention, or since the last review, to assess whether detention should continue {VE}.

Is time in pretrial detention deducted from the sentence?

Yes. The sentence runs from the day of arrest and is reduced by the time spent in pretrial detention (Article 455). If the accused is acquitted of the offence for which they were detained, the time is deducted from the sentence for any other offence of which they are convicted (Article 456), starting with the lighter penalty where there are several (Article 457). Where the penalty is a fine, EGP 50 is deducted for each day of pretrial detention (Article 468). If the time already spent in detention equals or exceeds the sentence imposed, the accused is released immediately (Article 438).

Compensation for pretrial detention is limited to the cases in Article 528: where the offence is punishable by a fine or by imprisonment of less than one year and the accused has a fixed address; where a decision not to prosecute is issued because the facts are untrue; or where the accused is acquitted because the act is not punishable or the facts are untrue.

What should I do if a relative is in pretrial detention?

Specialist legal opinion

Under the new Code, pretrial detention is narrower in its periods and broader in its alternatives, which gives the defence more room at renewal hearings: asking for an alternative measure instead of custody, relying on the expiry of the ceiling, and arguing that the grounds for detention no longer exist once the investigation is complete. How these rules apply to cases that began before 1 October 2026 depends on the Code's transitional provisions, which need to be reviewed [needs verification].

Sources reviewed for the data in this article

Frequently asked questions

What is the difference between pretrial detention and a prison sentence?

Pretrial detention is a temporary measure during investigation or trial while the person is presumed innocent; a prison sentence follows a conviction.

What is the maximum length of pretrial detention in Egypt?

Under Article 124 of Law No. 174 of 2025: one third of the maximum penalty, capped at four months for misdemeanours, twelve months for felonies and eighteen months where the penalty is life imprisonment or death, during the preliminary investigation.

Is pretrial detention deducted from the sentence?

Yes. The sentence is reduced by the time spent in pretrial detention (Article 455), and after an acquittal the time is deducted from the sentence for another offence (Article 456).

Can someone be released before the ceiling is reached?

Yes, at any renewal hearing, on bail, under an alternative measure or unconditionally, if the competent authority so decides.

When did the new Code of Criminal Procedure take effect?

Law No. 174 of 2025 was issued and published on 12 November 2025 and has been in force since 1 October 2026.

If you have a problem and are not sure whether it falls under the subject of this article, you can consult a specialist lawyer by booking a consultation on our website.

Related articles

Related services

If you are a party to a similar problem, do not face it alone; contact our firm or pay us a visit, so that we may place our experience at your service and handle your case with the care and precision it deserves.

Book a consultation

If you have worked with our firm, we would be glad if you rated your experience on Google: Rate us on Google

This article is general information for legal awareness and does not replace legal advice on your particular situation.