Representing Clients NationwideCall Us Today(843) 620-1100

What Is Habeas Corpus? Plain-English Definition & Federal Rights

Get a Consultation

What is habeas corpus?

Habeas corpus is a court order directing whoever is holding a person to produce that person and justify the detention. It comes from English common law and is protected by the Suspension Clause, U.S. Const. art. I, §9, cl. 2. It tests the lawfulness of custody — not guilt or innocence — and today runs through 28 U.S.C. §§2241, 2254, and 2255.

Key takeaways on what habeas corpus is

  • The writ commands two things: produce the body, and state the legal cause of the detention. It is directed at the custodian — the warden, the jailer, the officer — not at the prisoner.
  • The Constitution protects the writ but never creates it. U.S. Const. art. I, §9, cl. 2 says only that “[t]he Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it.”
  • A habeas proceeding is a civil action about the legality of custody, not a retrial. The Supreme Court said so plainly in 1906: “The proceeding is in habeas corpus, and is a civil, and not a criminal, proceeding.”
  • Federal prisoners almost never file a habeas petition. Since 1948 they file a motion under 28 U.S.C. §2255 in the sentencing court instead. Whether your case is a §2255 case or a §2241 case is the first question that matters.
  • AEDPA changed the writ more than any statute since 1867. The Antiterrorism and Effective Death Penalty Act of 1996, Pub. L. No. 104-132, 110 Stat. 1214, imposed a one-year deadline, a gate on second motions, and a certificate requirement to appeal.
  • The privilege has been suspended four times in American history, and each suspension was geographically limited — the Civil War, nine South Carolina counties in 1871, two Philippine provinces in 1905, and Hawaii after Pearl Harbor.

What does habeas corpus actually mean?

Habeas corpus is a judicial order — a writ — that commands the person holding someone in custody to bring that person before the court and explain the legal basis for the detention. The Latin phrase is the operative language of the medieval English writ’s command to the jailer. Everything else about habeas follows from those two demands: produce the body, and justify holding it.

“Habeas corpus” was never a single writ. At common law it named a family of writs, and only one member of that family tests the legality of confinement. The Supreme Court cataloged them in United States v. Hayman, 342 U.S. 205 (1952), noting that in addition to the “great and efficacious writ,” habeas corpus ad subjiciendum, the common law knew writs of habeas corpus ad prosequendum, ad testificandum, and ad deliberandum — used simply to move a prisoner from one place to another so he could be prosecuted, testify, or be tried in the right jurisdiction. Federal courts still issue writs of habeas corpus ad testificandum and ad prosequendum routinely; they have nothing to do with challenging a conviction. Congress preserved that mechanical function in 28 U.S.C. §2241(c)(5), which extends the writ where “[i]t is necessary to bring him into court to testify or for trial.”

The writ that people mean when they say “habeas corpus” is the ad subjiciendum writ — the Great Writ. It emerged in English practice as the instrument by which a court could force the Crown to state a reason for imprisoning someone, and if the reason was insufficient, order release. That is still the core of it. When a federal judge grants relief on a habeas petition today, the judge is doing what a King’s Bench judge did in 1670: examining the return, finding no lawful cause for the restraint, and directing that the restraint end.

Is habeas corpus in the Constitution?

Yes — but not the way most people assume. The Constitution does not grant a right to habeas corpus, define the writ, or say who may file one. It contains a single prohibition. Article I, Section 9, Clause 2 — the Suspension Clause — provides in full:

“The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it.”

That is the entire constitutional text on the subject. Note where it sits: in Article I, among the limits on congressional power, not in Article III with the judicial power and not in the Bill of Rights. The Framers assumed the writ already existed as part of the inherited common law and legislated only against its withdrawal.

Two consequences follow, and both matter for anyone reasoning about a real case. First, the content of the writ — who can file, what claims are cognizable, what showing is required — comes from statute and case law, not from the constitutional text. Congress has repeatedly enlarged and restricted it. Second, because the Clause is a limit on suspension rather than a grant of jurisdiction, the recurring constitutional question is not “does habeas exist?” but “has Congress functionally suspended it?” That was precisely the question in Boumediene v. Bush, 553 U.S. 723 (2008), where the Court held that the Detainee Treatment Act procedures were “not an adequate and effective substitute for habeas corpus” and that the jurisdiction-stripping provision of the Military Commissions Act, codified at 28 U.S.C. §2241(e), “operates as an unconstitutional suspension of the writ.”

Boumediene also supplied the working definition of what a constitutionally adequate habeas proceeding must include: the prisoner is entitled to “a meaningful opportunity to demonstrate that he is being held pursuant to ‘the erroneous application or interpretation’ of relevant law,” and “the habeas court must have the power to order the conditional release of an individual unlawfully detained — though release need not be the exclusive remedy and is not the appropriate one in every case in which the writ is granted.” A court that can hear the claim but cannot order any remedy is not a habeas court.

One live oddity is worth knowing, because it confuses people who read the statute books: §2241(e)(1) is still printed in the United States Code. Boumediene held it unconstitutional as applied to the Guantanamo detainees; Congress never repealed the text. Reading the Code alone will mislead you about the law.

The Great Writ, statute by statute: 1789 to 2023

The single most useful thing to understand about habeas corpus is that its modern shape was set by five or six specific enactments and decisions, each of which either widened or narrowed it. This is the timeline that competitor pages leave out, and it is the reason the writ that exists today looks so little like the writ described in a civics textbook.

Table 1. Every major statute and decision that expanded or narrowed federal habeas corpus, 1789–2023 — with what each one actually changed.

YearInstrumentDirectionWhat it actually did
1789Judiciary Act of 1789, §14, 1 Stat. 82CreatesFirst federal habeas power. Authorized federal courts “to grant writs of habeas corpus for the purpose of an inquiry into the cause of commitment,” but extended the writ to prisoners in jail only where they were in custody “under or by colour of the authority of the United States,” committed for trial before a federal court, or needed to testify. State prisoners were outside it.
1863Habeas Corpus Suspension Act, Act of Mar. 3, 1863SuspendsCongressional authorization for the Civil War suspension, with a mechanism requiring lists of political prisoners and discharge if a grand jury adjourned without indicting.
1866Ex parte Milligan, 71 U.S. (4 Wall.) 2Limits suspensionHeld that suspension reaches only the privilege of the writ: “The suspension of the writ does not authorize the arrest of any one, but simply denies to one arrested the privilege of this writ in order to obtain his liberty.” Martial rule cannot displace civil courts that are open and functioning.
1867Habeas Corpus Act of 1867, ch. 28, §1, 14 Stat. 385ExpandsExtended federal habeas to “all cases where any person may be restrained of his or her liberty in violation of the constitution, or of any treaty or law of the United States.” This is the statute that brought state prisoners into federal court and created modern federal habeas review.
1948Judiciary Code recodification, ch. 646, 62 Stat. 967RedirectsRecodified the habeas power at §§2241 and 2243 and created 28 U.S.C. §2255 — a motion in the sentencing court — as the exclusive route for federal prisoners attacking a sentence. §2255(e), the saving clause, channels them there.
1952United States v. Hayman, 342 U.S. 205Interprets 1948Held that §2255’s “sole purpose was to minimize the difficulties encountered in habeas corpus hearings by affording the same rights in another and more convenient forum” — a change of forum, not of substance, as the statute then stood.
1996AEDPA, Pub. L. No. 104-132, 110 Stat. 1214 (§2255 amended at 110 Stat. 1220)Narrows sharplyAdded the one-year limitation period, §2255(f); the second-or-successive gate, §2255(h); the certificate of appealability requirement, §2253(c); and, for state prisoners, the deference standard of §2254(d).
2008Boumediene v. Bush, 553 U.S. 723ExpandsHeld the Suspension Clause has full effect at Guantanamo Bay and that §7 of the Military Commissions Act, 28 U.S.C. §2241(e), is an unconstitutional suspension because the DTA was not an adequate substitute.
2023Jones v. Hendrix, 599 U.S. 465Narrows sharplyHeld that §2255(e)’s saving clause does not let a federal prisoner use a §2241 petition to raise an intervening statutory-interpretation claim that §2255(h) would bar. Abrogated the pre-2023 circuit saving-clause tests.

Read down the “Direction” column and the shape of the last sixty years is obvious: the writ grew until 1996 and has been contracting since. That is the single most important fact about habeas corpus today, and it is the fact a dictionary definition cannot give you.

Applied Insight — Elizabeth Franklin-Best, Esq., Principal Attorney: When someone calls and says “we need to file a habeas,” the first thing we establish is which statute they are actually in — because the word “habeas” covers three completely different procedural regimes with three different deadlines, three different forums, and three different gatekeeping standards. A federal prisoner attacking a conviction is in §2255 and files in the sentencing court. A federal prisoner attacking how the Bureau of Prisons is computing time is in §2241 and files where he is confined. A state prisoner is in §2254 and has to have exhausted state remedies first. Getting that wrong at the outset is not a technicality — a motion filed in the wrong court under the wrong statute can burn a deadline that never reopens.

What does a writ of habeas corpus actually order?

A writ of habeas corpus orders the custodian to do two things: produce the prisoner and state the legal cause of the detention. It is addressed to the person with custody — a warden, a sheriff, a commanding officer — and it demands a formal answer, called a return, setting out the authority relied on to justify holding the prisoner.

What happens next depends entirely on the return. If the stated cause is lawful on its face and the facts are undisputed, the petition fails and the prisoner stays. If the cause is legally insufficient, the court can order release. Federal courts are directed by 28 U.S.C. §2243 to “dispose of the matter as law and justice require,” which is deliberately flexible language — and in practice release is rarely the immediate remedy in a conviction case.

That last point is where most explanations mislead people, so it is worth being blunt about. In a modern federal post-conviction case, “granting the writ” almost never means the prison doors open that afternoon. Under 28 U.S.C. §2255(b), when a court finds the judgment infirm it “shall vacate and set the judgment aside and shall discharge the prisoner or resentence him or grant a new trial or correct the sentence as may appear appropriate.” Three of those four outcomes leave the person in custody. A successful ineffective-assistance claim about plea advice typically produces a new plea proceeding. A successful sentencing claim typically produces a resentencing. Outright discharge happens, but it is the exception, not the norm.

Boumediene frames the constitutional floor: the habeas court “must have the power to order the conditional release of an individual unlawfully detained — though release need not be the exclusive remedy and is not the appropriate one in every case in which the writ is granted.” The power must exist. Its exercise is discretionary and remedial.

Habeas corpus is a civil action about custody — not a second trial

A habeas corpus proceeding is a civil action that tests the legality of a person’s detention. It is not an appeal, not a retrial, and not a forum for relitigating whether the jury got the facts right. The Supreme Court stated the classification directly in Fisher v. Baker, 203 U.S. 174 (1906): “The proceeding is in habeas corpus, and is a civil, and not a criminal, proceeding.”

The practical consequences of that classification are substantial and are the ones people are most often surprised by:

  • There is no constitutional right to appointed counsel. The Sixth Amendment right to counsel attaches to a criminal prosecution and through the first appeal as of right. A collateral proceeding is civil, so the appointment of counsel is discretionary. In a §2255 case the court “may appoint counsel” under §2255(g), and Rule 8(c), Rules Governing Section 2255 Proceedings, requires appointment if an evidentiary hearing is warranted — but not before. That is why so many first §2255 motions are filed pro se.
  • The remedy runs against the custodian. The respondent is the warden or the United States, not the prosecutor who tried the case.
  • The burden and the standard are different from trial. The movant carries the burden; there is no presumption of innocence in a collateral proceeding, because there is a valid final judgment sitting on the other side of the scale.
  • Guilt or innocence is usually not the question. Habeas tests whether the government has a lawful basis to hold you. That is why a person who is factually guilty can still win — an unconstitutional conviction is unlawful custody regardless of what happened — and why a person who insists on innocence can still lose. Innocence in federal collateral review usually functions as a gateway past a procedural bar rather than as a freestanding claim; that doctrine is explained in full on our page on what actual innocence gets you in federal court.

The modern statutory scheme: §2241, §2254, and §2255

Three statutes carry nearly all federal habeas practice, and which one applies is determined by who convicted you and what you are attacking — not by what you call your filing.

Table 2. Which federal habeas statute governs, by prisoner and by claim.

StatuteWho uses itWhat it attacksWhere it is filedThe page that covers it
28 U.S.C. §2241Federal prisoners and detaineesThe execution of a sentence — sentence computation, good-time and First Step Act credits, disciplinary sanctions, detention itselfThe district of confinement§2255 or §2241 after Jones v. Hendrix
28 U.S.C. §2254Prisoners in custody under a state judgmentA state conviction or sentence, on federal constitutional groundsFederal district court, after state remedies are exhaustedstate conviction or federal conviction — which statute governs
28 U.S.C. §2255Prisoners in custody under a federal judgmentThe federal conviction or sentence itselfThe court that imposed the sentencewhat a §2255 motion is, subsection by subsection

The custody line is jurisdictional across all three. Section 2241(c) provides that “[t]he writ of habeas corpus shall not extend to a prisoner unless” one of five conditions is met, the operative ones being custody “under or by color of the authority of the United States” or custody “in violation of the Constitution or laws or treaties of the United States.” Section 2255(a) opens with “[a] prisoner in custody under sentence of a court established by Act of Congress.” Section 2254(a) reaches “a person in custody pursuant to the judgment of a State court.” Someone who has completed the sentence entirely — no prison, no supervised release, no probation — is generally outside all three, and the remaining vehicle is the writ of coram nobis.

Section 2254 carries a further restriction that has no §2255 counterpart and that explains why state-prisoner habeas is so much harder to win. Under §2254(d), when a state court has already adjudicated a claim on the merits, a federal court may not grant relief unless the state decision “was contrary to, or involved an unreasonable application of, clearly established Federal law, as determined by the Supreme Court of the United States,” or rested on “an unreasonable determination of the facts.” Section 2254(e)(1) adds that state factual findings “shall be presumed to be correct,” rebuttable only “by clear and convincing evidence.” Federal prisoners under §2255 face no equivalent deference standard, because there is no prior state judgment to defer to.

Why federal prisoners file a §2255 motion instead of a habeas petition

In 1948 Congress rerouted federal prisoners out of habeas and into a motion filed in the sentencing court. The reason was administrative, not philosophical. Nearly all federal habeas petitions were being filed in the handful of districts that happened to contain large federal prisons, and those courts were adjudicating claims about trials held hundreds or thousands of miles away, without the records, the witnesses, or the judge who had presided.

Hayman is the Supreme Court’s account of that history and remains the case cited for it. The Court was emphatic that the change was procedural:

“Nowhere in the history of Section 2255 do we find any purpose to impinge upon prisoners’ rights of collateral attack upon their convictions. On the contrary, the sole purpose was to minimize the difficulties encountered in habeas corpus hearings by affording the same rights in another and more convenient forum.”

Congress built the redirection into the statute itself. Section 2255(e) — the saving clause — provides that a habeas application by a prisoner “who is authorized to apply for relief by motion pursuant to this section, shall not be entertained if it appears that the applicant has failed to apply for relief, by motion, to the court which sentenced him, or that such court has denied him relief, unless it also appears that the remedy by motion is inadequate or ineffective to test the legality of his detention.”

That clause is the hinge of federal post-conviction practice. It closes the habeas door for federal prisoners and leaves it ajar only where the §2255 remedy is inadequate or ineffective. For decades several circuits read the opening broadly, and a federal prisoner whose claim was blocked by §2255(h) could sometimes get into §2241 anyway. That is no longer the law, and the correction was abrupt — which is why so much published material about habeas corpus is now simply wrong.

What AEDPA did to the writ in 1996

The Antiterrorism and Effective Death Penalty Act of 1996, Pub. L. No. 104-132, 110 Stat. 1214, enacted April 24, 1996, restricted federal post-conviction review more than any statute since the writ was extended to state prisoners in 1867. Section 2255 was amended at 110 Stat. 1220. Four changes matter most:

  1. A one-year deadline. Section 2255(f) imposes “a 1-year period of limitation,” running “from the latest of” four trigger dates: finality of the judgment; removal of a government-created impediment; the date the Supreme Court initially recognized a newly recognized retroactive right; or the date the supporting facts “could have been discovered through the exercise of due diligence.” Different claims in the same motion can run from different dates, and the latest applicable date controls. The mechanics of computing that date belong to our §2255 deadline calculator.
  2. A gate on second motions. Section 2255(h) requires that a second or successive motion “be certified as provided in section 2244 by a panel of the appropriate court of appeals” to contain either newly discovered evidence establishing by clear and convincing evidence that “no reasonable factfinder would have found the movant guilty,” or “a new rule of constitutional law, made retroactive to cases on collateral review by the Supreme Court, that was previously unavailable.” Those are the only two openings.
  3. A certificate to appeal. A movant denied relief cannot appeal without a certificate of appealability under §2253(c), which issues “only if the applicant has made a substantial showing of the denial of a constitutional right.”
  4. Deference to state courts. Section 2254(d) added the relitigation bar described above, which applies to state prisoners only.

One 2026 development, correctly stated. In Bowe v. United States, 607 U.S. 13 (2026), the Supreme Court held that the certiorari bar in §2244(b)(3)(E) does not apply to federal prisoners, so the Court has jurisdiction to review a court of appeals’ denial of authorization to file a second or successive §2255 motion; it also held that §2244(b)(1)’s old-claim bar “applies only to state prisoners.” Bowe did not lift the §2255(h) gate and did not loosen the second-or-successive restrictions — a point a Seventh Circuit judge had to make explicitly, in chambers, in Upchurch v. United States, No. 26-1114 (7th Cir. Aug. 4, 2026), and that a movant got wrong in United States v. Handlon, No. 2:13-cr-00145 (M.D. Fla. Aug. 20, 2026). What changed is who can review the denial, not what the movant must show. The full analysis is on our page on filing a second or successive §2255 motion, and the statute-by-statute account of the 1996 amendments is on our page on what AEDPA changed.

Applied Insight — Christopher Zoukis, JD, MBA, Managing Director: The single most common misunderstanding I encounter from inside a federal facility is the belief that “habeas corpus” is a general-purpose escape hatch that stays open indefinitely because it is in the Constitution. It is not. For a federal prisoner attacking a conviction, the clock under §2255(f) is one year, it usually starts when the judgment becomes final, and nothing about the Suspension Clause pauses it. The most valuable thing a family can do in the first weeks after an appeal ends is not to research the history of the writ — it is to figure out the exact date the one-year period began. The legal analysis and any filing are handled by the firm’s attorneys, but that date is what everything else is built on.

Jones v. Hendrix and the saving clause today

Jones v. Hendrix, 599 U.S. 465 (2023), is the most consequential habeas decision of the last decade for federal prisoners. The holding, as the Court framed it:

“§ 2255(e)’s saving clause does not permit a prisoner asserting an intervening change in statutory interpretation to circumvent [the] restrictions on second or successive § 2255 motions by filing a § 2241 petition.”

The reasoning turns on what “inadequate or ineffective” modifies. The Court held that “the saving clause is concerned with the adequacy or effectiveness of the remedial vehicle (‘the remedy by motion’), not any court’s asserted errors of law.” A prisoner who cannot satisfy §2255(h) has not shown that the §2255 procedure failed him; he has shown that the procedure produced an answer he believes is wrong. Those are different things, and only the first opens the saving clause.

The Court did preserve a narrow channel. The saving clause “preserves recourse to §2241 in cases where unusual circumstances make it impossible or impracticable to seek relief in the sentencing court, as well as for challenges to detention other than collateral attacks on a sentence.” In practice that covers the dissolution of a sentencing court and — far more commonly — claims about the execution of a sentence: sentence computation, good-conduct and First Step Act time credits, and prison disciplinary sanctions. Those §2241 petitions were never affected by Jones and remain available.

Jones also matters for how you should read older material. Before 2023, several circuits had built multi-part saving-clause tests permitting a §2241 petition where an intervening statutory decision showed the petitioner had been convicted of conduct that was not a crime. Those tests are abrogated. Guidance written before June 22, 2023 — including a great deal that is still online — describes them as live law. It is not. Whether a §2241 route remains open in a given case is addressed on our page on choosing between §2255 and §2241 after Jones v. Hendrix.

There is one more consequence worth naming, because it sharpens the Hayman premise. Hayman described §2255 as affording “the same rights in another and more convenient forum.” AEDPA’s §2255(h) means that is no longer descriptively true for a prisoner filing a second motion, and Jones declined to treat the resulting gap as something the saving clause repairs. The 1948 equivalence between §2255 and habeas was real when Hayman was decided. It has not survived 1996 intact.

Has habeas corpus ever been suspended in the United States?

Yes — four times, and every one of them was geographically limited. No suspension has ever applied to the whole country.

  1. The Civil War (1861–1866). President Lincoln suspended the privilege beginning in 1861; Congress authorized suspension by the Act of March 3, 1863, which also required the government to furnish lists of political prisoners and provided that a person not indicted by a grand jury that had met and adjourned was entitled to discharge. Ex parte Milligan, 71 U.S. (4 Wall.) 2 (1866), construed that Act and drew the line that still governs: “The suspension of the writ does not authorize the arrest of any one, but simply denies to one arrested the privilege of this writ in order to obtain his liberty.” Suspending the privilege withdraws the remedy; it does not confer new power to arrest, and it does not authorize trying civilians before military commissions where the civil courts are open and functioning.
  2. Nine South Carolina counties (1871). The Ku Klux Klan Act of 1871, ch. 22, 17 Stat. 13, authorized the President to suspend the privilege in districts overtaken by Klan violence, and President Grant invoked that authority in nine South Carolina counties in the fall of 1871 so that federal prosecutions could proceed. This is the least-remembered of the four.
  3. Two Philippine provinces (1905). The Philippine Bill of 1902, ch. 1369, 32 Stat. 691, 692, carried its own suspension clause providing “[t]hat the privilege of the writ of habeas corpus shall not be suspended, unless when, in cases of rebellion, insurrection, or invasion, the public safety may require it,” and permitting suspension “by the President, or by the governor, with the approval of the Philippine Commission.” The Commission authorized the civil governor to suspend the writ in Cavite and Batangas on January 31, 1905, on findings of open insurrection. Governor General Wright revoked the suspension on October 19, 1905, and the Supreme Court in Fisher v. Baker, 203 U.S. 174 (1906), treated the revocation as mooting the challenge to it.
  4. Hawaii (1941–1944). The Territorial Governor suspended the writ and declared martial law hours after the attack on Pearl Harbor, acting under §67 of the Hawaiian Organic Act. In Duncan v. Kahanamoku, 327 U.S. 304 (1946), the Supreme Court held that the Organic Act’s authorization of “martial law” “was not intended to authorize the supplanting of courts by military tribunals,” and that “civilians in Hawaii are entitled to the constitutional guarantee of a fair trial to the same extent as those who live in any other part of our country.” Notably, the Court expressly declined to pass on the validity of the suspension order itself, deciding the case on the narrower ground.

Two points get lost in popular retellings. First, suspension is about the privilege — the availability of the remedy — not about the underlying legality of a detention. Milligan is the authority for that distinction. Second, the Suspension Clause is a limit on Congress, and every American suspension has rested on a congressional authorization, whether granted in advance or ratified after the fact.

Habeas corpus in immigration detention

People held in civil immigration detention file habeas petitions under 28 U.S.C. §2241, not under §2254 or §2255. The statutory hook is §2241(c)(3), which extends the writ to a person “in custody in violation of the Constitution or laws or treaties of the United States.” Immigration detention is civil custody imposed by executive officers rather than by a criminal judgment, so there is no sentencing court to file in and no state judgment to exhaust — the petition goes to the district court with jurisdiction over the custodian.

This is why habeas corpus surfaces in immigration news coverage far more often than in criminal post-conviction coverage, and why the two contexts get conflated. They are governed by the same statute but raise completely different questions. An immigration habeas petition typically asks whether continued detention is authorized at all or has become unreasonably prolonged. A §2255 motion asks whether a final criminal judgment is constitutionally infirm. Neither analysis transfers to the other.

The overlap that does matter for our clients is narrower: a noncitizen with a federal conviction may have both a criminal collateral attack and an immigration detention issue running at the same time, on different clocks, in different courts. Immigration consequences of a plea can also supply the substance of an ineffective-assistance claim under §2255 — a claim about advice, litigated in the sentencing court, which is a different proceeding from a §2241 petition about the detention itself.

What “habeas corpus” does not mean

Because the phrase carries so much weight, it gets used loosely — including by people who should know better. Four misuses are worth correcting, because each one leads someone to file the wrong thing.

“Filing a habeas” is not an appeal. A direct appeal reviews the trial record for errors preserved in that record and is decided by the court of appeals. A collateral attack is a new civil case, usually in the district court, and typically raises claims that depend on facts outside the record — what counsel knew, what the government withheld. Some claims belong in one and are forfeited in the other. That allocation is covered on our page on choosing between a direct appeal and a §2255 motion.

Habeas is not available to someone who is out. All three statutes require custody. Supervised release and probation count; a completed sentence does not. Someone attacking a conviction after the sentence is fully discharged is looking at coram nobis, not habeas.

Winning does not mean the charges disappear. Vacatur returns the case to where it was before the defect. The government usually may retry, re-plead, or resentence.

A “writ of habeas corpus” is not a form you file. The writ is what the court issues to the custodian. What you file is a petition or, for a federal prisoner, a motion — and the mechanics differ meaningfully by vehicle. Those are laid out on our pages on the petition for writ of habeas corpus and on how to file a §2255 motion.

If you are trying to get someone out of federal custody, start here

Most readers of this page are students, journalists, or people who ran into the phrase in the news. A minority arrive because someone they love is in a federal prison and a lawyer or a cellmate used the word “habeas.” If that is you, here is the routing, in order.

  1. Identify the sovereign. Federal conviction, federal judge, federal prison — §2255. State conviction — §2254, and a different set of exhaustion rules applies first. If you do not know, the judgment document says so.
  2. Identify what you are attacking. The conviction or sentence itself is §2255. How the Bureau of Prisons is administering the sentence — release date computation, First Step Act credits, RDAP, disciplinary sanctions — is §2241, filed where the person is confined.
  3. Find the deadline before you find the argument. Under §2255(f) the period is one year from the latest of four dates. Start with our §2255 deadline calculator and the inventory of every clock running after a federal conviction at post-conviction deadlines.
  4. Identify the claim honestly. The most common successful ground is ineffective assistance of counsel, which the Supreme Court has held may be brought under §2255 whether or not it could have been raised on direct appeal. The range of viable claims is set out on our page on grounds for a §2255 motion.
  5. Get the record. Transcripts, the plea agreement, the presentence report, and trial counsel’s file. A collateral motion is built out of documents, and obtaining them takes longer than people expect.

Two further pages are worth reading before deciding anything. Our page on what post-conviction relief actually changes explains the realistic range of outcomes — vacatur, resentencing, a new trial — and our page on what happens after filing a §2255 sets out the sequence and the timeline, which is longer than most families expect.

If you want to talk to a lawyer about whether a case is a habeas case at all, that triage question is the subject of our page on finding a habeas corpus attorney, and the broader question of who handles post-conviction work is covered by our post conviction attorney page.

Why work with Elizabeth Franklin-Best, P.C.

Elizabeth Franklin-Best, P.C. is a boutique federal criminal defense and appellate firm founded in 2019, running a national federal practice on an intentionally small caseload. The firm handles federal criminal appeals, §2255 motions, §2241 petitions, sentence reductions, compassionate release, and clemency, with offices in Columbia and Mount Pleasant, South Carolina, serving clients nationwide.

Elizabeth Franklin-Best is admitted to the U.S. Supreme Court and twelve of the thirteen U.S. Courts of Appeals — every regional circuit (1st–11th) plus the D.C. Circuit — and has been admitted pro hac vice in federal courts from Montana to Florida. Over more than 20 years she has handled more than 330 federal proceedings, over 100 of them appeals, with sixteen published decisions as counsel of record. She is recognized by Best Lawyers in America 2026 for Appellate Practice and by Chambers USA 2026 for white-collar litigation, was named South Carolina Public Defender of the Year in 2010, and is the author of Reversing Your Criminal Conviction: Develop Your Winning Strategy (2023).

Christopher Zoukis, JD, MBA, the firm’s Managing Director, leads its federal prison consulting work — Bureau of Prisons designation, sentence computation, First Step Act time credits, RDAP, and reentry planning. He is the author of the Federal Prison Handbook, Directory of Federal Prisons, Prison Education Guide, and College for Convicts, and serves as Chairman of the Board of the Human Rights Defense Center. He brings a perspective few federal defense professionals can: he served roughly a decade in the federal Bureau of Prisons, wrote award-winning journalism and books from inside, and then earned his J.D. at UC Davis School of Law. Legal strategy and all filings are handled by the firm’s attorneys.

Collateral review is unforgiving of missed deadlines and unforgiving of claims raised in the wrong vehicle. If you are weighing a federal post-conviction filing, our page on the work a federal 2255 motion lawyer actually does explains what an engagement involves.

Talk to a federal post-conviction lawyer

If you or a family member is in federal custody and you are trying to determine whether there is a viable collateral challenge — and how much time is left to bring it — you can request a consultation for federal post-conviction review directly.

Schedule a consultation · Phone: (843) 620-1100 · Offices: Columbia and Mount Pleasant, South Carolina — serving clients in federal courts nationwide.

Bring the judgment, the docket sheet, and the date the appeal concluded if there was one. Those three documents answer most of the threshold questions in a first conversation.

Frequently Asked Questions About the Meaning of Habeas Corpus

What does habeas corpus mean?

Habeas corpus means a court order requiring whoever holds a person in custody to produce that person and justify the detention. The Latin phrase is the operative command of the medieval English writ addressed to a jailer. In American law it names a civil proceeding testing whether custody is lawful, protected against suspension by U.S. Const. art. I, §9, cl. 2 and implemented today through 28 U.S.C. §§2241, 2254, and 2255.

What is a writ of habeas corpus?

A writ of habeas corpus is the order the court issues to a custodian, not the paper a prisoner files. It directs the warden, sheriff, or officer holding someone to bring that person before the court and file a return stating the legal authority for the detention. If the return shows no lawful cause, the court may order release or another remedy — 28 U.S.C. §2243 directs the court to “dispose of the matter as law and justice require.”

What does habeas corpus literally translate to?

The Latin phrase is the operative command of the common-law writ, directing a custodian to have the body of the detained person before the court. The full name of the writ that tests confinement is habeas corpus ad subjiciendum — the “great and efficacious writ,” as the Supreme Court described it in United States v. Hayman, 342 U.S. 205 (1952). Other common-law habeas writs, such as ad testificandum, simply moved prisoners between proceedings.

Is habeas corpus in the Constitution?

Habeas corpus appears in the Constitution once, in a clause forbidding its suspension. Article I, Section 9, Clause 2 provides that “[t]he Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it.” The Constitution does not create the writ, define it, or say who may use it. Its content comes from statute — principally 28 U.S.C. §§2241, 2254, and 2255 — and from case law.

Has habeas corpus ever been suspended in the United States?

Habeas corpus has been suspended four times in American history, always in limited geographic areas. Those were the Civil War, beginning in 1861 and authorized by Congress in the Act of March 3, 1863; nine South Carolina counties in 1871 under the Ku Klux Klan Act; two Philippine provinces in 1905; and Hawaii from 1941 to 1944 after Pearl Harbor. No suspension has ever applied nationwide. Ex parte Milligan, 71 U.S. 2 (1866), held that suspension withdraws the remedy without authorizing arrest.

Who can file for habeas corpus?

Anyone in custody may seek habeas relief, but the statute depends on who is holding them. Federal prisoners attacking a conviction file a §2255 motion in the sentencing court; federal prisoners attacking how a sentence is being executed file a §2241 petition where they are confined; state prisoners file under §2254 after exhausting state remedies. Immigration detainees file under §2241. Someone whose sentence is fully completed is generally outside all three.

Is a 2255 motion habeas corpus?

A §2255 motion is not technically a habeas petition, but it is the habeas remedy for federal prisoners. Congress created it in 1948 to move federal collateral attacks from the district of confinement to the sentencing court. United States v. Hayman, 342 U.S. 205 (1952), described its “sole purpose” as “afford[ing] the same rights in another and more convenient forum.” Section 2255(e) bars a habeas petition unless the §2255 remedy is “inadequate or ineffective.”

What is the difference between habeas corpus and an appeal?

An appeal reviews the trial record for preserved legal error and is decided by the court of appeals; habeas is a new civil case testing whether custody is lawful. Appeals come first and have short deadlines measured in days. Collateral review comes after, has a one-year deadline under §2255(f), and is the proper vehicle for claims resting on facts outside the record — such as ineffective assistance of counsel or suppressed evidence.

Reviewed for legal accuracy by Elizabeth Franklin-Best, Esq., Principal Attorney·September 2026

Contact Our Experienced Federal Criminal Defense Lawyer for Legal Help

Choosing the right federal defense team can make a difficult situation feel more manageable. At Elizabeth Franklin-Best P.C., we take the time to listen, answer questions, and provide the clarity people need to make informed choices about their future.

Schedule an Initial Consultation

This field is required.
This field is required.
This field is required.
This field is required.
This field is required.
The 8-digit BOP register number, if you have it.
This field is required.
Please include the full name of the person involved, the state and federal court (if known), the charge or stage of the case, and a brief description of the situation. If you are contacting us about a family member, tell us their name and where their case is located.
This field is required.
Scroll to Top