A writ of habeas corpus is a court order that requires a person holding someone in custody to justify the detention. The Latin phrase means "you shall have the body," and the writ's purpose is to test whether a confinement is lawful. It is one of the oldest protections in Anglo-American law, and it is the reason a prisoner can ask a judge to review the legal basis for being held, even after a conviction. This guide explains how habeas corpus works in the United States, how it differs from an appeal, and where the rules vary.
What the Writ Does
A habeas petition is a civil action filed against the person who has custody of the prisoner, usually a warden or jailer. The petitioner asks the court to order the custodian to produce the person and show lawful authority for the detention. If the custody cannot be justified, the court can order release. Courts describe the writ as a guard against unlawful imprisonment and a way to challenge serious constitutional errors.
The Suspension Clause
Article I, Section 9 of the Constitution says that the privilege of the writ of habeas corpus shall not be suspended unless in cases of rebellion or invasion the public safety may require it. This is the Suspension Clause. It does not create the writ by itself; it assumes the writ exists and limits when Congress or the government may suspend it. Suspension is rare and has happened only in extraordinary circumstances.
Federal Habeas Statutes
Federal law sets out several habeas routes:
| Statute | Who uses it | What it challenges |
|---|---|---|
| 28 U.S.C. 2254 | State prisoners | State court convictions and sentences |
| 28 U.S.C. 2255 | Federal prisoners | Federal sentences and convictions |
| 28 U.S.C. 2241 | Various detainees | Custody not covered by 2255, including some immigration detention |
Section 2254 governs the most common federal review of state convictions. Section 2255 is often called the federal prisoner's substitute for habeas because it is filed in the sentencing court rather than against the warden. Section 2241 is a general habeas vehicle used when the other two do not apply.
Habeas Is Not an Appeal
A direct appeal asks a higher court to review the trial record for error. Habeas corpus is a separate, collateral attack that usually comes after appeals are finished. It focuses on whether the detention violates the Constitution or federal law, not on every claimed mistake. This distinction matters because habeas has its own deadlines, its own filing rules, and its own limits on what a court may consider.
The AEDPA Limits
Congress passed the Antiterrorism and Effective Death Penalty Act in 1996, often called AEDPA. The law added a one-year filing deadline for most federal habeas petitions, required greater deference to state court decisions, and restricted second or successive petitions. Under AEDPA, a federal court generally cannot grant relief on a claim a state court decided on the merits unless the state decision was contrary to, or involved an unreasonable application of, clearly established federal law, or was based on an unreasonable determination of the facts. This is a demanding standard, and it is one reason habeas relief is uncommon.
Exhaustion and Procedural Default
A state prisoner generally must exhaust available state court remedies before filing a federal petition. That means presenting each claim to the state courts, including the state's highest court, so those courts have a chance to rule. A claim that was not raised in state court, or was raised in a way the state court rejected on an independent state procedural ground, may be procedurally defaulted and barred from federal review unless the petitioner shows cause and prejudice or a fundamental miscarriage of justice.
The Custody Requirement
Habeas reaches only a person "in custody" under the challenged judgment. Custody can include prison, jail, parole, and some forms of supervision, depending on the jurisdiction and the claim. A person who has fully served a sentence and faces no continuing restraint usually cannot use habeas to clear a conviction, though other remedies may exist.
Common Grounds for a Petition
- Ineffective assistance of counsel.
- A guilty plea or confession that was not voluntary.
- Suppression of evidence that should have been excluded.
- Jury or sentencing errors that violated the Constitution.
- Newly discovered evidence of actual innocence, which can sometimes overcome procedural barriers.
State Habeas and Other Collateral Remedies
Most states have their own habeas or post-conviction procedures, with different names, deadlines, and grounds. Some states call the process post-conviction relief rather than habeas. Federal law also limits when a federal court may stay a case while state remedies proceed. Because these rules are technical, a petitioner usually needs to check the specific state's statute and court rules.
Habeas and Sentences That Have Been Served
The custody requirement creates a practical limit. A person who has completed a sentence and is no longer under any form of supervision generally cannot use habeas to erase the conviction, because there is no custody to challenge. Courts have recognized narrow exceptions, and some petitioners seek other remedies, such as a pardon or expungement under state law. Because the consequences of a conviction can outlast the sentence, this limit is a frequent source of confusion.
Habeas review also depends on the quality of the record and on counsel. Many petitions fail because claims were not preserved, because the deadline passed, or because the petitioner cannot show the required level of constitutional error. Courts do not appoint counsel for every habeas petitioner, and the rules are technical, so organizations that assist prisoners often focus on identifying strong claims early.
Where to Find the Rules
The federal habeas statutes appear in Title 28 of the U.S. Code, available at uscourts.gov and govinfo.gov. Cornell's Legal Information Institute at law.cornell.edu summarizes the statutes and the Suspension Clause. Federal district court websites publish local habeas forms and filing instructions, and state court websites publish their post-conviction rules.
This guide is general information about criminal procedure and is not legal advice. Habeas deadlines are strict and vary by situation, so anyone considering a petition should consult a licensed attorney promptly.