To file a habeas corpus petition, you submit a written petition to the correct federal district court, on the court’s standard form, within one year of your conviction becoming final, after you have raised your constitutional claims through every available state court remedy. State prisoners file under 28 U.S.C. § 2254 in the district where they are confined. Federal prisoners file a motion under 28 U.S.C. § 2255 in the court that sentenced them. Both paths carry the same one-year deadline and the same strict limits on what a federal judge is allowed to do with your claims once they arrive.
The rest of this article walks through the rules in the order they will affect your filing.
Grounds That Actually Support a Petition
A habeas petition is not a second appeal. It challenges whether a constitutional violation made your confinement unlawful. Not every trial mistake qualifies, and filing on weak grounds burns a petition you may only get one shot at.
The claims federal courts see most often are these:
- Ineffective assistance of counsel under the Sixth Amendment. You must show both that your attorney’s performance fell below an objective standard of reasonableness and a reasonable probability that competent representation would have changed the outcome. Most of these claims fail on the second prong.1Justia. Strickland v. Washington, 466 U.S. 668
- Prosecutorial suppression of favorable evidence. When the government withholds material evidence that could have proved innocence or reduced the sentence, the conviction violates due process regardless of the prosecutor’s intent.2Justia. Brady v. Maryland, 373 U.S. 83
- Coerced or involuntary confessions. Courts weigh how long you were held before seeing a judge, whether you were advised of your rights, and whether counsel was available during questioning.
- Actual innocence, supported by new, reliable evidence that would leave no reasonable juror convinced of guilt beyond a reasonable doubt. Courts treat this as an extraordinary exception, not a routine claim.3Justia. Schlup v. Delo, 513 U.S. 298
The underlying authority is broad: a federal court may issue the writ for any prisoner held “in custody in violation of the Constitution or laws or treaties of the United States.”4Office of the Law Revision Counsel. 28 USC 2241 – Power to Grant Writ Broad authority, narrow success rate. Pick your strongest constitutional claims and document each one.
Exhaust State Remedies Before You Touch Federal Court
If your conviction came from a state court, a federal judge will not consider your petition until you have raised your constitutional claims through every available step in the state system: direct appeal and any state post-conviction proceedings.5Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts The rule exists to give state courts the first chance to fix constitutional errors in their own cases.
Two exceptions exist: when the state has no available corrective process, or when the process that exists cannot effectively protect your rights. Both are rarely granted. Filing federal before finishing state is the fastest way to have your petition dismissed.
The One-Year Deadline
Under the Antiterrorism and Effective Death Penalty Act, you have one year to file. The clock starts on the latest of four dates:
- The date your conviction became final, either when direct appeal ended or when the time to seek further review expired.
- The date an unconstitutional government-created barrier to filing was removed.
- The date the Supreme Court recognized a new constitutional right and made it retroactive to cases on collateral review.
- The date you could have discovered the factual basis for your claim through reasonable diligence.6Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
For most people, the first trigger controls. If your direct appeal was affirmed and you did not seek Supreme Court review, the year starts when the time to file for certiorari expired. The clock runs while you sit in prison, and many petitioners do not realize it.
A properly filed state post-conviction application pauses the federal clock while it is pending. When the state proceeding ends, the federal clock resumes where it stopped rather than restarting. Equitable tolling exists for extraordinary circumstances, but you must show both that you pursued your rights diligently and that something beyond your control prevented timely filing.7Justia. Holland v. Florida, 560 U.S. 631 Ordinary attorney negligence generally does not qualify.
Where to File and Which Statute Applies
State prisoners file under 28 U.S.C. § 2254 in the federal district court for the district where they are held. The petition names the respondent, usually the warden of the facility.5Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts
Federal prisoners use a different route. You challenge your sentence through a motion under 28 U.S.C. § 2255, filed in the same court that sentenced you rather than the court where you are confined.8Office of the Law Revision Counsel. 28 USC 2255 – Federal Custody; Remedies on Motion Attacking Sentence The Section 2255 motion is treated as part of your original criminal case. The grounds are broader than under Section 2254: you can argue that your sentence violated the Constitution or federal law, that the sentencing court lacked jurisdiction, that the sentence exceeded the legal maximum, or that the conviction is otherwise open to collateral attack. If successful, the court can vacate the conviction, resentence you, or order a new trial. The one-year deadline and the successive-petition rules apply the same way.
Traditional habeas under Section 2241 remains available to federal prisoners only when Section 2255 is “inadequate or ineffective” to test the legality of detention. That is a narrow exception, mostly for unusual jurisdictional situations.
What Goes Into the Petition
Use the standardized form published by the U.S. Courts.9United States Courts. Petition for Writ of Habeas Corpus Under 28 USC 2254 The form requires:
- A detailed statement of facts supporting each constitutional claim.
- The specific rights you say were violated.
- The evidence backing each assertion.
- The name of the respondent.
- The date your detention began and the facility where you are held.
- A clear timeline of every state court proceeding related to your conviction, showing that you exhausted state remedies.
Gather your supporting documents before you write. You will need trial transcripts, appellate opinions, and records from any state post-conviction proceedings. Transcripts alone can cost several dollars per page, and a full transcript for a complex trial can run into hundreds or thousands of dollars. Order early.
Most federal courts accept electronic filing, and paper filing remains available for incarcerated petitioners. After you file, the clerk serves a copy on the respondent and the state attorney general.
The Filing Fee and Proceeding In Forma Pauperis
The federal filing fee for a habeas petition is $5.10Office of the Law Revision Counsel. 28 USC 1914 – District Court; Filing and Miscellaneous Fees If you cannot pay it, apply to proceed in forma pauperis by submitting an affidavit of inability to pay along with a certified copy of your prison trust fund account statement covering the previous six months. Courts can still require a partial payment based on your account balance, and they will dismiss a case where the poverty claim is untrue or the petition is frivolous.11Office of the Law Revision Counsel. 28 USC 1915 – Proceedings In Forma Pauperis
If you have already had three or more federal cases dismissed as frivolous, the three-strikes rule blocks further in forma pauperis filings unless you can show imminent danger of serious physical injury.
What Happens After You File
A judge conducts a preliminary review. If the petition on its face shows no entitlement to relief, the judge dismisses it without requiring the government to respond.12United States Courts. Rules Governing Section 2254 Cases – Rule 4 Preliminary Review Many petitions end here. If yours survives, the judge orders the respondent to file an answer within a set time.
AEDPA sharply limits what the federal court can do even on the merits. Relief is available only if 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.” State court factual findings are presumed correct, and you carry the burden of rebutting that presumption with clear and convincing evidence.5Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts
The practical effect: the question is not whether the state court was wrong but whether it was unreasonably wrong. A federal judge who personally disagrees with the state ruling must still deny the petition if reasonable jurists could have reached the state court’s conclusion. This is why most petitions lose on the merits when they lose on the merits at all.
Possible outcomes if you win include an order granting the writ (usually with a window for the state to retry you rather than an unconditional release), an order for a new trial, or an evidentiary hearing where the judge takes testimony before deciding. Most petitions are denied, either because the state proceedings met constitutional requirements, because any errors were harmless, or because procedural barriers like a missed deadline or failure to exhaust prevent review of the merits.
If Your Petition Is Denied
You cannot appeal a denied habeas petition the way you appeal a trial verdict. You first need a certificate of appealability, which requires “a substantial showing of the denial of a constitutional right” and must identify the specific issues that meet that standard.13Office of the Law Revision Counsel. 28 USC 2253 – Appeal Without the certificate, the court of appeals will not hear your case.
Filing a second or successive petition is harder still. Before a district court can consider one, you must get authorization from a three-judge panel of the court of appeals. The panel decides within 30 days, and its decision is final with no further appeal. Authorization requires one of two showings:6Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination
- The claim relies on a new rule of constitutional law the Supreme Court has made retroactive to cases on collateral review.
- The factual basis could not have been discovered earlier through due diligence, and the new facts would establish by clear and convincing evidence that no reasonable factfinder would have found you guilty.
Any claim already raised in a prior petition is dismissed automatically. Treat your first petition as your best and likely only chance to raise every viable claim you have.