A habeas corpus petition is a formal request asking a federal court to decide whether you are being held in custody in violation of the Constitution or federal law. It is not a retrial and not a standard appeal. It is a separate proceeding, governed largely by the Antiterrorism and Effective Death Penalty Act of 1996, with a one-year filing deadline, exhaustion rules, and standards high enough that most petitions fail on procedure before a judge ever reaches the merits. What follows walks through the grounds you can raise, the statute and form that match your situation, the deadlines that will end your case if you miss them, and what happens after you file.
What You Can Actually Challenge
A habeas petition targets the legality of your confinement. The claim has to be constitutional or federal in nature, and the alleged error has to be serious enough that the conviction or sentence cannot stand.
The most common ground is ineffective assistance of counsel under the Sixth Amendment. To win, you have to show two things: that your lawyer’s performance fell below an objective standard of reasonableness, and that there is a reasonable probability the outcome would have been different without those errors.1Constitution Annotated. Amdt6.6.5.4 Deprivation of Effective Assistance of Counsel by Defense Counsel Both prongs are required. A questionable strategic choice by your lawyer is not enough on its own if it did not likely change the result.
Due process claims under the Fifth and Fourteenth Amendments are also frequent. Under Brady v. Maryland, if the prosecution suppressed favorable evidence, you have to show the evidence existed, that it was withheld (intentionally or accidentally), and that it was material enough that its absence undermines confidence in the verdict. Coerced confessions and the knowing use of false testimony fall under the same due process umbrella.
Actual innocence, in most federal courts, is not a standalone ground. It functions instead as a gateway that can excuse procedural failures. Under Schlup v. Delo, you need new, reliable evidence unavailable at trial, and you have to show that in light of that evidence, it is more likely than not that no reasonable juror would have convicted.2Justia. Schlup v Delo Courts treat this as an extraordinary exception.
Which Statute and Form Match Your Situation
The right statute depends entirely on who convicted you and what kind of custody you are in. Filing under the wrong one wastes time you probably do not have.
State Prisoners: 28 U.S.C. § 2254
If a state court convicted you, federal habeas review runs through 28 U.S.C. § 2254. A federal judge can grant relief only if the state court’s decision was contrary to clearly established Supreme Court precedent, involved an unreasonable application of that precedent, or rested on an unreasonable determination of the facts based on the record.3Office of the Law Revision Counsel. 28 US Code 2254 – State Custody; Remedies in Federal Courts This is not a test of whether the state court was wrong. It is a test of whether the state court was unreasonably wrong, and that gap is where most petitions fail. State prisoners use Form AO 241.4United States District Court Southern District of Indiana. AO 241 – Petition for Relief From a Conviction or Sentence By a Person in State Custody
Federal Prisoners: 28 U.S.C. § 2255
If a federal court sentenced you, you file a motion under 28 U.S.C. § 2255 in the same federal court that imposed the sentence. The statute covers claims that the sentence violated the Constitution or federal law, that the court lacked jurisdiction, or that the sentence exceeded the legal maximum.5Office of the Law Revision Counsel. 28 US Code 2255 – Federal Custody; Remedies on Motion Attacking Sentence Because the motion goes back to the sentencing court itself, it works differently than a § 2254 petition asking a new court to second-guess the first. Federal prisoners use Form AO 243.6United States Courts. Motion to Vacate/Set Aside Sentence (Motion Under 28 USC 2255)
Pretrial and Other Detainees: 28 U.S.C. § 2241
If you have not been convicted, or your confinement does not stem from a criminal conviction (pretrial detention, extradition, immigration holds), 28 U.S.C. § 2241 is the correct statute. The form is AO 242.7United States Courts. Petition for a Writ of Habeas Corpus Under 28 USC 2241
The One-Year Deadline
AEDPA gives you one year to file a federal habeas petition. Miss it, and your petition is almost certainly dead regardless of how strong your claim is. The clock starts running from the latest of four possible events:8Office of the Law Revision Counsel. 28 USC 2244
- The day your conviction became final, meaning your direct appeal concluded or the time to file one ran out.
- The day an unconstitutional government-created obstacle to filing was removed.
- The day the Supreme Court recognized a new constitutional right and made it retroactive.
- The day the factual basis of your claim could first have been discovered through reasonable diligence.
For most petitioners, the first trigger applies, and the year starts when the direct appeal ends or the appeal window closes.
When the Clock Pauses
The one-year period pauses while a “properly filed” state post-conviction application is pending in state court.9Office of the Law Revision Counsel. 28 US Code 2244 – Finality of Determination Read “properly filed” strictly. A state motion rejected as untimely or procedurally defective under state rules may not toll the federal clock at all. And when the state proceeding finally ends, the federal clock resumes where it left off. It does not reset.
Exhausting State Remedies First
If you are a state prisoner, every claim in your federal petition has to have been presented through the state court system first, all the way up through the state’s highest available court.3Office of the Law Revision Counsel. 28 US Code 2254 – State Custody; Remedies in Federal Courts File in federal court too early and the petition is typically dismissed without prejudice, sending you back to finish the state process. Narrow exceptions exist when no state corrective process is available or the state process is ineffective at protecting your rights, but courts rarely find those conditions met.
Procedural default is the related trap. If you failed to raise a constitutional claim in state court when state rules required it, and state deadlines have since closed, that claim is usually barred from federal review. Two paths exist around a default: showing both cause for the failure and actual prejudice from the constitutional violation, or showing that enforcing the default would cause a fundamental miscarriage of justice, which in practice means a credible actual-innocence showing.
Writing the Petition
The AO forms ask for identifying information from the underlying case: the court that imposed the sentence, the date of judgment, the docket number, and each ground for relief. A “ground” is a legal theory, and each one has to be backed by specific facts. Vague allegations get petitions dismissed. Compare “my lawyer was bad” with “my lawyer failed to interview three alibi witnesses named in the police report whose testimony would have contradicted the sole eyewitness.” The first goes nowhere. The second gets read.
Supporting documents matter. Trial transcripts, appellate opinions, and sentencing records show where the constitutional error actually happened. Transcripts typically run several dollars per page and a full trial transcript can be expensive; appellate opinions are usually cheaper to pull from court electronic filing systems.
Filing Fee
The filing fee for a federal habeas petition is $5.10Office of the Law Revision Counsel. 28 US Code 1914 – District Court; Filing and Miscellaneous Fees If you cannot afford it, you can apply to proceed in forma pauperis. The application requires a certified copy of your prison trust fund account statement for the previous six months. The court then sets an initial partial filing fee, typically 20 percent of average monthly deposits or the average monthly balance, whichever is greater.
No Right to a Lawyer
There is no constitutional right to appointed counsel in habeas proceedings. Federal courts can appoint counsel when the interests of justice require it, and Congress has mandated appointed counsel in federal death penalty habeas cases. Everyone else generally files pro se, which puts a premium on getting the petition right the first time.
What Happens After You File
You file with the Clerk of Court in the appropriate federal district, pay the fee (or receive indigent status), and serve the petition on the respondent, usually the warden of the facility holding you. The state attorney general also gets notice.
The court screens the petition first. If it is plainly frivolous or you clearly are not entitled to relief, it can be dismissed at that stage without any response from the government. If it survives screening, the court orders the respondent to show cause why relief should not be granted, and the government files a written answer with the relevant portions of the record.11Office of the Law Revision Counsel. 28 USC 2243 The judge sets the response deadline case by case.12United States Courts. Rules Governing Section 2254 and Section 2255 Proceedings
Many districts refer habeas petitions to a magistrate judge, who issues a Report and Recommendation. If you disagree, you have 14 days to file written objections with the district court. Miss that window and the district judge can adopt the recommendation without further review, and you will usually have waived the right to appeal that issue.
Evidentiary hearings are not automatic. If the record resolves the factual disputes, the judge rules on the papers. If you failed to develop the factual basis of your claim in state court, AEDPA further limits when a hearing is available: only if the claim rests on a new retroactive constitutional rule or on facts that could not have been discovered earlier through due diligence, and the facts would establish by clear and convincing evidence that no reasonable factfinder would have convicted.3Office of the Law Revision Counsel. 28 US Code 2254 – State Custody; Remedies in Federal Courts
If Your Petition Is Denied
A denial is not the end, but the appeal has its own gate. Before you can appeal to the court of appeals, a judge must issue a Certificate of Appealability, and that certificate is granted only if you make a substantial showing of the denial of a constitutional right. The certificate has to specify which issues meet that standard.13Office of the Law Revision Counsel. 28 US Code 2253 – Appeal
The deadline to notice the appeal comes from the Federal Rules of Appellate Procedure. The civil default is 30 days after entry of judgment, but when a United States officer or agency is a party, the deadline extends to 60 days.14Legal Information Institute. Federal Rules of Appellate Procedure Rule 4 – Appeal as of Right; When Taken Habeas respondents are often government officials, so which deadline applies depends on who your respondent is. If you are not certain the longer period applies, treat the 30-day deadline as your safe assumption.
Filing a Second Petition
If you have already filed one federal habeas petition challenging the same conviction, filing another one requires clearing a separate hurdle first. Before a second or successive petition can even reach a district court, you have to get authorization from the court of appeals.9Office of the Law Revision Counsel. 28 US Code 2244 – Finality of Determination A three-judge panel decides within 30 days, and the decision is not appealable. Authorization requires showing the petition relies on either a new rule of constitutional law the Supreme Court has made retroactive to cases on collateral review, or newly discovered facts that reasonable diligence could not have found earlier and that would establish by clear and convincing evidence that no reasonable factfinder would have found you guilty. Most requests are denied.