Code of Civil Procedure

Code of Civil Procedure section 438Motion for judgment on the pleadings

Cite as Code Civ. Proc., § 438. Read from the California Legislature's official code files on November 15, 2026.

What this means for your filing

The motion for judgment on the pleadings: who may bring it, on what grounds, and when it may and may not be made.

The time and length limits in the text

Quoted word for word from the official text below.

  • Subdivision (e)(e) No motion may be made pursuant to this section if a pretrial conference order has been entered pursuant to Section 575, or within 30 days of the date the action is initially set for trial, whichever is later, unless the court otherwise permits.
  • Subdivision (h)(2)(2) Where a motion is granted pursuant to this section with leave to file an amended complaint or answer, as the case may be, then the court shall grant 30 days to the party against whom the motion was granted to file an amended complaint or answer, as the case may be.

Before you file

  1. 1Quote Code Civ. Proc., § 438 from the official text, as it reads today, not from memory or an AI summary.
  2. 2Check the assigned judge's own department rules and recent tentative rulings. A department can set an earlier briefing deadline, a shorter page limit or its own format than the code or the Rules of Court; Aristo reads them for the judge you drew.
  3. 3See how the assigned judge has ruled on the same kind of motion, counted from the judge's own tentative rulings where the court posts them. Aristo counts them by motion type for the judge you drew.

Official text

(a) As used in this section:

(1) “Complaint” includes a cross-complaint.

(2) “Plaintiff” includes a cross-complainant.

(3) “Defendant” includes a cross-defendant.

(b) (1) A party may move for judgment on the pleadings.

(2) The court may upon its own motion grant a motion for judgment on the pleadings.

(c) (1) The motion provided for in this section may only be made on one of the following grounds:

(A) If the moving party is a plaintiff, that the complaint states facts sufficient to constitute a cause or causes of action against the defendant and the answer does not state facts sufficient to constitute a defense to the complaint.

(B) If the moving party is a defendant, that either of the following conditions exist:

(i) The court has no jurisdiction of the subject of the cause of action alleged in the complaint.

(ii) The complaint does not state facts sufficient to constitute a cause of action against that defendant.

(2) The motion provided for in this section may be made as to either of the following:

(A) The entire complaint or cross-complaint or as to any of the causes of action stated therein.

(B) The entire answer or one or more of the affirmative defenses set forth in the answer.

(3) If the court on its own motion grants the motion for judgment on the pleadings, it shall be on one of the following bases:

(A) If the motion is granted in favor of the plaintiff, it shall be based on the grounds that the complaint states facts sufficient to constitute a cause or causes of action against the defendant and the answer does not state facts sufficient to constitute a defense to the complaint.

(B) If the motion is granted in favor of the defendant, that either of the following conditions exist:

(i) The court has no jurisdiction of the subject of the cause of action alleged in the complaint.

(ii) The complaint does not state facts sufficient to constitute a cause of action against that defendant.

(d) The grounds for motion provided for in this section shall appear on the face of the challenged pleading or from any matter of which the court is required to take judicial notice. Where the motion is based on a matter of which the court may take judicial notice pursuant to Section 452 or 453 of the Evidence Code, the matter shall be specified in the notice of motion, or in the supporting points and authorities, except as the court may otherwise permit.

(e) No motion may be made pursuant to this section if a pretrial conference order has been entered pursuant to Section 575, or within 30 days of the date the action is initially set for trial, whichever is later, unless the court otherwise permits.

(f) The motion provided for in this section may be made only after one of the following conditions has occurred:

(1) If the moving party is a plaintiff, and the defendant has already filed his or her answer to the complaint and the time for the plaintiff to demur to the answer has expired.

(2) If the moving party is a defendant, and the defendant has already filed his or her answer to the complaint and the time for the defendant to demur to the complaint has expired.

(g) The motion provided for in this section may be made even though either of the following conditions exist:

(1) The moving party has already demurred to the complaint or answer, as the case may be, on the same grounds as is the basis for the motion provided for in this section and the demurrer has been overruled, provided that there has been a material change in applicable case law or statute since the ruling on the demurrer.

(2) The moving party did not demur to the complaint or answer, as the case may be, on the same grounds as is the basis for the motion provided for in this section.

(h) (1) The motion provided for in this section may be granted with or without leave to file an amended complaint or answer, as the case may be.

(2) Where a motion is granted pursuant to this section with leave to file an amended complaint or answer, as the case may be, then the court shall grant 30 days to the party against whom the motion was granted to file an amended complaint or answer, as the case may be.

(3) If the motion is granted with respect to the entire complaint or answer without leave to file an amended complaint or answer, as the case may be, then judgment shall be entered forthwith in accordance with the motion granting judgment to the moving party.

(4) If the motion is granted with leave to file an amended complaint or answer, as the case may be, then the following procedures shall be followed:

(A) If an amended complaint is filed after the time to file an amended complaint has expired, then the court may strike the complaint pursuant to Section 436 and enter judgment in favor of that defendant against that plaintiff or a plaintiff.

(B) If an amended answer is filed after the time to file an amended answer has expired, then the court may strike the answer pursuant to Section 436 and proceed to enter judgment in favor of that plaintiff and against that defendant or a defendant.

(C) Except where subparagraphs (A) and (B) apply, if the motion is granted with respect to the entire complaint or answer with leave to file an amended complaint or answer, as the case may be, but an amended complaint or answer is not filed, then after the time to file an amended complaint or answer, as the case may be, has expired, judgment shall be entered forthwith in favor of the moving party.

(i) (1) Where a motion for judgment on the pleadings is granted with leave to amend, the court shall not enter a judgment in favor of a party until the following proceedings are had:

(A) If an amended pleading is filed and the moving party contends that pleading is filed after the time to file an amended pleading has expired or that the pleading is in violation of the court’s prior ruling on the motion, then that party shall move to strike the pleading and enter judgment in its favor.

(B) If no amended pleading is filed, then the party shall move for entry of judgment in its favor.

(2) All motions made pursuant to this subdivision shall be made pursuant to Section 1010.

(3) At the hearing on the motion provided for in this subdivision, the court shall determine whether to enter judgment in favor of a particular party.

Source and history

Citation
Code Civ. Proc., § 438
Effective
September 12, 1994
Where it sits
Part 2. Of civil actions / Title 6. Of the pleadings in civil actions / Chapter 5. Summary Judgments and Motions for Judgment on the Pleadings
History
Amended by Stats. 1994, Ch. 493, Sec. 2. Effective September 12, 1994.

This text refers to

Cited in

Every section in Code of Civil Procedure on Aristo · All California law

Public record, quoted from the official source. Not legal advice.

About this page

Aristo publishes these pages free, quoted from the official sources. Its service, Aristo, connects to Claude, ChatGPT or Harvey with one link and gives the AI the assigned judge's record: the department's posted rules word for word and, where the court posts them, the judge's recent tentative rulings and how the judge has ruled on each kind of motion, each with its source and date, so the draft is written for that judge from the record, not from memory. The first week is free at aristolaw.net, with no card.

See it work

The code is half the answer. Your judge is the other half.

The same AI was asked the same question twice. Alone, it answered from memory. With Aristo, it quoted the code word for word, then read the judge's own department page and found the deadline that comes first.

Draft the opening of our opposition to the defense summary judgment motion in a complex wage and hour case before Judge Nancy Fineman in San Mateo, citing the code and the Rules of Court. When is it due?

Your AI aloneFrom memory

The opposition is due at least 20 days before the hearing, counting court days, and the reply at least 11 court days before the hearing (Code Civ. Proc., § 437c, subd. (b)(2), (3)). Confirm the hearing date on the court's docket and check Judge Fineman's department for any standing order shortening or extending that schedule.

Your AI with AristoFrom Aristo's record, with sources

The opposition is due "not less than 20 days preceding the noticed or continued date of hearing"1 (Code Civ. Proc., § 437c, subd. (b)(2)1). Judge Fineman's own department page requires all briefing to be completed at least three (3) weeks before the hearing date2, so her date comes first and is the one to file by. The memorandum may not exceed 20 pages3, and the opposition must include a separate statement responding to each fact the defense claims is undisputed (Cal. Rules of Court, rule 3.1350, subd. (f)4; Code Civ. Proc., § 437c, subd. (b)(3)1). Any written evidentiary objections must be served and filed with the opposition (Cal. Rules of Court, rule 3.1354, subd. (a)5).

  1. 1Code Civ. Proc., § 437c (California Legislature), read November 15, 2026
  2. 2Department 4 (Nancy L. Fineman), read November 12, 2026
  3. 3California Rules of Court: Rule 3.1113. Memorandum, read November 15, 2026
  4. 4California Rules of Court: Rule 3.1350. Motion for summary judgment or summary adjudication, read November 15, 2026
  5. 5California Rules of Court: Rule 3.1354. Written objections to evidence, read November 15, 2026

Aristo gave your AI: 4 of Dept. 4's own rules on summary judgment, word for word · 6 California Rules of Court and 1 code section, word for word

From 12 official sources ·

Both answers recorded from the live service on November 15, 2026, same model, word for word. The paragraph on the deadline, word for word. The receipt covers the whole answer.
Ask your own question