In California, prevailing party attorney fees are recoverable only when a contract, a statute, or an equitable doctrine authorizes them. The default rule under Code of Civil Procedure Section 1021 is that each side pays its own lawyer regardless of who wins.1California Legislative Information. California Code CCP – 1021 The exceptions are broad enough that fee-shifting shows up in a large share of California litigation, but they are exceptions, and each one comes with its own rules about who qualifies, how much can be recovered, and by when.
The three pathways around the default are a contractual fee clause, a fee-shifting statute, and an equity-based award. Which one applies (if any) shapes settlement math from the first demand letter through post-trial motions.
Contract Clauses and Civil Code Section 1717
The most common source of fee-shifting is a clause in the contract being litigated. Commercial leases, real estate contracts, and business agreements routinely say the prevailing party in a dispute recovers reasonable attorney fees. When the lawsuit is an action to enforce that contract and someone wins, the fee clause lets them collect fees from the loser.
Civil Code Section 1717 governs these clauses and does something parties often don’t anticipate: it makes one-sided clauses mutual. Even if the contract only grants fee recovery to one party, Section 1717 converts the clause so that whichever side prevails on the contract claim gets fees.2California Legislative Information. California Civil Code 1717 A lopsided clause drafted to intimidate the other party can end up funding their defense.
Section 1717’s protection only kicks in when the case is an “action on a contract.” A fraud claim that happens to involve a contract is not the same thing, and courts look at whether success on the claim depends on interpreting or enforcing the contract terms. When a case mixes contract and non-contract theories, the fee award may only cover work attributable to the contract claims, and the party seeking fees has to be able to draw that line.
Fee-Shifting Statutes
The Legislature has authorized fee awards in dozens of specific case types, generally to encourage private enforcement of laws that protect the public. Four come up most often.
FEHA Discrimination and Harassment Cases
Under the Fair Employment and Housing Act, the court has discretion to award fees to the prevailing party, but the standard is asymmetric. A prevailing plaintiff can recover fees relatively easily. A prevailing defendant can recover fees only if the court finds the lawsuit was frivolous, unreasonable, or groundless when filed or became so during litigation.3California Legislative Information. California Government Code 12965 The asymmetry exists so employees are not deterred from bringing good-faith claims by the risk of paying the employer’s lawyers if they lose.
Consumer Legal Remedies Act
The CLRA is more one-directional. A prevailing plaintiff is entitled to fees as a matter of right. A prevailing defendant can recover fees only by showing the plaintiff’s case was brought in bad faith.4California Legislative Information. California Civil Code 1780 The tilt makes it financially viable for consumers to challenge deceptive practices where the individual dollar harm is small.
Private Attorney General Statute
Code of Civil Procedure Section 1021.5 authorizes a fee award to a party who successfully enforces an important right affecting the public interest. The case has to have conferred a significant benefit on the public or a large group, and the financial burden of bringing the litigation has to have been heavy enough that a fee award is appropriate.5Legal Information Institute (LII) / Cornell Law School. Cal. Code Regs. Tit. 11, 3201 – Attorney’s Fees Environmental, civil rights, and government-action cases are the usual settings.
Anti-SLAPP Motions
When a defendant wins an anti-SLAPP motion under Code of Civil Procedure Section 425.16, the fee award to that defendant is mandatory, not discretionary.6California Legislative Information. California Code CCP 425.16 If instead the court finds the anti-SLAPP motion itself was frivolous or filed solely to delay, it can award fees to the plaintiff.
Equity-Based Awards
Even without a clause or statute, courts hold limited equitable power to award fees. The bad faith exception covers vexatious, wanton, or oppressive litigation conduct: filing a lawsuit with no factual basis, deliberately obstructing discovery, dragging out proceedings to exhaust the other side financially. Courts treat this as narrow. Ordinary aggressive tactics don’t trigger it; the conduct has to be genuinely abusive.
The common fund or substantial benefit doctrine applies when one party’s litigation creates a recovery or benefit that extends to people who weren’t in the lawsuit. Class actions are the classic example: the attorney who created the fund can recover fees from the fund itself, so the beneficiaries share proportionally in the cost of the win.7UC Law SF Scholarship Repository. Attorney’s Fees and the Federal Bad Faith Exception
Who Counts as the Prevailing Party
Nearly every fee-shifting authority pays out to the “prevailing party,” and identifying that party is where cases get contested when the outcome is mixed.
For costs generally, Code of Civil Procedure Section 1032 defines the prevailing party as the party with a net monetary recovery, a defendant who obtains a dismissal, or a defendant when neither side gets relief.8California Legislative Information. California Code CCP 1032 When the outcome doesn’t fit those categories cleanly, the court decides based on the practical impact of the litigation.
Section 1717 adds its own wrinkle for contract disputes. When neither side wins outright, the court can declare there is no prevailing party at all, and nobody recovers fees.2California Legislative Information. California Civil Code 1717 Courts compare each side’s litigation objectives to the actual result. Sue for $500,000, recover $12,000, and you have technically won, but a court may reasonably conclude neither side truly prevailed. Mixed-result contract cases are where paper winners most often lose their fee claim.
How the Fee Amount Is Calculated
Once entitlement to fees is established, the court has to arrive at a number. California courts overwhelmingly use the lodestar method: hours reasonably spent multiplied by a reasonable hourly rate.
“Reasonably spent” is not a rubber stamp. Duplicative work, excessive research, time on unsuccessful claims unrelated to the winning claims, and block-billed entries that obscure what was actually done all get scrutinized. The hourly rate has to match what lawyers of comparable skill and experience charge in the relevant market.
After calculating the lodestar, the court can apply a multiplier. Factors include the complexity and novelty of the issues, the quality of the work, the results obtained relative to what was sought, and whether the lawyer took the case on contingency.9First Amendment Coalition. How are attorney’s fees calculated in CPRA cases Enhancements above 1.0 are most common in contingency cases where the risk of nonpayment was substantial. Multipliers below 1.0 reduce the award when the result was modest compared to what was claimed.
Section 998 Offers and Cost Pressure
Related to prevailing-party fees, though distinct from them, is the statutory offer to compromise under Code of Civil Procedure Section 998. Either side can serve a written settlement offer before trial. If the recipient rejects it and does worse at trial than the offer, automatic cost-shifting consequences follow.10California Legislative Information. California Code CCP 998
A defendant who offers $100,000, sees the plaintiff reject and then recover only $80,000, cuts off the plaintiff’s post-offer costs and shifts the defendant’s post-offer costs onto the plaintiff. Those costs can include expert witness fees, which in complex cases run into six figures. Section 998 doesn’t shift attorney fees on its own unless a separate statute or contract already does, but the cost consequences are severe enough to create significant settlement pressure. Plaintiffs can use it too, with a well-timed offer that the defendant rejects at its peril.
Deadline to Move for Fees
Entitlement is meaningless if the motion is late. Under California Rule of Court 3.1702, a motion for attorney fees for trial-level work must be filed within the time allowed for filing a notice of appeal.11Judicial Branch of California. Rule 3.1702. Claiming attorney’s fees In unlimited civil cases, that’s generally 60 days after the clerk or a party serves notice of entry of judgment, or 180 days after entry of judgment if no one serves notice. Miss the window and the trial court loses jurisdiction to award fees for the trial work.
Fees incurred on appeal follow a separate timeline: the motion has to be filed within the deadline for a memorandum of costs on appeal.11Judicial Branch of California. Rule 3.1702. Claiming attorney’s fees The motion has to identify the legal basis for fees (statute, contract, or other authority), state the amount sought, and attach supporting documentation, usually detailed billing records showing what was done, by whom, and at what rate.
Representing Yourself
One boundary worth flagging: if you handle your own case without a lawyer, you generally cannot recover attorney fees even after a win under a fee-shifting provision. In Trope v. Katz, the California Supreme Court held that an attorney representing himself was not entitled to reasonable attorney fees under Section 1717, because the phrase contemplates fees actually paid or owed to an attorney, not the value of your own time.12Justia. Trope v. Katz (1995) Whether a corporation represented by in-house salaried counsel can recover fees is a separate question the Trope court explicitly did not resolve.
Challenging the Other Side’s Fee Request
When you receive a fee motion, the amount claimed is not the amount you have to pay. Courts expect scrutiny and routinely reduce awards they find excessive.
The most effective challenges attack the reasonableness of the hours or rates. Look for duplicative entries, work on claims unrelated to the ones the movant won, and rates above the local market. Block billing (multiple tasks lumped into one time entry without breakdown) is especially vulnerable. Courts treat it as making individual task evaluation impossible and often respond with across-the-board percentage cuts.
Prevailing party status is another target. In mixed-result cases, you can argue the movant did not achieve its primary objectives and therefore is not truly the prevailing party. Under Section 1717, a successful version of that argument produces a finding of no prevailing party and eliminates the fee award.2California Legislative Information. California Civil Code 1717 Under Section 1032, when the outcome doesn’t fit the statutory categories, you can push the court to exercise its discretion to deny or apportion costs.8California Legislative Information. California Code CCP 1032
You can also challenge the legal basis itself. If the movant relies on a contract clause, examine whether the dispute actually falls within it. If they rely on a statute, verify the statute applies to the specific claims decided. Fee requests sometimes claim hours for work on claims that carry no fee-shifting right, and courts will exclude those hours when the distinction is clear enough to draw.