A habeas corpus petition is a formal court filing that forces whoever is holding a person in custody to appear before a judge and justify the detention. If the judge finds the detention unlawful, the court can order release, vacate a conviction, or send the case back for a new trial or sentencing. The right is protected by Article I, Section 9 of the Constitution and can only be suspended during rebellion or invasion.1Constitution Annotated. ArtI.S9.C2.1 Suspension Clause and Writ of Habeas Corpus A habeas court does not retry the case or decide guilt. It decides whether the government has legal authority to hold you and whether constitutional rights were respected along the way.
Which Habeas Statute Applies to You
Three federal statutes create different habeas paths, and picking the wrong one gets the petition dismissed before anyone looks at the substance.
Section 2241 for Federal Detention Without a Conviction
28 U.S.C. Section 2241 is the broadest habeas statute. It reaches anyone held “in custody under or by color of the authority of the United States” or “in custody in violation of the Constitution or laws or treaties of the United States.”2Office of the Law Revision Counsel. 28 U.S. Code 2241 – Power to Grant Writ Immigration detention, military custody, and federal pretrial detention are typical examples. If a federal authority is holding you and the detention does not come from a state conviction, Section 2241 is the starting point.
Section 2254 for State Prisoners
Section 2254 covers people serving sentences after conviction in state court. This is the most common type of federal habeas petition, and it carries the strictest procedural rules: mandatory exhaustion of state remedies, a one-year deadline, and a deferential review standard that makes relief hard to obtain. Most of what follows applies specifically to Section 2254 petitions.
Section 2255 for Federal Prisoners
Federal prisoners challenging their own conviction or sentence file a motion under 28 U.S.C. Section 2255, not a traditional habeas petition. The motion goes back to the court that imposed the sentence. Four grounds are available: the sentence violated the Constitution or federal law, the court lacked jurisdiction, the sentence exceeded the legal maximum, or the sentence is “otherwise subject to collateral attack.”3Office of the Law Revision Counsel. 28 USC 2255 – Federal Custody; Remedies on Motion Attacking Sentence A successful motion can vacate the conviction, order resentencing, or order a new trial.
What You Have to Claim
A habeas petition has to identify a specific constitutional violation. Feeling that the outcome was unfair is not a claim. Three grounds come up most often.
Ineffective assistance of counsel. This is the most frequently raised habeas claim. Under the Supreme Court’s 1984 decision in Strickland v. Washington, the petitioner must show both that their attorney’s performance was objectively unreasonable and that the poor performance actually prejudiced the outcome.4Constitution Annotated. Amdt6.6.5.4 Ineffective Assistance of Counsel Both parts are required. Mistakes that would not have changed the verdict are not enough.
Suppression of evidence by the prosecution. Under Brady v. Maryland, prosecutors must turn over evidence favorable to the defense when that evidence is material to guilt or punishment. Suppressing such evidence violates due process regardless of whether the prosecutor acted in good or bad faith. A withheld piece of evidence that could have changed the trial outcome is a constitutional defect subject to habeas challenge.
Lack of jurisdiction or an unconstitutional statute. A conviction entered by a court without legal authority to hear the case is void. A conviction under a statute that violates a fundamental right is also unlawful, no matter how fair the trial itself was.
The One-Year Deadline
Missing this deadline is where most habeas petitions die. The Antiterrorism and Effective Death Penalty Act of 1996 (AEDPA) sets a strict one-year statute of limitations. For state prisoners, the clock usually starts the day the conviction becomes final, meaning after direct appeals are completed or the time to appeal has run out.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
Three situations can push the start date later: unconstitutional government action that prevented an earlier filing, a new constitutional right recognized by the Supreme Court and made retroactive, or a factual basis for the claim that could not have been discovered sooner despite reasonable effort.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
The clock pauses while a properly filed state post-conviction petition is pending. “Properly filed” is the trap. If a state court rejects the post-conviction motion as untimely, it was never properly filed, and the federal clock was never paused. People who wait years before starting the state process often discover the federal deadline passed before they realized the clock had been running.
Exhausting State Court Remedies
Before a state prisoner can file in federal court, they must first raise every constitutional claim in state court and give those courts a fair chance to address them. The statute is explicit: a habeas petition “shall not be granted unless it appears that the applicant has exhausted the remedies available in the courts of the State.”6Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts In practice, this means direct appeals and any available state post-conviction motions presenting the same arguments you plan to make federally.
Narrow exceptions exist when no state corrective process is available or when circumstances make the state process ineffective, but they rarely apply. Skipping the state process leads to automatic dismissal.
How to File the Petition
The paperwork is less complicated than the legal standards, but procedural slip-ups get petitions thrown out before the substance is read.
What the Petition Must Contain
A Section 2254 petition names the state officer who has custody of the petitioner as the respondent, typically the warden of the facility. The petition must specify every ground for relief, state the facts supporting each ground, describe the relief requested, and be signed under penalty of perjury.7United States Courts. Rules Governing Section 2254 Cases in the United States District Courts – Rule 2 The court clerk’s office provides standardized forms at no cost, and most courts require them.
Supporting documents strengthen the petition. Certified copies of trial transcripts, appeal records, and the written judgment of conviction help the court identify specific legal errors. If you are challenging the sufficiency of the evidence, produce the relevant portions of the record. Indigent petitioners who cannot obtain these records can ask the court to order the state to produce them.8Office of the Law Revision Counsel. 28 U.S. Code 2254 – State Custody; Remedies in Federal Courts
Filing Fee and In Forma Pauperis
The filing fee is $5, far lower than the $350 fee for other federal civil actions.9Office of the Law Revision Counsel. 28 USC 1914 – District Court; Filing and Miscellaneous Fees Petitioners who cannot pay can apply to proceed in forma pauperis, which waives the fee. Prisoners filing that application must submit a certified copy of their prison trust fund account statement covering the six months before filing.10Office of the Law Revision Counsel. 28 USC 1915 – Proceedings In Forma Pauperis
Service
Under 28 U.S.C. Section 2243, the writ or show-cause order is directed to the person holding the petitioner, and that person must respond within three days, with up to twenty additional days for good cause.11Office of the Law Revision Counsel. 28 USC 2243 – Issuance of Writ; Return; Hearing; Decision Proof of service goes in the court file. Failure to serve the respondent properly can end the case.
What Happens After You File
The court screens the petition before involving the government. A judge can dismiss a petition that is clearly meritless or procedurally defective without ordering any response. If the petition states a plausible claim, the court issues an order directing the respondent to show cause why the writ should not be granted.11Office of the Law Revision Counsel. 28 USC 2243 – Issuance of Writ; Return; Hearing; Decision The government then files a written response.
If the written filings do not resolve the dispute, the court may hold an evidentiary hearing. It is not a retrial. The hearing focuses narrowly on the constitutional violations alleged. AEDPA sharply limits when a federal court can even hold a hearing for a state prisoner: if the petitioner failed to develop the factual basis of the claim in state court, no hearing is permitted unless the claim rests on a new, retroactively applicable rule of constitutional law or on facts that could not have been discovered earlier through reasonable diligence. Even then, the underlying facts must be strong enough to show by clear and convincing evidence that no reasonable factfinder would have found the petitioner guilty.8Office of the Law Revision Counsel. 28 U.S. Code 2254 – State Custody; Remedies in Federal Courts
The court then issues a final order. The statute directs it to “summarily hear and determine the facts, and dispose of the matter as law and justice require.”11Office of the Law Revision Counsel. 28 USC 2243 – Issuance of Writ; Return; Hearing; Decision If relief is granted, the court can order immediate release, vacate the conviction and order a new trial, or direct a new sentencing hearing. In many cases a granted petition means the state must either retry the case within a reasonable time or let the person go.
Why Most Petitions Lose
Even after clearing every procedural requirement, state prisoners face a review standard built to defer to state courts. Under AEDPA, a federal court cannot grant relief on any claim already decided on the merits in state court unless the state court’s decision was “contrary to, or involved an unreasonable application of, clearly established Federal law, as determined by the Supreme Court” or “was based on an unreasonable determination of the facts in light of the evidence presented.”6Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts
“Unreasonable” is doing the work. A federal judge who disagrees with the state court’s reasoning still has to deny relief if the state court’s application of the law was merely wrong rather than objectively unreasonable. This is why many petitions raising real constitutional concerns still fail. Claims that are specific, well-documented, and tied to clearly established Supreme Court law have the best chance.
If the Petition Is Denied
A denied Section 2254 or Section 2255 petition cannot be appealed as of right. AEDPA requires a Certificate of Appealability. A circuit judge will issue one only if the petitioner makes “a substantial showing of the denial of a constitutional right,” and the certificate must specify which issues meet that standard.12Office of the Law Revision Counsel. 28 U.S. Code 2253 – Appeal Without the certificate, no appeal.
The “substantial showing” bar is lower than winning the underlying claim but not trivial. The petitioner has to show that reasonable jurists could disagree about how the petition was resolved or that the issues deserve further proceedings.
Why the First Petition Has to Count
AEDPA severely restricts filing a second habeas petition challenging the same conviction. Any claim already raised in a prior petition will be dismissed automatically. A new claim will also be dismissed unless it rests on a new, retroactively applicable rule of constitutional law from the Supreme Court, or on a factual basis that could not have been discovered earlier through reasonable diligence and that would clearly establish innocence.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
Before a second petition can even reach the district court, the petitioner has to get authorization from the court of appeals. A three-judge panel decides within 30 days whether the new petition makes a preliminary showing that it meets these strict requirements. If the panel says no, that decision cannot be appealed or reconsidered.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination Most people get one real shot at federal habeas relief. Every viable constitutional claim needs to be in that first petition.