California Codes homeSearch California
Cal. CodesCode of Civil ProcedurePart 2. Of Civil ActionsTitle 14. Of Miscellaneous ProvisionsChapter 6. Of Costs

Cal. Code of Civil Procedure § 1038 (2026)

Edition and currency
leginfo export of Sept. 26, 2026 (applied Oct. 1, 2026). The text is the edition Syfert holds; for a past event, check the version in force on that date.
Other sources
CURRENTleginfo export of Sept. 26, 2026 (applied Oct. 1, 2026) cited 1982–2026 66citing cases
At a glance

Courts have cited this section in 66 opinions since 1982, 11 of them in the last five years. The most litigated part is subsection (a) (1 case).

(a)In any civil proceeding under the Government Claims Act (Division 3.6 (commencing with Section 810) of Title 1 of the Government Code) or for express or implied indemnity or for contribution in any civil action, the court, upon motion of the defendant or cross-defendant, shall, at the time of the granting of any summary judgment, motion for directed verdict, motion for judgment under Section 631.8, or any nonsuit dismissing the moving party other than the plaintiff, petitioner, cross-complainant, or intervenor, or at a later time set forth by rule of the Judicial Council adopted under Section 1034, determine whether or not the plaintiff, petitioner, cross-complainant, or intervenor brought the proceeding with reasonable cause and in the good faith belief that there was a justifiable controversy under the facts and law which warranted the filing of the complaint, petition, cross-complaint, or complaint or answer in intervention. If the court should determine that the proceeding was not brought in good faith and with reasonable cause, an additional issue shall be decided as to the defense costs reasonably and necessarily incurred by the party or parties opposing the proceeding, and the court shall render judgment in favor of that party in the amount of all reasonable and necessary defense costs, in addition to those costs normally awarded to the prevailing party. An award of defense costs under this section shall not be made except on notice contained in a party’s papers and an opportunity to be heard.

(b)“Defense costs,” as used in this section, shall include reasonable attorney’s fees, expert witness fees, the expense of services of experts, advisers, and consultants in defense of the proceeding, and where reasonably and necessarily incurred in defending the proceeding.

(c)This section shall be applicable only on motion made before the discharge of the jury or entry of judgment, and any party requesting the relief pursuant to this section waives any right to seek damages for malicious prosecution. Failure to make the motion shall not be deemed a waiver of the right to pursue a malicious prosecution action.

(d)This section shall only apply if the defendant or cross-defendant has made a motion for summary judgment, judgment under Section 631.8, directed verdict, or nonsuit and the motion is granted.

The 20 cases that cite Cal. Code of Civil Procedure § 1038 most heavily, weighted by court and treatment. RelevanceNewestTreatment
1
GREENLaabs v. City of Victorville, 163 Cal. App. 4th 1242 (Ct. App. 2008).
cites § 1038 51×cited by 209 cases
Where it cites § 1038
“The court subsequently denied the City's motion for defense costs (pursuant to Code Civ. Proc., § 1038) and expenses incurred in proving matters that plaintiff had denied (pursuant to Code Civ.”
The case’s holding
A plaintiff cannot raise new, unpleaded issues in opposition to a motion for summary judgment without first seeking leave to amend the complaint.
Later courts cite it for
“the pleadings delimit the issues to be considered on a motion for summary judgment. ' thus, a 'defendant moving for summary judgment need address only the issues raised by the complaint; the plaintiff cannot bring up new, unpleaded issues in his or her opposing papers.” · 11 citing courts
cites § 1038 62×cited by 71 cases
Where it cites § 1038
“Code of Civil Procedure section 1038 allows certain defendants, including public entities, to recover the costs of defending frivolous civil actions under the California Tort Claims Act (Tort Claims Act) if the court determines the proceeding was not brought “with reasonable…”
Holding on this section
A court may award defense costs under Code of Civil Procedure section 1038 if a plaintiff brings or maintains a proceeding without reasonable cause or without good faith.
Later courts cite it for
“if the plain language of a statute is unambiguous, no court need, or should, go beyond that pure expression of legislative intent.” · 5 citing courts
3
GREENCalifornia Corr. Peace Officers Assn. v. Virga, 181 Cal. App. 4th 30 (Ct. App. 2010).
cites § 1038 32×cited by 50 cases
Where it cites § 1038
“In its written order denying the motion, the court stated that section 1038 did not authorize the requested attorney fees award, because the federal civil rights claim against appellants (the only claim that remained at the time the trial court granted summary judgment) was not…”
The case’s holding
A motion for attorney fees based on a different statute but seeking identical relief constitutes a renewed motion for the same order.
Later courts cite it for
“a party who originally made an application for an order which was refused in whole or part... may make a subsequent application for the same order upon new or different facts, circumstances, or law, in which case it shall be shown by affidavit what application was made before, when and to what judge, what order or decisions were made, and what new or different facts, circumstances, or law are claimed to be shown....” · 2 citing courts
4
GREENSuarez v. City of Corona, 229 Cal. App. 4th 325 (Ct. App. 2014).
cites § 1038 44×cited by 8 cases
Where it cites § 1038
“(together, the Attorneys and with Suarez, Appellants), appeal from the trial court’s award of attorney fees and costs to the City of Corona (the City) under Code of Civil Procedure section 1038. (Undesignated statutory references are to this code.”
5
GREENAustin B. v. Escondido Union Sch. Dist., 149 Cal. App. 4th 860 (Ct. App. 2007).
cites § 1038 10×cited by 172 cases
Where it cites § 1038
“1); (5) excluding evidence of other alleged misconduct by Priest as to other students; (6) denying plaintiffs’ request to reopen their case prior to granting nonsuit; (7) awarding defendants attorney fees under Code of Civil Procedure section 1038; and (8) awarding defendants…”
The case’s holding
A claim under the Ralph Civil Rights Act requires evidence that the defendant acted because of a bias against or animus toward a protected characteristic.
Later courts cite it for
“the essence of a bane act claim is that the defendant, by the specified improper means (i.e., 'threats, intimidation or coercion'), tried to or did prevent the plaintiff from doing something he or she had the right to do under the law or to force the plaintiff to do something that he or she was not required to do under the law.” · 28 citing courts
6
GREENCurtis v. Cnty. of Los Angeles, 172 Cal. App. 3d 1243 (Ct. App. 1985).
cites § 1038 22×cited by 29 cases
Where it cites § 1038
“This appeal is from that portion of the summary judgment which denied County’s request for an award of defense costs in the form of attorney’s fees (Code Civ. Proc., § 1038). We reverse and remand to the trial court.”
Holding on this section
Code of Civil Procedure section 1038's requirement that an action be brought in good faith and with reasonable cause applies to continued maintenance of the action, not merely its initial filing.
Later courts cite it for
“inasmuch as the legislature provided in subdivision (c) of section 1038 that a request for relief pursuant to the section operates as a waiver of a malicious prosecution action, we presume the legislature intended that section 1290 1038 would provide a means of redress for acts similar to those for which damages are sought in a civil malicious prosecution action.” · 1 citing court
7
GREENBosetti v. United States Life Ins. Co. in City of New York, 175 Cal. App. 4th 1208 (Ct. App. 2009).
cites § 1038 9×cited by 59 cases
Where it cites § 1038
“PVSD was granted summary judgment, and was also awarded its costs and attorney fees under Code of Civil Procedure section 1038. *1214 During the course of the litigation, U.”
The case’s holding
An insurer cannot claim the benefit of the genuine dispute doctrine if its investigation or evaluation of the claim is not full, fair, and thorough.
Later courts cite it for
“an insurer cannot claim the benefit of the genuine dispute doctrine based on an investigation or evaluation of the insured's claim that is not full, fair and thorough.” · 3 citing courts
8
GREENGamble v. Los Angeles Dep't of Water & Power, 97 Cal. App. 4th 253 (Ct. App. 2002).
cites § 1038 19×cited by 10 cases
Where it cites § 1038
“1 The issue on this appeal is one of timing, and it presents itself because section 1038 provides (1) that an award of costs can only be made on noticed motion and after a hearing, and (2) that the court must determine the merits of the motion for costs at the time it grants a…”
9
GREENPonte v. Cnty. of Calaveras, 14 Cal. App. 5th 551 (Ct. App. 2017).
cites § 1038 9×cited by 14 cases
Where it cites § 1038
“After much litigation-including cross-claims not relevant on appeal-the trial court granted the County summary judgment, and later awarded the County $65,000 in attorney fees, pursuant to Code of Civil Procedure section 1038.”
Later courts cite it for
“promissory estoppel cannot be asserted against a public entity to bypass rules that require contracts to be in writing or be put out for bids, rules which reflect a public policy to preclude oral contracts or other exposures to liability, including claims of promissory estoppel.” · 2 citing courts
10
GREENLee v. Dep't of Parks & Rec., 38 Cal. App. 5th 206 (Ct. App. 2019).
cites § 1038 8×cited by 13 cases
Where it cites § 1038
“It also awarded attorney's fees and defense costs to State Parks under Code of Civil Procedure section 1038. Lee appeals both aspects of the judgment.”
Later courts cite it for
“the design and use will control what an object is, not the name” · 2 citing courts
11
GREENHall v. Regents of Univ. of California, 43 Cal. App. 4th 1580 (Ct. App. 1996).
cites § 1038 16×cited by 20 cases
Where it cites § 1038
“Code of Civil Procedure section 1038 1 authorizes an award of defense costs in any civil proceeding under the California Tort Claims Act *1583 “If the court should determine that the proceeding was not brought in good faith and with reasonable cause, .”
Later courts cite it for
“section 1038 applies not only to tort actions initiated in bad faith, but also to actions initiated in good faith but maintained in bad faith and without reasonable cause.” · 2 citing courts
12
GREENRamsey v. City of Lake Elsinore, 220 Cal. App. 3d 1530 (Ct. App. 1990).
cites § 1038 11×cited by 20 cases
Where it cites § 1038
“The letter warned Ramsey's attorneys that if they chose to pursue litigation against the City, the City would seek sanctions under Code of Civil Procedure section 1038. [2] , [3] The City also attached a second letter addressed to Gray's attorney, *1535 with Ramsey's present…”
13
GREENSettle v. State of California, 228 Cal. App. 4th 215 (Ct. App. 2014).
cites § 1038 21×cited by 3 cases
Where it cites § 1038
“) Relying on Carroll and the treatise, the trial court ruled: “Plaintiff’s counsel’s attempts to deflect liability for any fee award on the grounds the statutory language of CCP § 1038 only applies to the party, and not his or her attorney is without merit.”
14
GREENCarroll v. State of California, 217 Cal. App. 3d 134 (Ct. App. 1990).
cites § 1038 8×cited by 21 cases
Where it cites § 1038
“Issues Plaintiffs allege that each trial court abused its discretion in finding that Plaintiffs’ action was not prosecuted in good faith and with reasonable cause and in awarding defense costs to the County and State under Code of Civil Procedure section 1038. 1 Plaintiffs also…”
Holding on this section
A plaintiff must have articulable facts supporting a good faith belief and reasonable cause before naming a public entity as a defendant, or defense costs may be awarded under section 1038.
15
GREENCrowley v. Katleman, 8 Cal. 4th 666 (1994).
cites § 1038 2×cited by 380 cases
Where it cites § 1038
“Another post- Bertero statute cited by defendants is Code of Civil Procedure section 1038, but it too offers an extremely limited remedy.”
The case’s holding
A malicious prosecution action is maintainable when some but not all grounds of liability in a prior proceeding were asserted without probable cause and with malice.
Later courts cite it for
“a 'cause of action' is comprised of a 'primary right' of the plaintiff, a corresponding 'primary duty' of the defendant, and a wrongful act by the defendant constituting a breach of that duty. the most salient characteristic of a primary right is that it is indivisible: the violation of a single primary right gives rise to but a single cause of action.” · 16 citing courts
16
GREENAlan S. v. Superior Court of Orange Cty., 172 Cal. App. 4th 238 (Ct. App. 2009).
cites § 1038 2×cited by 82 cases
Where it cites § 1038
“A Rather Esoteric Problem Concerning Appellate Costs Statutory authority for the award of costs after litigation is found in sections 1032 through 1038 of the Code of Civil Procedure.”
The case’s holding
A trial court must consider the totality of the circumstances to ensure parity and access to justice when determining attorney fees under the Family Code.
Later courts cite it for
“a fair hearing with two sides equally represented” · 2 citing courts
17
GREENGonzales v. ABC Happy Realty, Inc., 52 Cal. App. 4th 391 (Ct. App. 1997).
cites § 1038 11×cited by 7 cases
Where it cites § 1038
“Code of Civil Procedure section 1038 1 directs a trial court to assess costs against a party who has brought a proceeding for indemnity or contribution without good faith or reasonable cause.”
18
YELLOWKnight v. City of Capitola, 4 Cal. App. 4th 918 (Ct. App. 1992).
cites § 1038 20×cited by 55 cases
Disapproved by Reid v. Google, Inc. on other grounds: 8 citing opinions limit it to other grounds.
Where it cites § 1038
“The county also moved for summary judgment, on the ground that it neither owned nor controlled the accident site at the time of the accident, and at the same time moved for an award of defense costs, under Code of Civil Procedure section 1038, on the ground Knight and his…”
The case’s holding
A municipality owes no duty to warn of injuries sustained during bodysurfing when a lifeguard is present.
Later courts cite it for
“on its face the last clause of . . . section 831.2 provides public entities with immunity, without express reference to the improved or unimproved status of the property, for injuries caused by 'any natural condition of any lake, stream, bay, river or beach.” · 3 citing courts
19
GREENMir v. Charter Suburban Hosp., 27 Cal. App. 4th 1471 (Ct. App. 1994).
cites § 1038 4×cited by 22 cases
Where it cites § 1038
“) Also, Code of Civil Procedure section 1038, relating to proceedings under the California Tort Claims Act, requires the trial court to "determine whether or not the plaintiff .”
Later courts cite it for
“because section 809.9 contains the same type of language as these other sanctions statutes, it is more appropriately construed as a sanctions measure specifically applicable to suits challenging medical peer review decisions” · 2 citing courts
20
GREENCorbett v. Hayward Dodge, Inc., 119 Cal. App. 4th 915 (Ct. App. 2004).
cites § 1038 2×cited by 32 cases
Where it cites § 1038
“Although cited by neither party, our courts’ interpretation of Code of Civil Procedure section 1038 is instructive.”
The case’s holding
A prevailing CLRA defendant may recover fees under Civil Code section 1780(d) only by proving the plaintiff's subjective bad faith, and bears the burden of proof.

Show all 66 citing cases (list view) →

The flag is Syfertize’s treatment of the citing case itself, not of the statute. “Where it cites” is the passage in the opinion; the holding is a summary of the whole case and may concern another point. Annotations are extracted automatically from the opinions in the Syfert caselaw corpus.

Citing cases by year
198220042026

One bar per year. Tallest: 6 cases in 2015. 2026 is a partial year. These are opinions in the Syfert collection, which holds more of some courts’ recent opinions than their older ones, so a rise can reflect what the collection holds and not more litigation.

By court
Cal. Ct. App.56Cal.5N.D. Cal.3Bankr. E.D. Cal.2
By subsection
(a)1 case
D.R. v. Contra Costa Cnty. CA, No. 3:19-cv-07152 (N.D. Cal. Sept. 19, 2024).

Show all 66 citing cases (list view) →

Enactment and amendments
Amended by Stats. 2017, Ch. 131, Sec. 3. (AB 1693) Effective January 1, 2018.
Versions

Edition shown: leginfo export of Sept. 26, 2026 (applied Oct. 1, 2026). Syfert holds no earlier or later version of this section.

California Codes Home  |  Search California  |  Search cases for this section  |  syfert.com