Habeas corpus is a court order that makes the authorities bring a detained person before a judge and show a lawful reason for holding them. Put simply, it lets anyone who is locked up ask a court: “Is it legal to hold me?” If the answer is no, the court must order their release.
How it is defined in the United States
The right is written into the US Constitution, which says that “the privilege of the writ of habeas corpus shall not be suspended, unless when in cases of rebellion or invasion the public safety may require it” (Article I, Section 9). The Latin words mean, roughly, “you shall have the body”: the jailer has to produce the prisoner in court.
Federal law gives the Supreme Court, the district courts and circuit judges the power to grant the writ (28 U.S. Code § 2241). In practice there are three main routes:
- State prisoners who say their conviction or sentence breaks the Constitution can apply to a federal court under § 2254. They must normally have used up (“exhausted”) the remedies in the state courts first.
- Federal prisoners use a similar motion under § 2255, filed with the court that sentenced them.
- People held without a criminal conviction, for example immigration detainees, can apply under § 2241.
Habeas corpus is not a second trial. A federal court can grant it to a state prisoner “only on the ground that he is in custody in violation of the Constitution or laws or treaties of the United States” – for instance because the defendant had no effective lawyer or the prosecution hid evidence. Since the Antiterrorism and Effective Death Penalty Act of 1996, a state prisoner usually has one year to apply (§ 2244(d)).
How Europe defines and counts it
Most European countries do not use the Latin name, but they protect the same right. Article 5(4) of the European Convention on Human Rights says: “Everyone who is deprived of his liberty by arrest or detention shall be entitled to take proceedings by which the lawfulness of his detention shall be decided speedily by a court and his release ordered if the detention is not lawful.”
Each country decides how this works. Typically a judge reviews police custody within a short time and reviews pre-trial detention at regular intervals, and the detained person can appeal. People who say their rights were breached can take their case to the European Court of Human Rights in Strasbourg once national courts have ruled.
There is no European statistic called “habeas corpus”. The closest data are counts of prisoners who have not yet been finally sentenced, which Eurostat publishes with its prison statistics, and the judgments of the European Court of Human Rights: in 2025 it found 281 violations of the right to liberty and security (Article 5).
What the numbers show
The US federal courts publish yearly counts of habeas petitions in their Judicial Business tables, split by state prisoners, federal prisoners and immigration detainees. In the year to September 2025, petitions from immigration detainees rose sharply as detention increased – a reminder that habeas numbers follow enforcement policy, not only crime.
The number of people who could use habeas corpus is large. At the end of fiscal year 2023, 56,991 people were in federal pre-trial detention alone, and 137,477 were serving sentences in federal prisons, according to the Bureau of Justice Statistics. Most US prisoners are held by the states, not the federal government.
Why the figures can mislead
A rise in habeas petitions does not mean more people are wrongly held. Filings rise when more people are detained, when a court ruling opens a new argument or when a deadline approaches.
The figures also mix very different situations: a prisoner challenging a decades-old murder conviction and an immigrant challenging a few weeks in detention are counted in the same broad category. Compare like with like, and read the footnotes of the court tables.
Related terms
Frequently asked questions
What does habeas corpus mean in simple terms?
It is the right of a detained person to have a judge check whether their detention is legal. The authorities must explain the legal basis for holding the person. If there is none, the court orders release. The name is Latin and roughly means “you shall have the body”.
Is habeas corpus the same as an appeal?
No. An appeal asks a higher court to review the trial for errors and follows directly after the verdict. Habeas corpus is a separate case, often brought after appeals have ended, that asks whether the person is held in breach of the constitution or the law.
Can habeas corpus be suspended?
In the US, only “in cases of rebellion or invasion” when “the public safety may require it”, under Article I of the Constitution. In Europe, states can derogate from some Convention rights in a war or public emergency under Article 15 of the Convention, within strict limits and under the Court’s supervision.
How long does a prisoner have to file for habeas corpus?
For a state prisoner applying to a federal court, generally one year, usually counted from the date the conviction became final (28 U.S. Code § 2244(d)). The clock can start later in some cases, for example when new evidence is discovered. Rules for state-court habeas differ by state.
Sources
- US Constitution (Cornell LII text) (accessed 3 Dec 2026)
- 28 U.S. Code § 2241 – Power to grant writ (accessed 3 Dec 2026)
- 28 U.S. Code § 2254 – State custody; remedies in federal courts (accessed 3 Dec 2026)
- 28 U.S. Code § 2244 – Finality of determination (one-year limit) (accessed 3 Dec 2026)
- European Convention on Human Rights (Council of Europe) (accessed 3 Dec 2026)
- European Court of Human Rights: Annual Report 2025 (statistics) (accessed 3 Dec 2026)
- Bureau of Justice Statistics: Federal Justice Statistics, 2023 (March 2025) (accessed 3 Dec 2026)
This entry explains the term in general and is not legal advice: laws differ between US states and between countries. Back to the crime data glossary.