To file a writ of habeas corpus in federal court as a state prisoner, you complete Form AO 241, pay a $5 filing fee or request a waiver, and mail the petition to the clerk of the correct U.S. district court within one year of your conviction becoming final. You must first have raised every constitutional claim through your state’s courts. The petition is a civil action against the official holding you in custody, and the entire process is governed by the Antiterrorism and Effective Death Penalty Act (AEDPA), which sets strict deadlines and limits what a federal judge can review.
The One-Year Deadline Controls Everything
Nothing else in this process matters if you miss the filing window. You have one year to file, and the clock starts running from the latest of four possible dates:1Office of the Law Revision Counsel. 28 U.S. Code 2244 – Finality of Determination
- The day your conviction became final, meaning the day your last direct appeal was decided or, if you did not appeal, the day the appeal deadline expired.
- The day a government-created obstacle to filing was removed, such as the state releasing records it had been withholding.
- The date the U.S. Supreme Court recognizes a new constitutional right and makes it retroactive.
- The date you discovered, or reasonably should have discovered, the facts underlying your claim.
When the Clock Pauses
The one-year period pauses while a properly filed state post-conviction petition or appeal is pending in state court.1Office of the Law Revision Counsel. 28 U.S. Code 2244 – Finality of Determination The phrase “properly filed” matters. If a state court rejects your motion as untimely or procedurally defective, it may not count, and the federal clock may have been running the whole time.
Courts occasionally grant equitable tolling, but only if you can show you were diligently pursuing your rights the entire time and some extraordinary circumstance beyond your control blocked timely filing. Ordinary confusion about the law, lack of legal training, or simple mistakes do not qualify.
What You Can Actually Claim
A habeas petition is not a second appeal. You cannot use it to argue the jury reached the wrong result or that the evidence was weak. Every claim must identify a specific constitutional violation that made your conviction or sentence unlawful.2Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts
The most common ground is ineffective assistance of counsel. To win on that claim, you must show two things: your lawyer’s performance fell below a reasonable professional standard, and that failure actually affected the outcome. Judges will not second-guess routine strategic choices. The failure has to be serious enough that there is a reasonable probability the result would have been different without it.
Other frequent grounds include prosecutorial misconduct (such as the government knowingly using false testimony or withholding favorable evidence), a conviction under an unconstitutional statute, and newly discovered evidence of actual innocence. The actual-innocence bar is extremely high: the evidence must be so compelling that no reasonable juror would have found you guilty.
Exhaust State Remedies First
Federal courts will not hear a claim you have not first taken through the state system. You must have raised every constitutional argument through your state’s direct appeal and any available post-conviction procedures.2Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts If any state process is still available for a claim, you have not exhausted it.
Fair presentation counts. A vague fairness argument in state court does not preserve a specific Sixth Amendment claim for federal review. The federal constitutional issue has to have been clearly presented so the state courts had a real chance to rule on it.
If your federal petition mixes exhausted and unexhausted claims, the court will usually dismiss the whole thing. In limited circumstances, a judge may grant a stay and abeyance, pausing the federal case while you return to state court. To get one, you generally must show good cause for not exhausting earlier, that the unexhausted claims have potential merit, and that you are not stalling.3Legal Information Institute. Rhines v. Weber
The Form and What Goes on It
State prisoners use Form AO 241, the Petition for Relief From a Conviction or Sentence by a Person in State Custody.4U.S. Courts. Petition for Writ of Habeas Corpus Under 28 USC 2254 The clerk of any federal district court will provide it at no charge, and it is available on the U.S. Courts website. You must use this form or your local court’s equivalent.
The form asks for your full name (including the name under which you were convicted), your prison identification number, and the name and location of your facility. You must name the correct respondent, typically the warden or superintendent of the facility holding you.2Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts
You need a complete case history: the court that entered the judgment, the case number, the date of judgment, and the sentence imposed. You also must document every state court challenge you have already brought. List each direct appeal and post-conviction motion, the court where it was filed, the case number, the date of decision, and the outcome. Attach copies of the state court decisions if you have them.
For each ground of relief, identify the constitutional right you say was violated and explain the specific facts behind that claim. Naming the violation is not enough. Describe what happened, who was involved, and why it matters. Put every claim you have into this petition. Federal law severely restricts second petitions, so leaving anything out now usually means losing it forever.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
Where to File
If the state where you were convicted has only one federal judicial district, file there. If the state has two or more federal districts, you can file in the district where you are confined or in the district where the state court that convicted you sits.6Office of the Law Revision Counsel. 28 U.S. Code 2241 – Power to Grant Writ Either court has jurisdiction. Mail the signed original petition, along with the number of copies your local rules require, to the Clerk of the U.S. District Court for your chosen district. Local formatting rules vary; check them before you send anything.
The $5 Fee and How to Waive It
The filing fee is $5.7Office of the Law Revision Counsel. 28 USC Chapter 123 – Fees and Costs If you cannot afford it, submit Form AO 239, the Application to Proceed in District Court Without Prepaying Fees or Costs, along with a certified copy of your inmate trust account statement.8U.S. Courts. Application to Proceed in District Court Without Prepaying Fees or Costs The form asks you to detail your finances.
The Prison Mailbox Rule
If you file from prison, your petition is considered filed on the day you hand it to prison authorities for mailing, not the day the court receives it. Most facilities log outgoing legal mail, and that log entry can serve as proof of your filing date if it is ever disputed. Keep your own record of the date you gave the petition to staff.
What Happens After You File
A judge first screens the petition. The court checks whether you filed on time, whether the claims are the kind a federal court can hear, and whether you exhausted state remedies. Petitions can be dismissed at this stage if the deadline has passed, the claims are legally frivolous, or it is otherwise clear you are not entitled to relief.
If the petition survives screening, the judge orders the respondent to answer. The government’s answer must address each allegation and state whether any claim is barred by failure to exhaust, procedural default, or the statute of limitations. The respondent also provides relevant transcripts and copies of appellate briefs and opinions from your state case. You then get a chance to reply.
There is no automatic right to a lawyer in habeas proceedings. A judge can appoint counsel for an indigent petitioner at any stage, but appointment is mandatory only if the court orders an evidentiary hearing or if discovery is necessary and you qualify under federal law.9Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts For the initial petition and briefing, most petitioners are on their own.
If the judge finds a constitutional violation, the court usually issues a conditional writ, ordering the state to grant a new trial or new sentencing within a set period. If the state does not act in time, you are entitled to release. Outright discharge is rare.
Why the First Petition Has to Be Complete
Second petitions are extremely difficult to bring. A claim already raised in your first petition will be dismissed outright. A new claim will also be dismissed unless it relies on a new rule of constitutional law that the Supreme Court has made retroactive, or it rests on facts that could not have been discovered earlier through reasonable diligence and would establish actual innocence by clear and convincing evidence.5Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination You also need the court of appeals’ permission before you can even file a second petition in the district court. Treat your first petition as your only one, because for practical purposes it usually is.
If You Are Not a State Prisoner
This process applies to people challenging state convictions under 28 U.S.C. § 2254. If you are challenging a federal conviction, you file a motion under 28 U.S.C. § 2255 in the same federal court that sentenced you.10Office of the Law Revision Counsel. 28 U.S. Code 2255 – Federal Custody; Remedies on Motion Attacking Sentence People held in non-criminal custody, such as immigration detainees or those in pretrial detention, may file under 28 U.S.C. § 2241, which follows different procedural rules and does not carry the same AEDPA restrictions.6Office of the Law Revision Counsel. 28 U.S. Code 2241 – Power to Grant Writ If either of those describes your situation, check the specific rules for your type of petition.