What Does Immunity Mean in Law? Types, Waivers, and Limits

In law, immunity means that a person or institution cannot be sued or prosecuted for certain actions taken in a specific role. It is not a blanket exemption from the law. It protects particular conduct, in particular circumstances, so that governments can function, courts can gather evidence, and diplomacy can operate without constant threat of litigation. A police officer making a split-second decision, a prosecutor presenting a case, a judge issuing a ruling, a foreign ambassador driving through a red light, and a bystander performing CPR all operate under different immunity rules. Each type has its own scope, and each has its own ways of being lost.

Sovereign and Governmental Immunity

Sovereign immunity is the oldest form. It traces to the English rule that the crown could not be sued in its own courts. In the United States, the Eleventh Amendment carries that idea forward: “The Judicial power of the United States shall not be construed to extend to any suit in law or equity, commenced or prosecuted against one of the United States by Citizens of another State, or by Citizens or Subjects of any Foreign State.”1Cornell Law School. Exceptions to Eleventh Amendment Immunity – Officer Suits You cannot sue a state government for money damages in federal court unless the state has agreed to be sued.

The federal government has partially waived its own immunity through the Federal Tort Claims Act. Under 28 U.S.C. § 1346(b), federal district courts can hear claims for personal injury or property damage caused by a federal employee’s negligence while acting within the scope of their job.2Office of the Law Revision Counsel. 28 USC 1346 – United States as Defendant The waiver is narrower than it sounds. The government keeps its immunity for any claim based on a federal employee’s discretionary decisions, even where that discretion was abused.3Office of the Law Revision Counsel. 28 U.S. Code 2680 – Exceptions If a policy decision at a federal agency causes harm, the FTCA typically will not help you.

State and local governments operate under their own tort claims frameworks. Most require you to file a formal notice of claim before you can bring a lawsuit, with deadlines that are often much shorter than the general statutes of limitations people expect.

Qualified Immunity

Qualified immunity protects individual government officials from being personally sued for money when they make mistakes on the job. It applies to police officers, social workers, school administrators, and most other executive-branch employees carrying out discretionary duties. The logic is that people exercising government authority need to make quick decisions under pressure, and the threat of personal financial ruin for every judgment call would paralyze the work.

To get past qualified immunity, a plaintiff has to clear a two-part test. First, the official’s conduct must have violated a constitutional or statutory right. Second, that right must have been “clearly established” at the time, meaning prior case law would have put a reasonable person on notice that their actions crossed the line.4Office of the Law Revision Counsel. 42 USC 1983 – Civil Action for Deprivation of Rights The second prong is where most cases die. Courts have interpreted “clearly established” to require a prior case with very similar facts, which means genuinely new forms of misconduct often get a free pass the first time around.

These lawsuits are brought under 42 U.S.C. § 1983, the federal civil rights statute that allows individuals to sue government actors who violate their rights while acting under color of law.4Office of the Law Revision Counsel. 42 USC 1983 – Civil Action for Deprivation of Rights The doctrine remains one of the most debated in American law. Several states have passed their own laws limiting or removing qualified immunity for state-level civil rights claims.

Absolute Immunity for Prosecutors, Judges, and Legislators

Some government roles come with absolute immunity for actions within the role, meaning the protection holds even when the official acted with bad motives.

Prosecutors

Prosecutors are absolutely immune for everything they do as courtroom advocates: deciding to bring charges, presenting evidence at trial, making arguments to a judge or jury, and negotiating plea deals. The Supreme Court established this in Imbler v. Pachtman (1976), holding that a prosecutor “initiating a prosecution and presenting the State’s case” cannot be sued for damages under § 1983.5Justia Law. Imbler v. Pachtman, 424 U.S. 409 (1976) The immunity applies even when a prosecutor acted with malice or deliberately withheld evidence. The remedies for prosecutorial misconduct are professional discipline, criminal charges against the prosecutor, or reversal of the conviction on appeal.

The protection has a hard boundary. When prosecutors step outside the advocate role and act more like investigators, they lose absolute immunity and get only the qualified immunity that police officers receive. Conducting their own witness interviews, supervising searches, or holding press conferences about pending cases have been treated as investigative rather than prosecutorial. A wrongfully convicted person can sue a prosecutor who fabricated evidence during an investigation but generally cannot sue that same prosecutor for using the fabricated evidence at trial.

Judges

Judges receive absolute immunity from civil lawsuits for anything they do in their judicial capacity. The Supreme Court cemented this in Stump v. Sparkman (1978), holding that a judge cannot be sued for damages even if the decision was wrong, was made with bad motives, or exceeded the judge’s authority, so long as the judge was not acting in the “clear absence of all jurisdiction.”6Library of Congress. Stump v. Sparkman, 435 U.S. 349 (1978) If a judge gets it wrong, the fix is an appeal.

Judicial immunity does not extend to administrative tasks. When a judge hires or fires court staff, manages a budget, or handles non-judicial business, those decisions receive only qualified immunity.

Members of Congress

Legislators are shielded by the Speech or Debate Clause in Article I, Section 6 of the Constitution, which provides that “for any Speech or Debate in either House, they shall not be questioned in any other Place.”7Cornell Law School. U.S. Constitution Annotated – Article I, Section 6, Clause 1 – Speech and Debate Privilege This protects votes, committee actions, floor speeches, and other activities that are part of the legislative process. It does not cover accepting bribes, issuing press releases unrelated to legislation, or campaign activities.

Presidential Immunity

The Supreme Court addressed presidential immunity from criminal prosecution directly for the first time in Trump v. United States (2024), establishing a three-tiered framework.8Supreme Court of the United States. Trump v. United States, No. 23-939 (2024)

  • Core constitutional powers. A president has absolute immunity from criminal prosecution for actions taken within the exclusive powers the Constitution grants to the presidency, such as commanding the military or granting pardons.
  • Other official acts. For actions that are official but not within the president’s exclusive constitutional authority, the president receives at least presumptive immunity. A prosecutor can overcome this presumption only by showing that bringing charges would not intrude on the functioning of the executive branch.
  • Unofficial acts. No immunity. Conduct outside the president’s official responsibilities can be prosecuted like anyone else’s.

The decision applies to criminal prosecution. Civil lawsuits against sitting presidents for official acts were already barred under Nixon v. Fitzgerald (1982), while suits for unofficial conduct can proceed under Clinton v. Jones (1997).

Witness Immunity

Prosecutors sometimes need testimony from people who were involved in the very crimes being investigated. The Fifth Amendment lets witnesses refuse to answer questions that could incriminate them. Immunity agreements break that deadlock by trading legal protection for cooperation. Two types exist.

Transactional immunity is the broader version. A witness who receives it cannot be prosecuted at all for any offense connected to the subject of their testimony. Prosecutors grant it sparingly, usually only when they have no other way to build a case against a bigger target.

Use and derivative use immunity, under 18 U.S.C. § 6002, is narrower. The government cannot use the witness’s compelled testimony, or any evidence discovered because of that testimony, in a future prosecution of the witness.9Office of the Law Revision Counsel. 18 USC 6002 – Immunity Generally The witness can still be charged for the same crimes if prosecutors build a case entirely from independent sources. Federal prosecutors rely on this version far more often.

Neither type protects a witness who lies. The statute carves out perjury, false statements, and failure to comply with the immunity order.9Office of the Law Revision Counsel. 18 USC 6002 – Immunity Generally A witness who refuses to testify after receiving an immunity order can be held in contempt and jailed until they cooperate.

Diplomatic and Consular Immunity

Foreign diplomats receive some of the strongest legal protections of anyone on this list. The Vienna Convention on Diplomatic Relations (1961) grants diplomatic agents near-total immunity from criminal, civil, and administrative jurisdiction in the host country.10United Nations. Vienna Convention on Diplomatic Relations A diplomat can commit a serious crime and face no local prosecution. The host country’s only real option is to declare the diplomat persona non grata, forcing the home country to recall them.

The immunity belongs to the sending country, not to the individual diplomat. Only the home government can waive it, and the waiver must be express. A diplomat cannot waive their own immunity, and courts cannot infer a waiver from conduct.

One notable exception exists on the civil side. Diplomatic agents are not supposed to engage in private business in the host country, and if they do, lawsuits related to that commercial activity can proceed.10United Nations. Vienna Convention on Diplomatic Relations Consular officers receive a lesser form of protection; they are generally immune only for acts performed in their official capacity, not for personal conduct.

Volunteer and Good Samaritan Protections

Federal law extends a limited form of immunity to people who volunteer for nonprofit organizations and government entities. Under the Volunteer Protection Act (42 U.S.C. § 14503), a volunteer is shielded from personal liability for harm caused while acting within the scope of their volunteer responsibilities, as long as the harm did not result from willful misconduct, gross negligence, or reckless behavior.11Office of the Law Revision Counsel. 42 USC 14503 – Limitation on Liability for Volunteers The protection does not apply when the volunteer was operating a vehicle that requires a license or insurance. Crimes of violence, sexual offenses, hate crimes, and civil rights violations are all excluded.

The Aviation Medical Assistance Act of 1998 protects doctors, nurses, paramedics, and other qualified medical professionals who provide good-faith emergency care during a flight. If you step up to help a passenger having a medical crisis on a domestic U.S. flight, you are shielded from liability unless your care rises to the level of gross negligence or willful misconduct.12Centers for Disease Control and Prevention. Perspectives – Responding to Medical Emergencies When Flying On international flights, the protection may not apply, depending on the airline’s home country and the route.

Every state also has some form of Good Samaritan law that shields bystanders who provide emergency aid from negligence claims. Details vary, but the common thread is the same: act in good faith, don’t make things dramatically worse through recklessness, and the law will not punish you for trying to help.

How Immunity Is Lost or Waived

Immunity is not permanent or unconditional. Each type has specific ways it can disappear.

Sovereign immunity can be waived by the government itself. The federal government did exactly that through the FTCA, and every state has enacted its own version with varying scope.2Office of the Law Revision Counsel. 28 USC 1346 – United States as Defendant For foreign states sued in U.S. courts, the waiver can be either express or implied under the Foreign Sovereign Immunities Act. Diplomatic immunity, by contrast, requires an express waiver from the sending country and cannot be inferred.

Qualified immunity disappears when the right violated was clearly established. Prosecutorial immunity disappears when the prosecutor acts as an investigator. Judicial immunity disappears when the judge steps outside the judicial role into administrative tasks, or acts without any jurisdiction at all. In each case, the official loses protection by stepping outside the boundaries of the role the immunity was designed to protect. That is the shape of the doctrine as a whole: not freedom from the law, but a shield tied to a function, lasting only as long as the function does.