What Is a Mandamus Action? When and How to Use It

A mandamus action is a lawsuit asking a court to order a government official, agency, or lower court to carry out a legal duty they have refused or failed to perform. Courts treat it as an extraordinary remedy, available only when you have a clear legal right, the government has a clear duty to act, and no other adequate remedy exists.1United States Department of Justice. Civil Resource Manual 215 – Mandamus In modern practice, it is used mostly to force federal agencies that have sat on applications or benefit decisions for months or years to finally act.

When Mandamus Is Available

A court will not grant mandamus unless all three of these conditions are satisfied:

  • You have a clear legal right to the action you are requesting. A general hope that the agency should do something is not enough; you need a statute or regulation that specifically entitles you to the result.
  • The official or agency has a clear, nondiscretionary duty to act. If the decision involves any judgment or weighing of factors, mandamus does not apply.
  • You have no other adequate remedy, such as an administrative appeal or a regular lawsuit. Mandamus fills gaps; it does not replace existing paths.

Courts are strict about this. Failing on even one element is enough for the petition to be denied.1United States Department of Justice. Civil Resource Manual 215 – Mandamus

Ministerial Duty vs. Discretionary Decision

The second condition hinges on a distinction that trips up many petitioners. A ministerial duty is something an official must do once certain conditions are met, with no room for personal judgment. A county clerk who refuses to record a deed that meets every filing requirement is failing a ministerial duty.

A discretionary decision gives the official room to weigh factors and reach a conclusion. A zoning board deciding on a variance, or a prosecutor deciding whether to bring charges, is exercising discretion. Mandamus cannot touch those decisions. The DOJ’s Civil Resource Manual puts it bluntly: where discretion exists, “even though its conclusion be disputable, it is impregnable to mandamus.”1United States Department of Justice. Civil Resource Manual 215 – Mandamus

Many government actions contain both elements. An agency might have discretion over whether to approve a visa, but a ministerial duty to actually process the application within a reasonable time. Mandamus can force the agency to process. It cannot force approval.

What Mandamus Can and Cannot Do

Mandamus compels action. It does not dictate outcomes. That single principle explains nearly every mandamus ruling.

A court can order an agency to process a permit application that has been collecting dust for months. It can order a court clerk to file a document that meets all procedural requirements. It can compel a judge who has been sitting on a motion for an unreasonable period to issue a ruling.2Legal Information Institute. Mandamus – Wex – US Law

What it cannot do is tell the agency what to decide. You cannot use mandamus to force approval of a permit, compel a prosecutor to drop charges, or order a judge to rule in your favor. If you win a mandamus action against an agency that has been ignoring your application, you may end up with a denial letter. That still counts as success for mandamus purposes, because the agency finally acted.

Where Mandamus Actually Gets Used

Immigration Processing Delays

The single most common use of federal mandamus involves U.S. Citizenship and Immigration Services sitting on visa applications, naturalization petitions, or asylum cases for months or years beyond normal processing times. Federal law sets processing goals of 30 days for nonimmigrant benefits and 180 days for immigrant benefits, and mandamus becomes a viable option when delays stretch well beyond those benchmarks. Cases involving U visas, Special Immigrant Juvenile Status, and post-interview naturalization delays come up often.3Office of the Law Revision Counsel. 28 USC 1361 – Action to Compel an Officer of the United States to Perform His Duty

Social Security Benefit Delays

The Social Security Administration can also be compelled through mandamus to decide a disability or benefits claim it has been sitting on. The bar for “unreasonable” delay is high. One federal court found a nine-month delay fell far short of being problematic, delays of 19 months to two years have generally been denied, and delays approaching four years have led courts to grant relief.

Other Federal Agency Inaction

Mandamus has also been used to compel agencies to process Freedom of Information Act requests, complete environmental reviews, and finalize personnel actions for federal employees. The common thread is the same: an agency with a clear duty to act that has simply stopped acting.

Two Procedural Tracks

Federal mandamus actions take two distinct forms, and confusing them is a common mistake.

District Court Mandamus Against an Agency

Under 28 U.S.C. § 1361, federal district courts have jurisdiction over mandamus actions brought against federal officers, employees, or agencies. This is the path for compelling an agency to process your application or perform any other nondiscretionary duty.3Office of the Law Revision Counsel. 28 USC 1361 – Action to Compel an Officer of the United States to Perform His Duty You file a petition in district court, and the case proceeds much like any other civil lawsuit.

Appellate Mandamus Against a Judge

When the target is a judge rather than an agency, the petition goes to the appellate court above that judge. Federal Rule of Appellate Procedure 21 governs. You file with the circuit clerk, serve all parties in the trial court, and provide a copy to the judge whose conduct is at issue. The petition must explain the relief sought, the issues presented, the relevant facts, and the reasons the writ should issue.4Cornell Law School / Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs This usually arises when a judge refuses to rule on a pending motion or makes an error that cannot be fixed through a normal appeal because no final judgment has been entered.

How Courts Judge Whether a Delay Is Unreasonable

When a petition is based on agency delay rather than outright refusal, courts apply a balancing test known as the TRAC factors:

  • The time the agency takes must be governed by some reasonable standard, not open-ended.
  • If Congress set a deadline or indicated how fast the agency should move, that timetable sets the benchmark.
  • Delays affecting human health or welfare are less tolerable than delays in routine economic regulation.
  • Courts consider whether forcing the agency to act faster would disrupt higher-priority work.
  • The nature and severity of harm to the petitioner matters.
  • A court does not need to find the agency acted in bad faith; simple inaction for too long is enough.

No single factor is decisive. Courts weigh all six together, and the outcome depends heavily on the specific facts. A delay of two years might be acceptable in one context and outrageous in another.

How to File a Mandamus Petition

What the Petition Must Include

Your petition should identify the parties by full name and official title, lay out a chronological account of what happened, explain the duty the official was supposed to perform, describe the failure or refusal to act, and cite the specific statute or regulation creating the obligation.4Cornell Law School / Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs Attach copies of applications you filed, correspondence with the agency, payment receipts, and anything else proving you held up your end.

Where to File

For district court mandamus actions against federal officers or agencies, venue rules are unusually favorable. Under 28 U.S.C. § 1391(e), you can file where the defendant resides, where the events giving rise to the claim occurred, or where you live.5Office of the Law Revision Counsel. 28 USC 1391 – Venue Generally That last option is a significant advantage. Most civil lawsuits require filing where the defendant is located, but mandamus against the federal government lets you stay in your home district.

Filing Fees

A district court mandamus action carries the standard federal civil filing fee of $405.6Office of the Law Revision Counsel. 28 USC 1914 – District Court Filing and Miscellaneous Fees Appellate mandamus petitions under FRAP Rule 21 carry a separate docket fee that varies by circuit. If you cannot afford the fee, you can apply to proceed in forma pauperis, which waives it if the court grants the application.

Serving the Government

Service in a mandamus action against a federal agency is more involved than in a typical lawsuit. You must serve the U.S. Attorney’s office for the district where you filed, send a copy by certified mail to the U.S. Attorney General in Washington, D.C., and send a copy by certified mail to the specific agency or officer you are suing.7Office of the Law Revision Counsel. Federal Rules of Civil Procedure – Rule 4 Missing any of these steps can get the case dismissed.

After You File

Once the petition is properly filed and served, the court reviews it. If it clearly lacks merit, the court can deny it outright without requiring the government to respond. If it has potential, the court orders the government to answer. For district court actions against the United States or a federal agency, the answer deadline is 60 days after service on the U.S. Attorney.8Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections The court may schedule a hearing, but many mandamus actions are decided on the papers.

Something that catches many petitioners off guard: agencies frequently act on the delayed application within days of being served. Once the agency performs the duty you asked the court to compel, the case becomes moot, and the court will dismiss it. Some petitioners have seen the agency act the day after filing. The whole process from filing to resolution can run anywhere from a few weeks (if the agency moves quickly after service) to a year or more for contested cases.

Mandamus vs. APA Delay Claims

Mandamus under 28 U.S.C. § 1361 is not the only tool for forcing a federal agency to act. The Administrative Procedure Act allows courts to “compel agency action unlawfully withheld or unreasonably delayed” under 5 U.S.C. § 706(1).9Office of the Law Revision Counsel. 5 USC 706 – Scope of Review Many petitioners file both claims together.

Mandamus requires all three conditions: a clear right, a clear duty, and no other adequate remedy. Some courts have found that the availability of an APA claim itself constitutes an “adequate remedy,” which blocks the mandamus claim while leaving the APA claim intact. The APA avoids this circularity because it does not require the absence of other remedies.

The APA also draws a meaningful distinction between agency action “unlawfully withheld” (where Congress set a specific deadline the agency missed) and action “unreasonably delayed” (where no hard deadline exists). When a statutory deadline has passed, courts generally must compel the agency to act. When the delay is merely unreasonable, courts apply the TRAC factors and have more discretion. Both mandamus and APA claims share the same limitation: neither can force the agency to decide in your favor.

Recovering Attorney Fees

Mandamus actions against the federal government may qualify for attorney fee recovery under the Equal Access to Justice Act. If you prevail and the government’s position was not “substantially justified,” the court can order the government to pay your legal fees. The EAJA caps the hourly rate but adjusts it annually for inflation; the most recent published rate is $258.46 per hour for work performed in 2025.10United States Courts for the Ninth Circuit. Statutory Maximum Rates Under the Equal Access to Justice Act This applies even when the case becomes moot because the agency acted after being sued, though proving you “prevailed” in a moot case adds complexity.

The fee recovery possibility changes the cost calculus. Without it, the filing fee, service costs, and attorney time could easily run several thousand dollars for a case that might end with the agency simply doing what it should have done. With EAJA, at least some of those costs may come back.