A writ of mandamus is a court order that forces a government official, agency, or lower court to perform a specific legal duty it has refused or neglected to carry out. The Supreme Court has called it one of “the most potent weapons in the judicial arsenal,” and courts issue it sparingly: only when the duty owed is clear, no other adequate remedy exists, and the judge decides the writ fits the circumstances.1Legal Information Institute. Cheney v. United States District Court for D.C.2Office of the Law Revision Counsel. Title 28 Section 1361 – Action to Compel an Officer of the United States to Perform His Duty3Office of the Law Revision Counsel. Title 28 Section 1651 – Writs
The Three Conditions a Court Will Check
The Supreme Court set the modern test in Cheney v. United States District Court. A petitioner must satisfy all three conditions before any judge will issue the writ.1Legal Information Institute. Cheney v. United States District Court for D.C.
No Other Adequate Remedy
If the same result is available through a regular lawsuit, an administrative hearing, or the normal appeals process, the court will turn you away. This condition exists to keep mandamus from becoming a workaround for ordinary litigation. If a business license is denied and the agency has a defined appeal process, the applicant usually has to run that process first.
A Clear and Indisputable Right to Relief
You carry the burden of showing that your legal entitlement to the action is not debatable. The government’s duty must be “ministerial,” meaning procedural or administrative with no room for judgment. The Department of Justice puts it bluntly: the duty must be “so plainly prescribed as to be free from doubt and equivalent to a positive command.”4United States Department of Justice. Civil Resource Manual 215 – Mandamus A citizen who properly files a public records request and pays the required fee has a clear legal right to receive non-exempt documents. A municipal clerk’s obligation to issue a marriage license to a couple who meets every statutory requirement is another example. The clerk has no discretion to refuse.
The Court Agrees It’s Appropriate
Even when the first two conditions are satisfied, the judge keeps discretion to deny the writ. Courts weigh whether mandamus is the right tool for the specific facts rather than granting it reflexively.
What a Writ of Mandamus Cannot Do
Mandamus reaches ministerial duties only. It cannot control how an official exercises judgment. A writ could compel a zoning board to hold a hearing on a variance application, because scheduling the hearing is a procedural duty. It could not force the board to approve the variance, because that decision involves discretion.4United States Department of Justice. Civil Resource Manual 215 – Mandamus The DOJ’s own guidance captures the line: “where there is discretion… even though its conclusion be disputable, it is impregnable to mandamus.”
The same principle rules out using mandamus to order a prosecutor to file criminal charges or to tell a judge how to rule on a motion. Those are classic discretionary acts.
Mandamus is also not a substitute for appeal. If a trial judge issues a ruling you dislike, the normal path is to appeal after final judgment. Federal law allows interlocutory appeals in narrow situations, such as when a district judge certifies that an order involves a controlling question of law with substantial grounds for disagreement.5Office of the Law Revision Counsel. 28 U.S. Code 1292 – Interlocutory Decisions A party who simply disagrees with a mid-case ruling cannot bypass that process by filing a mandamus petition. Courts of appeals occasionally issue writs against trial judges, but only when the lower court has so clearly exceeded its authority that waiting for a final appeal would cause irreparable harm.
Unreasonable Agency Delay
Many mandamus cases do not involve an outright refusal. An agency has acknowledged a request but let it sit for months or years without action. When Congress has set no statutory deadline, courts examine whether the delay is unreasonable using a multi-factor analysis drawn from Telecommunications Research & Action Center v. FCC. Alongside the mandamus statute, the Administrative Procedure Act independently authorizes courts to “compel agency action unlawfully withheld or unreasonably delayed.”6Office of the Law Revision Counsel. 5 U.S. Code 706 – Scope of Review
Judges consider whether the agency’s pace follows any rational standard, whether Congress indicated a timetable, whether health or welfare is at stake, whether speeding up this case would disrupt higher-priority work, and how badly the petitioner is being harmed by continued delay. The court does not need to find bad faith on the agency’s part. Bureaucratic inertia alone can satisfy the standard. A petitioner showing a years-long wait, real personal harm, and no sign the agency is moving toward a decision has a strong hand.
Where the Writ Comes Up Most Often
In practice this is overwhelmingly an immigration tool. Federal district courts see a steady stream of mandamus petitions from people whose visa applications, green cards, naturalization cases, or asylum claims have been stuck at U.S. Citizenship and Immigration Services for unreasonably long periods. USCIS is legally required to adjudicate these applications, and when processing backlogs stretch into years, mandamus forces action. As of early 2026, a USCIS policy placing a hold on more than 1.5 million pending asylum applications is expected to drive even more filings.2Office of the Law Revision Counsel. Title 28 Section 1361 – Action to Compel an Officer of the United States to Perform His Duty
Outside immigration, mandamus turns up in disputes over public records requests when an agency refuses to produce documents it must release, in delayed government benefits cases, and when a licensing authority sits on an application indefinitely. The common thread: a government body owes someone a specific, non-discretionary action and will not deliver it.
How to File
The process differs depending on who the target is. Compelling a federal agency or officer is a civil action in U.S. District Court. Correcting a lower court’s error is a petition filed in the court of appeals. Filing in the wrong court leads to immediate dismissal.
Against a Federal Agency or Officer
These actions are filed in U.S. District Court under 28 U.S.C. § 1361.2Office of the Law Revision Counsel. Title 28 Section 1361 – Action to Compel an Officer of the United States to Perform His Duty The filing looks like a regular lawsuit: a complaint, filing fee, and service on the defendant. The complaint should lay out the facts of the inaction, identify the specific statute or regulation that creates the non-discretionary duty, explain why the delay is unreasonable or the refusal unlawful, and state exactly what action you want the court to order.
Service on the federal government has more steps than serving a private party. You must deliver or mail copies of the summons and complaint to the U.S. Attorney for the district where you filed, send copies by certified mail to the Attorney General in Washington, D.C., and send copies to the specific agency or officer you are suing.7Legal Information Institute. Federal Rules of Civil Procedure Rule 4 – Summons Miss any of these and the case can be dismissed before a judge reaches the merits.
Against a Lower Court
When the target is a lower court judge, the petition goes to the court of appeals under Federal Rule of Appellate Procedure 21. It is captioned “In re [name of petitioner]” and must include the relief sought, the issues presented, the facts needed to understand the problem, the reasons the writ should issue, and copies of any orders or record excerpts the court needs.8Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs Other parties from the trial court are automatically treated as respondents.
Fees and Fee Waivers
The filing fee in U.S. District Court is $405, which combines a $350 statutory fee and a $55 administrative fee.9Office of the Law Revision Counsel. Title 28 Section 1914 – District Court Filing and Miscellaneous Fees10United States Courts. District Court Miscellaneous Fee Schedule A petition filed directly in a U.S. Court of Appeals carries a $600 docketing fee.11United States Courts. Court of Appeals Miscellaneous Fee Schedule State court fees vary.
If you cannot afford the fee, you can apply to proceed in forma pauperis by filing a sworn statement of your finances under 28 U.S.C. § 1915. If the court grants that status, both the statutory and administrative fees are waived.10United States Courts. District Court Miscellaneous Fee Schedule
What Happens After Filing
Once the petition is filed and served, the court reviews it. A judge can deny it outright if it clearly fails to meet the three conditions. If the case has potential, the court orders the respondent to answer. When the respondent is a federal agency or officer, the deadline is 60 days after the U.S. Attorney is served.12Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections
A surprising number of mandamus cases never reach a final ruling. Once the government is served, the agency often processes the stalled application or performs the overdue action voluntarily. The case then becomes moot, and both sides dismiss it. This is especially common in immigration mandamus, where many petitioners see meaningful movement within 30 to 60 days of filing. Contested cases also tend to resolve faster than typical federal litigation because the legal question is narrow: did the government owe a clear duty, and did it fail to perform it?
If the government ignores a writ once issued, the court can hold the responsible official or agency in contempt, with escalating civil fines or, in extreme cases, confinement until compliance.
When You Don’t Have to Exhaust Other Remedies First
The general rule is that you must work through all available administrative channels before asking a court for mandamus. Courts have recognized narrow situations where that requirement is excused:
- The available administrative remedy does not actually address the problem. If the only internal process reviews whether a fee is “too high” but your claim is that the agency had no authority to charge the fee at all, that process is irrelevant.
- Waiting would cause irreparable harm. When the delay itself destroys the value of the right being asserted, courts will not insist on exhaustion.
- The constitutional validity of the underlying law is at stake. Agencies generally cannot rule on the constitutionality of their own enabling statutes, so sending the petitioner back accomplishes nothing.
- Going through the process would be futile. If the agency has announced a policy that predetermines the outcome, courts will not require the petitioner to go through the motions.
These exceptions are narrow. If there is any reasonable argument that the administrative process could give you relief, expect to be sent back to finish it before the court entertains a mandamus petition.
Recovering Attorney Fees
Mandamus petitions almost always require a lawyer. The Equal Access to Justice Act lets a prevailing party recover attorney fees from the federal government when the government’s position was not “substantially justified.”13Office of the Law Revision Counsel. 28 U.S. Code 2412 – Costs and Fees The government bears the burden of proving its position was reasonable.
EAJA has financial limits. Individuals must have a net worth under $2 million at the time of filing. Businesses and organizations must have a net worth under $7 million and fewer than 500 employees. Tax-exempt nonprofits and agricultural cooperatives need only meet the 500-employee cap. Fees are capped at $125 per hour unless the court finds that inflation or the specialized nature of the case justifies more.
Two details trip people up. You must apply within 30 days of final judgment. Miss that window and the right is gone. EAJA also does not apply to tort or tax cases, so if your mandamus action falls into one of those categories, fee recovery is off the table.