The answer depends on why you're in custody. In the United States, the government must pay for a lawyer if you're facing criminal charges that could put you in prison and you can't afford one—that's the core of the Sixth Amendment right to counsel, implemented through public defender systems and, in federal cases, the Criminal Justice Act at 18 U.S.C. § 3006A. But if "custody" means immigration detention, juvenile dependency, a civil commitment hearing, or a probation matter, the coverage rules change sharply, and in many situations no government-funded lawyer is guaranteed at all.

That distinction matters because people often say "custody" when they mean very different legal statuses. A person in a county jail awaiting trial on a felony, a migrant held in an immigration detention center, a parent in a dependency proceeding, and a juvenile in secure placement all sit in custody of some kind—yet the constitutional and statutory right to appointed counsel applies unevenly across those categories. Below, I'll walk through each context, the eligibility tests, what "covered" actually pays for, and the situations where you may need to hire counsel yourself.

The Constitutional Baseline: Criminal Cases and Indigency

The starting point is the Sixth Amendment, which guarantees the assistance of counsel in criminal prosecutions. In Gideon v. Wainwright (1963), the Supreme Court held that states must provide counsel to indigent defendants in felony cases. Later decisions extended the right to misdemeanor cases where imprisonment is actually imposed and to certain juvenile delinquency proceedings. The practical result: if you're charged with a crime and face jail or prison time, the government—state or federal—pays for your lawyer if you can't afford one.

The federal statute spells out the mechanism. Under 18 U.S.C. § 3006A, each federal district court operates a plan for furnishing representation to any person "financially unable to obtain adequate representation." Representation must be provided for people charged with a felony or Class A misdemeanor, juveniles alleged to have committed delinquency acts, people charged with probation violations, those under arrest when representation is required by law, and several other categories including material witnesses in custody and defendants entitled to counsel under the Sixth Amendment. For Class B or C misdemeanors and certain post-conviction petitions, counsel may be provided when the court determines the interests of justice require it.

Two features of the statute are easy to miss. First, coverage isn't limited to the lawyer's time: the plan includes "investigative, expert, and other services necessary for adequate representation," which is how defense teams pay for forensic experts, interpreters, and investigators in serious cases. Second, the law contemplates a mix of private attorneys appointed to cases, salaried public defender organizations, and bar association or legal aid panels—so the delivery model varies by district even though the entitlement is uniform.

How Indigency Is Determined

"Financially unable" is not a single national threshold. Courts use a combination of income, assets, expenses, and family obligations, often guided by local plans and sometimes by a formal affidavit asking about wages, bank balances, property, and dependents. Some jurisdictions use a presumptive eligibility line tied to the federal poverty guidelines; others leave it to a judge's discretion. The practical consequence is that two people with similar incomes in different states can get different answers—an inconsistency that's real, not a rumor.

If the court finds you ineligible, you can typically reapply if your circumstances change, and you can ask the court to review the denial. Being preliminarily deemed able to hire a lawyer doesn't waive your right to counsel; it just moves the cost to you unless you successfully challenge the finding.

What "Covered" Does and Doesn't Mean

Even when the government pays, the scope is defined by the case. Appointed counsel represents you through trial and, where the plan provides, on appeal. In federal cases, the plan supplements representation on appeal, and counsel can be appointed for post-conviction proceedings when the interests of justice require it. But the entitlement attaches to the criminal case—not to every legal problem that touches your life while you're in custody.

Immigration Detention: Custody Without a Guaranteed Lawyer

This is where the question gets the most confused, and where the honest answer is often "no." In the United States, immigration removal proceedings are civil, not criminal, so the Sixth Amendment right to appointed counsel doesn't apply. People in immigration detention generally must hire their own lawyer or find free representation through a nonprofit, a law school clinic, or a volunteer program. The government isn't obligated to provide counsel at its expense.

That's not a uniquely American arrangement. Comparative research from the Law Library of Congress on the right to counsel for detained migrants found that in most countries, it's up to the migrant or asylum seeker to hire counsel; governments generally don't have an obligation to provide legal services to someone who entered without a valid visa or faces deportation. The same survey identified the United Kingdom as apparently the only country where the government's legal aid agency provides counsel free of charge to all migrants in detention. France allows those who can't afford a lawyer to request financial assistance, and in some countries government-paid legal assistance depends on the specific circumstances—for example, unaccompanied minors or vulnerable applicants. Legal assistance in immigration detention may also come through state-funded legal aid programs, NGOs, or community legal centers rather than as an individual entitlement.

For the U.S. specifically, reform proposals exist but are not law. A bill introduced in the Senate in the 119th Congress, S. 5324, would entitle any individual in removal, exclusion, deportation, bond, or expedited removal proceedings who is financially unable to obtain representation to legal representation at government expense, including in related matters before U.S. Citizenship and Immigration Services or state and Article III courts. As of the reference date, that text is a proposal, not an operative entitlement—so detained migrants should treat the current rule as "no guaranteed government lawyer," while noting that the policy could change.

The practical upshot for someone in immigration custody: the government covers detention costs, but not the cost of counsel as a matter of right. Free or low-cost representation exists through nonprofit legal service providers and pro bono programs, but availability varies enormously by facility and region, and demand often exceeds capacity.

Juvenile Delinquency and Status Offenses

Juvenile court sits at the intersection of criminal and civil labeling, and the coverage rules reflect that hybrid nature. In delinquency proceedings—where a minor is accused of conduct that would be a crime if committed by an adult—the right to counsel attaches, and the federal Criminal Justice Act expressly includes juveniles alleged to have committed acts of juvenile delinquency. Most states provide appointed counsel for indigent juveniles in delinquency cases, though the timing and waiver rules differ. Some states allow a juvenile to waive counsel under certain conditions; others require counsel in specified serious cases.

Status offenses—truancy, running away, curfew violations—are different. These aren't crimes, and the right to appointed counsel is weaker or absent depending on state law. If a juvenile is in custody or secure placement because of a status offense, government-funded counsel is not guaranteed, though many jurisdictions provide it as a matter of policy or through public defender offices that handle juvenile matters broadly.

For parents, the calculus is separate. A parent facing a dependency or neglect proceeding—where the state seeks to remove a child from the home—may have a statutory right to appointed counsel in many states, but that's a state-by-state patchwork, not a constitutional guarantee. Some states appoint counsel for indigent parents as a matter of right; others do so case by case or only when termination of parental rights is at stake.

Mental Health and Civil Commitment Custody

Civil commitment for mental health treatment is custody in the literal sense—a person may be held involuntarily—but it's not a criminal prosecution. The Supreme Court has recognized a due process right to counsel in some civil commitment contexts, and many states provide appointed counsel at commitment hearings. Federal law lists "subject to a mental condition hearing under chapter 313" among the categories eligible for representation under § 3006A when the person is financially unable, which covers federal civil commitment proceedings for people in federal custody.

State practice varies. Some states guarantee counsel for anyone facing involuntary commitment; others provide it only when the person requests it or when the hearing could result in long-term detention. If you or a family member are facing a commitment hearing, the safest move is to ask the court about appointed counsel before the hearing rather than assuming either way.

Probation, Parole, and Supervised Release

These are custody-adjacent proceedings, and the coverage rules are narrower than for trial. The federal statute expressly includes people charged with probation violations, people charged with supervised release violations or facing modification, reduction, or enlargement of release conditions, and people facing revocation of a term of supervised release. That means in federal cases, if you're accused of violating probation or supervised release and you can't afford a lawyer, representation should be provided.

State practice is more varied. Many states provide appointed counsel at revocation hearings when the stakes include incarceration; others leave it to the discretion of the hearing officer or require a request. Because revocation hearings can result in reincarceration, the practical advice is to ask about appointed counsel early and document the request.

When the Government's Own Employees Need Counsel

One odd corner of federal law shows how far the government's obligation to pay counsel can stretch. Under 42 U.S.C. § 2000dd-1, the United States government shall provide or employ counsel, and pay counsel fees, court costs, bail, and other expenses incident to representation of certain officers, employees, members of the Armed Forces, or agents with respect to civil actions, criminal prosecutions, or investigations arising out of authorized interrogation practices—whether before U.S. courts, foreign courts, or international tribunals, under the same conditions and to the same extent as authorized under 10 U.S.C. § 1037. Separately, 32 CFR § 845.4 sets criteria for providing counsel and paying expenses in criminal cases involving acts performed in the line of official duty, offenses normally punishable by confinement, capital cases, and appeals where substantial rights appear to have been denied. These provisions cover government personnel, not the general public, but they illustrate that "government-paid counsel" is a bundle of separate statutory programs rather than one unified benefit.

The Eligibility Arithmetic: An Illustrative Calculation

Because the question "does the government cover it" often turns on whether you qualify as indigent, a worked example helps. Suppose a jurisdiction uses a simplified test: gross monthly income below 125% of the federal poverty guideline, with a modest asset allowance. For a single adult in 2026, a rough monthly guideline figure (using the annual guideline divided by twelve) might land in the low $1,300s to $1,600s depending on the applicable year's numbers—call it $1,500 for illustration. 125% of $1,500 is $1,875. If the applicant earns $1,700 per month, they're presumptively eligible; if they earn $2,200, they're presumptively not, subject to review of fixed expenses like rent and child support.

These inputs are illustrative, not a quoted official threshold—the actual figure depends on the year's poverty guidelines, the jurisdiction's plan, and how assets are counted. The variable that changes the estimate most is household size: adding dependents raises the guideline substantially, so a parent of three at the same nominal income may qualify where a single adult wouldn't. That's why blanket statements like "you make too much to qualify" are unreliable without running the actual test.

Where Coverage Fails and What to Do

The most common failures fall into recognizable patterns:

Civil matters. Custody disputes between parents, divorce, child support, and most family law matters are civil. There is no constitutional right to appointed counsel, and government-funded counsel is generally unavailable except in narrow circumstances like dependency proceedings or domestic violence protection cases in some states. Court-based self-help centers and legal aid nonprofits may assist, but they aren't the same as appointed counsel. Immigration proceedings. As discussed, no guaranteed government lawyer; relief comes from nonprofits and pro bono programs. Post-conviction and collateral attacks. The right to counsel doesn't automatically extend to habeas petitions or most post-conviction motions, though federal law allows representation when the interests of justice require it in certain proceedings under 28 U.S.C. §§ 2241, 2254, and 2255. Fines and fees. The government covers the lawyer, not the financial penalties, restitution, or fees that may follow a conviction.

When coverage is denied or unavailable, the practical steps are consistent: ask the court in writing for appointed counsel and a hearing on indigency; contact the local public defender or legal aid office to confirm eligibility and waitlists; for immigration cases, seek a recognized nonprofit legal service provider or a law school clinic; and keep documentation of income and expenses ready, since eligibility disputes are resolved on paper. Deadlines matter—requests made after a hearing may be too late.

What the Patchwork Means in Practice

The honest summary is that "the government covers legal counsel in custody" is true only for the criminal side and for a defined set of related proceedings. In criminal cases, the entitlement is robust: counsel, plus investigative and expert services, for financially eligible defendants facing incarceration, with federal law specifying categories from felonies and Class A misdemeanors through probation and supervised release violations. In immigration detention, the default is self-representation, with comparative evidence showing the U.S. is far from alone and the U.K. an outlier in providing free counsel to all detained migrants. In juvenile, civil commitment, and family contexts, coverage depends on state statute and the specific proceeding rather than a single national rule.

Because these rules change—through legislation, court decisions, and agency policy—anyone facing a custody-related hearing should verify the current rule with the court clerk or a local legal aid office rather than relying on general summaries, including this one. The structure of the entitlement is stable enough to plan around: criminal charges plus indigency generally mean appointed counsel; civil detention and family matters generally do not.

FAQ

Does the government pay for a lawyer if I'm in jail but haven't been charged yet?

Sometimes. Federal law provides representation for people under arrest when representation is required by law, and many jurisdictions appoint counsel at initial appearance or arraignment. If you're held without charges, ask for counsel at your first court appearance; the right attaches to critical stages of the criminal process, and pre-charge detention can qualify depending on the jurisdiction.

Can I be denied a public defender because I own a car or a small savings account?

Possibly, depending on the jurisdiction's asset rules. Many plans count equity in vehicles and cash above a threshold, while others exempt a modest vehicle and emergency savings. If you're denied, you can request review and show that the asset isn't convertible to hire counsel—courts generally look at whether you can actually pay, not just whether you have any assets at all.

Is appointed counsel free?

In criminal cases, appointed counsel is provided at government expense, but courts may impose a partial contribution or recoupment fee in some jurisdictions, and you may be ordered to repay costs if you're convicted and found able to pay later. Fees for experts and investigators are covered under the federal plan when necessary for adequate representation, but the reimbursement rules vary by state.

What if I'm in immigration custody and can't afford a lawyer?

The government isn't obligated to provide one in removal proceedings. Look for nonprofit legal service providers, law school clinics, and pro bono programs that serve detained people; availability varies by facility. Because proposed legislation would change this rule but hasn't been enacted, check the current state of the law with a provider before relying on any entitlement.