OPINION OF THE COURT
Plaintiffs appeal the District Court’s order striking as untimely their notice of voluntary dismissal filed under Fed. R.Civ.P. 41(a)(1)(A)®. We will vacate and remand with instructions to enter an order dismissing the complaint without prejudice.
*164 I.
Purchasers of bath and kitchen plumbing fixtures filed putative class action complaints against manufacturers, alleging a price-fixing conspiracy .in violation of Section 1 of the Sherman Act, 15 U.S.C. § 1. Seventeen cases were consolidated in the District Court. Instead of filing an answer, defendants moved to dismiss the consolidated and amended complaint for failure to state a claim under Fed.R.Civ.P. 12(b)(6). 1
On July 19, 2006, the District Court issued a memorandum opinion finding plaintiffs needed to plead more facts to meet the notice standard of Fed.R.Civ.P. 8(a)(2). The memorandum stated in relevant part:
[T]he Court will not dismiss the consolidated and amended complaint with prejudice at this time as the defendants request. At oral argument, the Court asked counsel for the plaintiffs if there were any supplemental facts that could be pled to address the defendants’ arguments that the consolidated and amended complaint did not provide sufficient notice of the grounds upon which the conspiracy claim was based. Counsel implied that they might possess more information than was alleged in the pleadings, but did not supplement the complaint.... The Court, nevertheless, will allow the plaintiffs an opportunity to amend their pleadings.... An appropriate Order follows. 2
The window for amendment was due to close on August 18, 2006, but on August 17, 2006, the District Court granted plaintiffs’ unopposed motion for an extension through September 1, 2006. On August 30, 2006, instead of amending the complaint, plaintiffs filed a notice under Fed. R.Civ.P. 41(a)(1)(A)©, voluntarily dismissing the action (the “Notice”). 3 With one exception, not applicable here, a timely notice of voluntary dismissal is without prejudice. Fed.R.CivJP. 41(a)(1)(B). Defendants, seeking instead a dismissal with prejudice, filed a “Motion for Entry of Judgment in Accordance with the Court’s Memorandum and Order of July 19, 2006,” contending plaintiffs could no longer voluntarily dismiss by notice because the District Court already had granted defendants’ motion to dismiss on July 19, 2006. Defendants asked the District Court to strike the Notice and enter an order of dismissal with prejudice. Plaintiffs opposed the motion. On January 24, 2007, the District Court struck the Notice as untimely filed and entered an order dismissing the complaint. 4 This appeal fol *165 lowed. 5
II.
Fed.R.Civ.P. 41(a)(1) 6 provides:
(A) Without a Court Order. Subject to Rules 23(e), 23.1(c), 23.2, and 66 and any applicable federal statute, the plaintiff may dismiss an action without a court order by filing: (i) a notice of dismissal before the opposing party serves either an answer or a motion for summary judgment; or (ii) a stipulation of dismissal signed by all parties who have appeared. (B) Effect. Unless the notice or stipulation states otherwise, the dismissal is without prejudice. But if the plaintiff previously dismissed any federal-or state-court action based on or including the same claim, a notice of dismissal operates as an adjudication on the merits.
Three key aspects of Rule 41(a)(l)(A)(i) control our analysis. First, a filing under the Rule is a notice, not a motion. Its effect is automatic: the defendant does not file a response, and no order of the district court is needed to end the action. 7 Second, the notice results in a dismissal without prejudice (unless it states otherwise), as long as the plaintiff has never dismissed an action based on or including the same claim in a prior case. Third, the defendant has only two options for cutting off the plaintiffs right to end the case by notice: serving on the plaintiff an answer or a motion for summary judgment.
Here, it is undisputed that on the date plaintiffs filed the Notice: (1) plaintiffs had never before dismissed an action based on or including the same claim; and (2) defendants had not served an answer or a motion for summary judgment. Accordingly, the parties agree a timely Notice would have resulted in automatic dismissal without prejudice. The timeliness of the Notice depends on whether the “action” to which the Rule refers remained pending when the Notice was filed.
The Rule “affixes a bright-line test to limit the right of dismissal to the early stages of litigation,”
Manze,
Because a motion to dismiss under Fed.R.Civ.P. 12(b)(6) is neither an answer nor a motion for summary judgment, its filing generally does not cut off a plaintiffs right to dismiss by notice.
Manze,
In
Marne,
we rejected the defendant’s argument that its motion to dismiss under Fed.R.Civ.P. 12(b)(6) was “equivalent” to a motion for summary judgment that should have barred the plaintiffs dismissal by notice.
Id.
We acknowledged the defendant’s preferred approach had some “theoretical appeal” because motions to dismiss may impose much labor and expense on parties and judges — sometimes they are as time-consuming as motions for summary judgment.
Id.
at 1065 (citing
Tele-Views News Co. v. S.R.B. TV Publ’g Co.,
As in Marne, we apply the literal terms of Rule 41. 10 Furthermore, we re *167 ject defendants’ contention that the District Court’s granting plaintiffs the right to amend, and an extension of time within which to do so, limited or nullified the option of dismissing available to plaintiffs under the Rule. Here, the Notice was timely because defendants had filed neither an answer nor a motion for summary judgment as of the date of the Notice, and because the District Court’s July 19, 2006, order had not clearly put an end to the “action” to which Rule 41 refers.
III.
For the foregoing reasons, we will vacate the January 24, 2007, order of the District Court and remand with instructions to enter an order dismissing the complaint without prejudice.
Notes
. The four defendants divided into two groups, each of which separately filed a motion to dismiss. There is no relevant difference between the motions for the purpose of this appeal.
. Although the July 19, 2006, order indicates the motions to dismiss are "granted,” it also states the "Court will not dismiss the consolidated and amended complaint at this time, but will allow the plaintiffs thirty (30) days to amend their complaint.” The District Court’s subsequent letter to counsel and January 24, 2007, order acknowledged the apparent ambiguity in the July 19, 2006, order as to whether the complaint had been dismissed.
. The docket notes: "Date Terminated: 08/30/2006.”
. Although the January 24, 2007, order does not state the complaint is dismissed “with prejudice,” defendants do not dispute the finality of that order. See
Shane v. Fauver,
.The District Court had federal question jurisdiction under 28 U.S.C. § 1331. We have jurisdiction under 28 U.S.C. § 1291 to review the District Court's order striking the Notice and dismissing the complaint. Our review is plenary.
Manze v. State Farm Ins. Co.,
. Rule 41 received stylistic revisions, immaterial to this appeal, effective December 1, 2007.
. When the notice is filed, the Clerk makes an appropriate entry on the docket noting the termination of the action.
. A district court retains jurisdiction to decide "collateral" issues — such as sanctions, costs, and attorneys’ fees — after a plaintiff dismisses an action by notice.
See Cooter & Gell v. Hartmarx Corp.,
. See Fed.R.Civ.P. 12(d) ("If, on a motion under Rule 12(b)(6) or 12(c), matters outside the pleadings are presented to and not excluded by the court, the motion must be treated as one for summary judgment under Rule 56. All parties must be given a reasonable opportunity to present all the material that is pertinent to the motion.”).
.The consequences of following the Rule have sometimes appeared substantially unfair or wasteful, especially when the district court already has delved into the merits, warranting a departure from the literal text. In
Harvey Aluminum, Inc. v. Am. Cyanamid Co.,
Harvey
has been criticized for blurring the Rule’s "bright-line” timing test, and it has been distinguished when appropriate.
See Universidad Cent. Del Caribe, Inc. v. Liaison Comm. on Med. Educ.,
