To dismiss a court case, either the party who filed it walks away voluntarily, or someone convinces the judge that a legal or procedural defect requires the case to end. In federal civil litigation, that happens through the mechanisms in Rules 12, 41, and 56 of the Federal Rules of Civil Procedure. Criminal cases follow a separate track, with prosecutors able to drop charges and defendants able to move for dismissal on constitutional or statutory grounds. The single most important label attached to any dismissal is whether it is “with prejudice,” which permanently kills the case, or “without prejudice,” which allows the claim to come back.
Voluntary Dismissal by the Person Who Filed
A plaintiff who wants out of a lawsuit has two routes under Rule 41. Before the defendant files an answer or a motion for summary judgment, the plaintiff can end the case unilaterally by filing a notice of dismissal. No court approval is needed.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions
After the defendant responds, that unilateral option is gone. The plaintiff then either needs a stipulation signed by all parties or must ask the judge for an order permitting dismissal. Judges sometimes attach conditions to court-ordered dismissals, such as making the plaintiff cover the defendant’s costs.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions
A voluntary dismissal is presumed to be without prejudice, so the plaintiff can refile. There is a trap. If the plaintiff has previously dismissed any federal or state case based on the same claim, a second voluntary dismissal automatically operates as a final judgment on the merits and permanently bars refiling.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions Lawyers call this the two-dismissal rule, and plaintiffs who don’t know about it sometimes wipe out their own case.
Many voluntary dismissals follow a private settlement. In that scenario, the parties usually file a joint stipulation of dismissal with prejudice, because the settlement itself resolves the dispute and neither side wants the litigation reopened after the money changes hands.
Motions Attacking Jurisdiction or Procedure
A defendant who thinks the lawsuit was filed in the wrong court, served incorrectly, or otherwise procedurally defective can move to dismiss under Rule 12(b). Most of these grounds must be raised before the defendant files an answer, which typically means within 21 days of being served.2Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections: When and How Presented
The common grounds are lack of subject-matter jurisdiction (the court has no authority over this type of case, such as a state court hearing a federal patent dispute), lack of personal jurisdiction (no meaningful connection between the defendant and the forum state), improper venue (right court, wrong district), insufficient service of process (documents not delivered by the required method), and failure to join a party whose participation is essential to a fair resolution.2Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections: When and How Presented Subject-matter jurisdiction is different from the others: it can be raised at any point, and the court can dismiss on its own initiative even if nobody brings it up.
Dismissals on these grounds are almost always without prejudice. The court isn’t saying the claim lacks merit. It’s saying the plaintiff filed in the wrong place or the wrong way, and the plaintiff can try again correctly.
A separate and less common ground is forum non conveniens, where the court dismisses because another court in a different location would be far more convenient for the parties and witnesses. The defendant has to identify an adequate alternative forum, and the court weighs where the evidence sits, how burdensome the chosen forum is, and which court has the stronger connection to the dispute.
Failure to State a Claim
Even if the lawsuit is in the right court and properly served, the defendant can argue that the complaint itself is legally insufficient. A motion under Rule 12(b)(6) contends that even if every factual allegation is true, the facts don’t add up to a claim the law recognizes.2Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections: When and How Presented The court doesn’t decide whether the plaintiff’s story happened; it asks whether, if it did, the law provides a remedy.
The standard comes from two Supreme Court decisions commonly called Twombly and Iqbal. The complaint must contain enough factual detail to let the court draw a reasonable inference that the defendant is liable. Bare legal conclusions and vague assertions that just repeat the elements of a claim aren’t enough. A plaintiff who writes “the defendant was negligent” without describing what the defendant actually did will not survive this motion.
This is where a lot of self-represented plaintiffs run into trouble. They often describe something genuinely harmful but never connect the facts to a specific legal theory. Courts usually give the plaintiff at least one chance to fix the problem through an amended complaint, so the first dismissal is generally without prejudice. If the amended version still falls short, the court will dismiss with prejudice.
Dismissal as a Sanction
Courts can also throw a case out when a party fails to follow the rules, ignores deadlines, or disobeys court orders. These dismissals are punitive, and they hit hard.
Failure to Prosecute
When a plaintiff files a lawsuit and then lets it sit, the defendant can move to dismiss for failure to prosecute. Courts look for a pattern of neglect: missed deadlines, ignored discovery, months of inactivity. Many federal districts issue a show-cause order after a case has been dormant for six months, requiring the plaintiff to explain why it shouldn’t be dismissed. Unless the court says otherwise, a dismissal for failure to prosecute operates as a final judgment on the merits, so the plaintiff cannot refile.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions
Violating Court Orders
Refusing to comply with a discovery order, missing a pretrial conference, or ignoring other directives can lead to dismissal. Rule 16 authorizes sanctions, including dismissal, when a party or attorney fails to appear at a scheduling or pretrial conference, and the court must also order the non-complying side to pay the other party’s reasonable expenses and attorney fees unless the failure was substantially justified.3Legal Information Institute. Federal Rules of Civil Procedure Rule 16 – Pretrial Conferences; Scheduling; Management Judges treat dismissal as a last resort here and usually consider whether a lesser sanction, like a fine or an adverse inference, would be enough.
Frivolous or Bad-Faith Filings
Rule 11 requires every legal filing to be based on a reasonable investigation and supported by existing law or a good-faith argument to change it. Filings made to harass, delay, or run up costs violate this rule. The opposing side must serve a motion describing the violation and give the offending party 21 days to withdraw or correct it before the court can impose sanctions. If the filing isn’t corrected, sanctions can include penalties and an order to pay the other side’s fees, and in extreme cases the court can dismiss the frivolous claims outright.4Legal Information Institute. Federal Rules of Civil Procedure Rule 11 – Signing Pleadings, Motions, and Other Papers; Representations to the Court; Sanctions
Summary Judgment
Summary judgment is the most powerful dismissal tool later in a case, after the parties have exchanged documents, taken depositions, and finished discovery. The moving party argues that there is no genuine factual dispute left and that the evidence so clearly favors one side that a trial would be pointless.5Legal Information Institute. Federal Rules of Civil Procedure Rule 56 – Summary Judgment
The difference from a motion to dismiss is timing and depth. A Rule 12(b)(6) motion tests only whether the complaint’s allegations, taken as true, state a valid claim. Summary judgment looks at actual evidence. The moving party has to point to depositions, documents, or sworn statements showing that no reasonable jury could find for the other side, and the opposing party must produce its own evidence showing a real factual dispute. Vague allegations no longer carry the day.5Legal Information Institute. Federal Rules of Civil Procedure Rule 56 – Summary Judgment A full grant of summary judgment is a final decision on the merits and blocks the losing party from relitigating those claims.
Dismissing a Criminal Case
Criminal cases run on different rules, but dismissal is still possible. The two most common paths are a prosecutor’s decision to drop charges and a defendant’s motion based on constitutional or statutory violations.
Prosecutorial Dismissal
A prosecutor can abandon a case by entering a nolle prosequi, a formal declaration that the government will not pursue the charges. Reasons vary: weak evidence, a cooperating witness who becomes unavailable, or a decision that prosecution isn’t in the public interest. A nolle prosequi is not an acquittal, so double jeopardy protections don’t apply and the defendant can be recharged later on the same offense.
Speedy Trial Violations
The federal Speedy Trial Act requires that a defendant be brought to trial within 70 days of indictment or initial court appearance, whichever comes later. If the government misses that deadline, the defendant can move to dismiss. Whether the dismissal is with or without prejudice depends on the seriousness of the offense, the circumstances of the delay, and the impact reprosecution would have on the administration of justice. A defendant who does not raise this issue before trial or before entering a guilty plea waives it.6Office of the Law Revision Counsel. 18 US Code Chapter 208 – Speedy Trial State courts have their own speedy trial rules with varying timelines, so a defendant in state court should check the local deadline rather than rely on the federal 70-day standard.
Constitutional and Evidentiary Grounds
Defendants can move to dismiss charges based on constitutional violations such as unlawful search and seizure, double jeopardy, or entrapment. When evidence was obtained through an illegal search, the defense may succeed in getting that evidence excluded, and without it the charges may not survive. Courts can also dismiss at a preliminary hearing if the prosecution fails to establish probable cause that a crime was committed.
With Prejudice, Without Prejudice, and Refiling
A dismissal with prejudice is a permanent bar. It operates as a final judgment on the merits and triggers claim preclusion (sometimes called res judicata), blocking the same parties from relitigating the same issues. Most involuntary dismissals are treated as merits decisions unless the court says otherwise, with the specific exceptions of dismissals for lack of jurisdiction, improper venue, or failure to include a required party.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions
A dismissal without prejudice leaves the door open, but an open door with an expired statute of limitations behind it is no help. In federal court, a dismissal without prejudice is treated for limitations purposes as though the lawsuit had never been filed. The clock keeps running from when the cause of action first arose, and the prior filing does not pause it. Some states provide a savings period that extends the deadline for a set time after dismissal, but that protection cannot be assumed.
A plaintiff who dismisses and then refiles the same claims against the same defendant can be ordered to pay some or all of the costs from the earlier action, and the court can freeze the new case until those costs are paid.1Legal Information Institute. Federal Rules of Civil Procedure Rule 41 – Dismissal of Actions Separately, the general rule in federal litigation is that costs other than attorney fees go to the prevailing party.7Legal Information Institute. Federal Rules of Civil Procedure Rule 54 – Judgment; Costs Whether a defendant counts as prevailing after a voluntary dismissal depends on the circumstances and varies across federal circuits.
Appealing a Dismissal
Federal appellate courts have jurisdiction over final decisions of district courts.8Office of the Law Revision Counsel. 28 US Code 1291 – Final Decisions of District Courts A dismissal with prejudice qualifies because it ends the case, so the losing party can appeal. A dismissal without prejudice is trickier: because the plaintiff can still refile, courts don’t always treat it as a final, appealable order.
The window is tight. In most civil cases, the notice of appeal must be filed within 30 days of the judgment. If the federal government is a party, the deadline extends to 60 days.9Legal Information Institute. Federal Rules of Appellate Procedure Rule 4 – Appeal as of Right: When Taken Missing this deadline almost always forfeits the right to appeal.
The standard of review depends on the type of dismissal. Dismissal for failure to state a claim and dismissal for lack of standing are both reviewed de novo, meaning the appellate court looks at the issue fresh without deferring to the trial judge. Dismissals based on forum non conveniens or on a court’s decision to grant or deny a voluntary dismissal are reviewed for abuse of discretion, a much more deferential standard. De novo review gives the appealing party a meaningfully better chance of reversal.
Deadlines and Waived Defenses
Dismissal procedures run on strict deadlines. A defendant in federal court must file any motion to dismiss before filing an answer. The default deadline for responding to a complaint is 21 days after service, though a defendant who waives formal service gets 60 days. Filing a motion to dismiss pauses the clock on the answer, and if the court denies the motion, the defendant then has 14 days to respond.2Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections: When and How Presented
Some defenses vanish if they aren’t raised right away. Personal jurisdiction, improper venue, and insufficient service of process must all be raised in the first responsive filing or they are waived. Subject-matter jurisdiction is the exception and can be raised at any stage.2Legal Information Institute. Federal Rules of Civil Procedure Rule 12 – Defenses and Objections: When and How Presented Defendants who hold these arguments in reserve often find that the opportunity has already passed.
State courts run on their own procedural rules, and deadlines can differ significantly. The principles above reflect federal civil procedure, which governs all U.S. district courts and is the model most state systems are built on. If your case is in state court, check the local rules for response deadlines and motion practice.