§ 438.Motion For Judgment On Pleadings
Title 6. Of the Pleadings In Civil Actions · Chapter 5. Summary Judgments and Motions for Judgment on the Pleadings · Last amended 1994 · Last verified July 28, 2026
Full Text of § 438
Plain-English Summary
A motion for judgment on the pleadings tests whether the pleadings themselves, and nothing else, entitle a party to win. Under subdivision (c), a plaintiff can bring the motion by showing the complaint states facts sufficient for a cause of action and the answer does not state facts sufficient for a defense. A defendant can bring it by showing either that the court lacks jurisdiction over the subject of the action or that the complaint fails to state a cause of action against that defendant. The court itself may raise the motion on its own, on the same two grounds. Either version can target the whole complaint or answer, or reach just one cause of action or affirmative defense within it.
Because the motion is decided on the pleadings, the grounds for it must appear on the face of the challenged pleading itself, or from a matter the court is required to take judicial notice of. If the motion rests on judicial notice under Section 452 or 453 of the Evidence Code, the moving papers must identify that matter specifically, instead of leaving the court to search for it.
Timing sets this motion apart from a demurrer. It can be filed only after the answer is on file and the time to demur has run: a plaintiff moves once the defendant’s answer is in and the plaintiff’s own time to demur to the answer has expired, and a defendant moves once its own answer is filed and its time to demur to the complaint has expired. The motion is unavailable once a pretrial conference order has issued under Section 575, or within 30 days of the trial date, whichever comes later, unless the court permits it anyway. A party can bring this motion even after an earlier demurrer on the same grounds was overruled, provided the law has materially changed since that ruling, and even after choosing not to demur on those grounds at all.
Granting the motion does not always end the case on the spot. The court can grant it with or without leave to amend. Without leave, as to the entire complaint or answer, judgment follows immediately. With leave, the losing party gets 30 days to file an amended complaint or answer; if that deadline passes without an amendment, or the amendment violates the court’s ruling, the winning party moves to strike the late or noncompliant pleading and have judgment entered, with the court deciding at a noticed hearing whether to enter it.
Frequently Asked Questions
How is a motion for judgment on the pleadings different from a demurrer?
A demurrer challenges a complaint before an answer is filed, while a motion for judgment on the pleadings under § 438 can be brought only after the answer is on file and the relevant demurrer deadline has passed. The two motions share similar grounds, but this motion can be brought even after a party previously lost a demurrer over the same grounds, so long as the law has materially changed since then.
What must a defendant show to win a motion for judgment on the pleadings?
A defendant must show that the court has no jurisdiction over the subject of the action or that the complaint fails to state facts sufficient to constitute a cause of action against that defendant.
What must a plaintiff show to win the motion?
A plaintiff must show that the complaint states facts sufficient to constitute a cause of action and that the answer does not state facts sufficient to constitute a defense to it.
When can a motion for judgment on the pleadings be filed?
Only after the answer has been filed and the moving party’s time to demur has expired. It generally cannot be brought after a pretrial conference order or within 30 days of trial, absent the court’s permission.
Can the grounds for the motion rely on evidence outside the pleadings?
No. The grounds must appear on the face of the challenged pleading or from a matter the court is required to take judicial notice of, and any judicial-notice matter must be specifically identified in the moving papers.
What happens if the motion is granted with leave to amend?
The party against whom it was granted gets 30 days to file an amended complaint or answer. If that deadline passes without a compliant amendment, the other party can move to strike the pleading and have judgment entered in its favor.
Amendment History
Amended by Stats. 1994, Ch. 493, Sec. 2. Effective September 12, 1994.