Habeas corpus is a court order that forces the government to bring a detained person before a judge and prove the detention is lawful. The habeas corpus definition in law comes from the Latin phrase meaning “you shall have the body,” and in modern American practice the writ is the main way someone in custody can ask a federal court to review whether their imprisonment violates the Constitution, federal law, or a U.S. treaty.1Cornell Law Institute. Habeas Corpus Although most petitioners are people convicted of crimes, a habeas case is treated as a civil action, not a criminal one. The filer is a plaintiff challenging the government, not a defendant facing charges.
Where the Writ Comes From
The U.S. Constitution protects habeas corpus in Article I, Section 9, Clause 2, known as the Suspension Clause. It provides that the privilege of the writ cannot be suspended unless rebellion or invasion makes it necessary for public safety.2Constitution Annotated. Article I Section 9 Clause 2 That protection traces back to Magna Carta and was later codified in the English Habeas Corpus Act of 1679.3Library of Congress. Writ of Habeas Corpus – Magna Carta: Muse and Mentor The Suspension Clause has rarely been invoked. President Lincoln’s suspension in border states during the Civil War, allowing military trials of civilian rioters, is the most prominent example.
The mechanics of federal habeas review come from statutes. A person held under a state court judgment can petition a federal court for relief under 28 U.S.C. § 2254 on the ground that their custody violates the Constitution, federal law, or a U.S. treaty.4Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts Federal prisoners use the parallel mechanism in 28 U.S.C. § 2255, which permits a motion to vacate, set aside, or correct a sentence when the conviction or sentence violated the Constitution, the sentencing court lacked jurisdiction, or the sentence exceeded the legal maximum.5Office of the Law Revision Counsel. 28 USC 2255 – Federal Custody; Remedies on Motion Attacking Sentence A broader grant under 28 U.S.C. § 2241 covers situations outside those two provisions, such as challenges to immigration detention or pretrial confinement.
Nearly every procedural hurdle in modern habeas practice comes from the Antiterrorism and Effective Death Penalty Act of 1996 (AEDPA). AEDPA added a one-year filing deadline, sharply restricted second petitions, and required federal courts to defer to reasonable state court decisions.
Who Can Use Habeas Corpus
Criminal convictions generate most habeas filings, but the writ is not limited to that context. Immigrants held in prolonged detention have used habeas petitions to challenge whether the government has legal authority to keep them locked up. People subjected to involuntary psychiatric commitment have filed petitions when facilities bypass required judicial review. After the September 11 attacks, detainees held at Guantanamo Bay successfully argued they possessed habeas rights, and the Supreme Court struck down congressional attempts to strip those rights.6Federal Judicial Center. Jurisdiction: Habeas Corpus The common thread is simple: someone is locked up, and they want a judge to decide whether there is a legal basis for it.
Habeas is not a substitute for a direct appeal, and it is not a second chance to relitigate the evidence. It is a challenge to the legality of the custody itself.
What a Petitioner Has to Prove
A habeas petition must show that the detention violates the Constitution, federal law, or a U.S. treaty.4Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts General complaints about unfairness do not qualify. The claims that come up most often include:
- Ineffective assistance of counsel, where the lawyer’s performance fell below an objective standard of reasonableness and there is a reasonable probability the outcome would have been different. Both elements must be proven.
- Prosecutorial misconduct, including withholding evidence favorable to the defense in violation of the Brady rule.
- Newly discovered evidence that proves actual innocence or fundamentally changes the case.
- Constitutional trial errors, such as violations of the right against compelled self-incrimination or the right to an impartial jury.
Proving that a constitutional error occurred is only part of the burden. The error must have had a substantial and injurious effect on the jury’s verdict.7Legal Information Institute. Brecht v. Abrahamson, 507 U.S. 619 (1993) A minor procedural mistake that did not change the outcome will not support relief, even if it was technically unconstitutional.
The AEDPA Deference Standard
For state prisoners, an additional wall stands in the way. A federal court cannot grant habeas relief on any claim already decided on the merits in state court unless the state court’s decision either contradicted clearly established Supreme Court precedent or was based on an unreasonable reading of the facts.4Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts This is not a “was the state court wrong?” test. It is a “was the state court’s decision so far off that no fair-minded judge could agree with it?” test. That distinction is the single biggest reason most habeas petitions fail. A state court can get the law somewhat wrong and still survive federal review as long as its error stays within the range of reasonable disagreement.
Federal prisoners filing under § 2255 face no equivalent deference layer, because there is no state court decision to defer to. They still must show a constitutional violation, a jurisdictional defect, or a sentence beyond the statutory maximum, and they remain bound by the one-year deadline and the restrictions on successive filings.5Office of the Law Revision Counsel. 28 USC 2255 – Federal Custody; Remedies on Motion Attacking Sentence
Exhaustion of State Remedies
Before a state prisoner can seek habeas relief in federal court, they must give the state courts a fair chance to address each constitutional claim. Federal law requires a petitioner to exhaust all remedies available in the state system.4Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts That means raising each claim through the state’s direct appeal process and, if necessary, through state post-conviction proceedings. A claim is not exhausted if the petitioner still has an available state procedure to present it.
Two narrow exceptions apply. A federal court can hear an unexhausted claim if the state has no corrective process available, or if circumstances make that process ineffective at protecting the petitioner’s rights.4Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts A federal court can also deny an unexhausted petition on the merits, which means skipping exhaustion never helps the petitioner.
A related trap is procedural default. If a petitioner could have raised a claim earlier in state court but failed to do so, the federal court generally will not consider it. Getting past a procedural default requires showing a legitimate reason for the failure (something outside the petitioner’s control, such as government interference or a lawyer’s constitutionally deficient performance) and actual prejudice from the underlying violation. A credible showing of actual innocence can also open the door, but the standard is exceptionally high.
The One-Year Deadline
AEDPA imposes a strict one-year statute of limitations. For most petitioners, the clock starts on the date the conviction becomes final, meaning when all direct appeals have concluded or the time to file an appeal has expired.8Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination The same one-year deadline applies to federal prisoners filing under § 2255.5Office of the Law Revision Counsel. 28 USC 2255 – Federal Custody; Remedies on Motion Attacking Sentence
The clock can start later in certain situations. If a state blocked the petitioner from filing through unconstitutional action, the deadline runs from the date that barrier was removed. If the Supreme Court recognizes a new constitutional right and makes it retroactive, the deadline runs from the date of that decision. If the factual basis for a claim could not have been discovered earlier through reasonable effort, the deadline runs from the date those facts came to light.8Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
Filing a state post-conviction action pauses (or “tolls”) the federal clock while the state proceedings remain pending. The year does not reset when state proceedings end; it picks up where it left off. Someone who waits eleven months to file a state post-conviction motion has one month remaining on the federal clock once the state case concludes. Missing the deadline is usually fatal.
The Supreme Court has recognized one narrow escape hatch. In McQuiggin v. Perkins, the Court held that a petitioner who presents evidence so strong that no reasonable juror would have convicted them can file a habeas petition even after the one-year deadline has passed.9Justia. McQuiggin v. Perkins, 569 U.S. 383 (2013) This gateway rarely succeeds. The evidence must genuinely undermine confidence in the conviction, not merely raise questions about it.
Restrictions on Second or Successive Petitions
AEDPA sharply limits a petitioner’s ability to file more than one federal habeas petition challenging the same conviction. Any claim already raised in an earlier petition must be dismissed.8Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination A new claim not raised before must also be dismissed unless one of two conditions is met: the claim relies on a new rule of constitutional law that the Supreme Court has made retroactive to cases on collateral review, or the factual basis could not have been discovered earlier through reasonable diligence and the new facts, if proven, would establish by clear and convincing evidence that no reasonable jury would have found the petitioner guilty.
A petitioner cannot simply file a second petition with the district court. Before anything reaches the district court, the petitioner must obtain permission from the federal court of appeals by filing a motion for authorization. A three-judge panel decides whether the new petition makes a preliminary showing that it meets the statutory requirements. The panel must act within 30 days, and its decision cannot be appealed or reconsidered.8Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination Even when authorization is granted, the district court independently evaluates each claim and dismisses any that fail the statutory test.
How a Petition Moves Through Court
A habeas petition is filed with the clerk of the federal district court that has jurisdiction over the place of detention. Federal courts provide standardized forms, including Form AO 241 for state prisoners filing under § 2254.10United States Courts. Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254 The petition asks for the petitioner’s full legal name, the name and location of the custodian (typically a prison warden), the court that entered the conviction, and the sentencing date. It also asks the petitioner to describe each ground for relief in plain terms and to state the supporting facts. Trial transcripts, prior court orders, sentencing records, and affidavits belong as attached exhibits.
The filing fee is $5, well below the standard $350 fee for other federal civil actions.11Office of the Law Revision Counsel. 28 USC 1914 – District Court; Filing and Miscellaneous Fees A petitioner who cannot afford the fee can request to proceed in forma pauperis by submitting a financial affidavit and a certified copy of their prison trust fund statement. No prisoner can be blocked from filing simply because they have no money.12Office of the Law Revision Counsel. 28 USC 1915 – Proceedings In Forma Pauperis
A judge conducts a preliminary review after filing. If the petition and its exhibits make clear on their face that the petitioner is not entitled to relief, the judge dismisses it without requiring any response from the government. Many petitions end here. If the petition survives that screening, the judge orders the respondent to file an answer within a set period. The answer must address each allegation and identify any procedural bars such as failure to exhaust, procedural default, or an expired statute of limitations.13United States Courts. Rules Governing Section 2254 and Section 2255 Proceedings The petitioner then has a chance to reply. If factual disputes remain, the court may hold an evidentiary hearing, though these are relatively rare.
If the district court denies the petition, the petitioner cannot appeal automatically. They must first obtain a certificate of appealability from either the district court or a circuit judge, which is issued only if the petitioner makes a substantial showing that a constitutional right was denied.14Office of the Law Revision Counsel. 28 U.S. Code 2253 – Appeal The certificate identifies the specific issues that meet the threshold, and the appeals court reviews only those issues. Without one, the case ends at the district court.