California Civil Code Section 1717 governs attorney’s fees in contract disputes where the contract itself contains a fee clause. It does two main things: it forces any one-sided fee clause to work both ways, and it tells courts how to decide who prevailed and what fee amount is reasonable. If you are suing or being sued on a contract that mentions attorney’s fees, Section 1717 almost certainly controls what you can recover and what you might owe.
When Section 1717 Applies
The statute reaches only an “action on a contract” where the contract contains a clause awarding attorney’s fees to enforce it.1California Legislative Information. California Code CIV 1717 – Action on Contract An action on a contract means a claim based on the contract’s terms, performance, or breach. Tort claims like fraud, negligence, or intentional interference fall outside the statute, even when they arise from the same deal or relationship.2Justia. Santisas v. Goodin (1998)
The California Supreme Court draws this line clearly. If a complaint alleges the other side failed to deliver what the contract promised, that is a contract claim and Section 1717 governs fees. If instead the complaint alleges fraud during negotiations or negligence in performing services, those sit outside the statute. Many lawsuits mix both, and Section 1717 reaches only the fees tied to the contract portion. A broadly drafted fee clause may still cover tort claims on its own terms, independent of Section 1717, but that is a question of contract interpretation, not statutory reciprocity.2Justia. Santisas v. Goodin (1998)
Mandatory Reciprocity for One-Sided Fee Clauses
The heart of Section 1717 is reciprocity. Many contracts are drafted so only one party, usually the stronger one, can recover attorney’s fees. A lease might say the landlord recovers fees for enforcing the lease and say nothing about the tenant. Section 1717 rewrites that clause as a matter of law: if the landlord can recover fees for winning, the tenant can too.1California Legislative Information. California Code CIV 1717 – Action on Contract
This cannot be bargained away. The statute declares that any contractual provision waiving reciprocal recovery under Section 1717 is void.1California Legislative Information. California Code CIV 1717 – Action on Contract Drafting around the statute is a dead end.
A fee clause is also presumed to cover the entire contract, not just the section where it appears. A fee provision in one paragraph of a long agreement still governs disputes over any other paragraph. The only exception is when both sides were represented by counsel during negotiation and execution and the contract says so explicitly; then the parties can limit the clause’s reach to specific provisions.1California Legislative Information. California Code CIV 1717 – Action on Contract
Who Counts as the Prevailing Party
Only the “party prevailing on the contract” can recover fees. The statute defines that as the party who recovered greater relief on the contract claims.1California Legislative Information. California Code CIV 1717 – Action on Contract Greater relief is not purely a dollar count. Under Hsu v. Abbara, the trial court compares the relief actually awarded against each side’s demands and litigation objectives as shown in the pleadings, trial briefs, and opening statements.3Justia. Hsu v. Abbara (1995)
Clean Wins
When one side wins an unqualified victory on the contract claims, the trial court has no discretion to deny that party its fees. A defendant who defeats every contract claim is the prevailing party. The same is true for a plaintiff who obtains everything sought.3Justia. Hsu v. Abbara (1995)
Mixed Results
The harder cases involve split outcomes. A plaintiff might sue for $200,000 and recover $40,000. A defendant might defeat most claims but lose on one. In these situations, the court has discretion to find there is no prevailing party at all and deny fees to both sides.1California Legislative Information. California Code CIV 1717 – Action on Contract Most contested fee fights happen here, and the trial court’s assessment of who achieved their main litigation objective carries significant weight on appeal.
Voluntary Dismissals and Settlements
If a case is voluntarily dismissed or resolved by settlement, Section 1717 says there is no prevailing party on the contract. That rule is mandatory and overrides any contract language trying to deem a party in whose favor a dismissal is entered the prevailing party. Fees for defending contract claims that were dismissed are therefore off the table. If the dismissed lawsuit also included tort claims and the contract’s fee clause is broad enough to reach them, the defendant may still have a separate path to fees outside Section 1717, depending on how the clause was written.2Justia. Santisas v. Goodin (1998)
Fees When the Contract Is Void or Never Formed
Section 1717 still works when the fight is over whether the contract exists. If one party sues to enforce a contract and the other successfully proves the contract was never formed, was rescinded, or is void, the defending party can still recover attorney’s fees. The lawsuit was brought as an action on a contract containing a fee clause, and the reciprocity guarantee applies to whoever prevails. A party cannot sue on a contract, lose on the merits, and then escape fee liability by arguing the contract was invalid. The same logic protects a party who affirmatively sues to establish that a contract is void.
How Courts Set the “Reasonable” Fee
Section 1717 entitles the prevailing party to reasonable attorney’s fees, with the court fixing the amount. Reasonable is not whatever the lawyer billed. California courts use the lodestar method, starting with the number of hours reasonably spent on the case and the reasonable hourly rate for that work in the relevant legal community. Those figures are multiplied to produce the base lodestar.4Justia. PLCM Group, Inc. v. Drexler (2000)
The trial court can then adjust the lodestar up or down based on factors specific to the case, including the difficulty of the legal questions, the skill required and displayed, the extent to which the litigation prevented the attorney from taking other work, and the results obtained.4Justia. PLCM Group, Inc. v. Drexler (2000) A simple breach-of-contract case over a small sum will not support the same hourly rate or total fee as a complex commercial dispute requiring specialized expertise.
Discretion here is broad. The court can assess the value of the services based on its own expertise without expert testimony, and it can reduce hours it finds excessive, redundant, or unrelated to the contract claims covered by Section 1717.4Justia. PLCM Group, Inc. v. Drexler (2000) Documentation matters. Detailed contemporaneous billing records showing what was done, when, by whom, and how long each task took give the court the clearest basis for approving the full amount. Vague entries and block-billing invite larger cuts.
Deadline to File the Fee Motion
Missing the filing deadline can forfeit an otherwise strong fee claim. Under the California Rules of Court, the motion for attorney’s fees must be served and filed within the time allowed for filing a notice of appeal.5Judicial Branch of California. Rule 3.1702 – Claiming Attorney’s Fees In an unlimited civil case, that means no later than 60 days after the clerk or a party serves notice of entry of judgment, or 180 days after the judgment is entered if no one serves notice.6Judicial Branch of California. Rule 8.104 – Time to Appeal
The parties can extend the deadline by written stipulation filed before it expires; in an unlimited civil case, a stipulation can add 60 days beyond the normal appeal window. A trial court can also grant additional time for good cause.5Judicial Branch of California. Rule 3.1702 – Claiming Attorney’s Fees
The motion itself needs enough documentation for the lodestar analysis. At a minimum, that means billing records or declarations identifying the specific services performed, the person who performed them, and the time each task required. The supporting declaration should also establish the attorney’s hourly rate and explain why it is reasonable for the type of work and the local market.
If a California contract case is in federal court through diversity jurisdiction, the deadline is much shorter. Federal Rule of Civil Procedure 54(d)(2) generally requires the fee motion to be filed within 14 days after entry of judgment, unless a statute or court order says otherwise.7Legal Information Institute. Rule 54 – Judgment; Costs The right to fees under Section 1717 still travels with the contract as substantive law, but the procedure for claiming them follows the federal rules.
A Boundary: Section 1717.5 for Book Accounts Without a Fee Clause
Section 1717 only operates when the contract contains an attorney’s fees clause. If there is no clause, there is nothing for the statute to make reciprocal. A separate statute, Civil Code Section 1717.5, authorizes limited fee recovery in actions on a book account where the contract has no fee provision. For consumer book accounts tied to personal or household obligations, fees are capped at the lesser of $1,200 or 25 percent of the principal owed. For other book accounts, the cap is the lesser of $1,600 or 25 percent. Banks, credit unions, insurance companies, and several other financial institutions are excluded from the statute entirely.8California Legislative Information. California Code Civil Code 1717.5 If your contract has a fee clause, Section 1717 is what you work with; if it does not and the dispute involves a book account, Section 1717.5 is the fallback.