Sample memo · Landlord–tenant

Civ. Code § 1717 and unilateral fee clauses in unlawful detainer

Can a tenant who prevails in an unlawful detainer recover fees under a lease clause that grants fees only to the landlord?

This is a published work sample.

It was written on a general question of California law — there is no client, no matter and nothing confidential in it. It is research support for a supervising attorney: it states no conclusion of law, recommends no action, and is not legal advice. Every citation below links to the public source it was read from, and the sections that say what this memo could not establish are part of the deliverable, not an omission from it.

I. QUESTION PRESENTED

Under California law, when a residential lease contains a unilateral attorney's-fees clause favouring the landlord — one that does not expressly grant the same right to the tenant — and the tenant prevails in an unlawful detainer action brought on that lease, may the tenant recover attorney's fees? If so, what does Civil Code § 1717 do to the unilateral clause, and what must the tenant do procedurally to obtain a fee award?


II. BRIEF ANSWER

Yes. Civil Code § 1717(a) renders any contractual attorney's-fees clause mutual as a matter of law. A clause that facially benefits only the landlord is rewritten by § 1717 so that the party prevailing on the contract — whoever that turns out to be — may recover fees. When a residential lease contains such a clause and the tenant prevails in an unlawful detainer action premised on the lease, the tenant is entitled to reasonable attorney's fees. The tenant must bring a noticed post-judgment motion; the court then determines prevailing-party status and fixes a reasonable fee as a cost of suit.

Caution for supervising attorney: Whether fees are recoverable in a specific case turns on (1) whether the lease "specifically provides" for fee shifting (§ 1717(a) trigger), (2) whether the UD action was "on the contract," and (3) whether the court exercises its discretion to find a prevailing party under § 1717(b)(1). All three elements should be confirmed against the facts of the client's matter before relying on this brief answer.


III. CONTROLLING AUTHORITY

AuthorityCitationProposition
California Civil Code § 1717(a)Cal. Civ. Code § 1717(a) (retrieved 2026-09-13 from leginfo.legislature.ca.gov)Makes any contractual attorney's-fees clause mutual; party prevailing on the contract recovers fees "whether he or she is the party specified in the contract or not"
California Civil Code § 1717(b)(1)Cal. Civ. Code § 1717(b)(1)Court determines prevailing party on noticed motion; prevailing party is the one who "recovered a greater relief in the action on the contract"
Hsu v. Abbara(1995) 9 Cal.4th 863 [Cal. Supreme Court]Foundational statement of § 1717 reciprocity rule
Santisas v. Goodin(1998) 17 Cal.4th 599 [Cal. Supreme Court]§ 1717 creates reciprocal right to fees whenever fee clause benefits fewer than all parties
Beverly Hills Properties v. Marcolino(1990) 221 Cal.App.Supp.3d 7 [App. Div. Super. Ct.]§ 1717 directly applied in unlawful detainer action
de la Cuesta v. Benham(2011) 193 Cal.App.4th 1287 [Cal. Ct. App.]§ 1717 governs prevailing-party determination in UD action for unpaid rent
511 S. Park View, Inc. v. Tsantis(2015) 240 Cal.App.Supp.4th 44 [App. Div. Super. Ct.]Fee award to tenant defendants after UD court trial; § 1717 not limited by lease cap
Crasnick v. Marquez(2016) 248 Cal.App.Supp.4th 1 [App. Div. Super. Ct.]Court granted defendant-tenant's motion for attorney fees after judgment against landlord in UD
Honey Baked Hams, Inc. v. Dickens(1995) 37 Cal.App.4th 421 [Cal. Ct. App.]Attorney's fees awarded to UD defendant pursuant to fee clause in lease

Identifier of record: each case's CourtListener URL in the accompanying citations.yaml is the single identifier for that opinion; bare opinion IDs were removed from this memo on 2026-09-13 because three of them contradicted their own URL (see the header of citations.yaml).

Source note on all case citations: Each case was located and its CourtListener URL confirmed through the CourtListener v4 REST API search endpoint (no authentication required) during this research run on 2026-09-13. Full opinion text was not retrievable from primary sources during this run — see § VII (Gaps) below. Authority-pack files contain confirmed metadata and API-retrieved snippet text.


IV. DISCUSSION

A. The Statute: What § 1717 Does to a Unilateral Fee Clause

The text of California Civil Code § 1717(a), retrieved from the official California Legislative Information website (leginfo.legislature.ca.gov) on 2026-09-13, provides:

> "In any action on a contract, where the contract specifically provides that attorney's fees and costs, which are incurred to enforce that contract, shall be awarded either to one of the parties or to the prevailing party, then the party who is determined to be the party prevailing on the contract, whether he or she is the party specified in the contract or not, shall be entitled to reasonable attorney's fees in addition to other costs."

(Cal. Civ. Code § 1717(a) — pinpoint: subdivision (a), sentence 1.)

The operative phrase — "whether he or she is the party specified in the contract or not" — is § 1717's reciprocity mechanism. If a lease says "landlord may recover attorney's fees," § 1717 reads that clause as though it said "the prevailing party may recover attorney's fees." The clause does not disappear; it is enlarged to cover whoever wins.

The California Supreme Court confirmed this reading in Hsu v. Abbara, (1995) 9 Cal.4th 863. The court stated at page 865:

> "When a contract contains a provision granting either party the right to recover attorney fees in the event of litigation on the contract, Civil Code section 1717 gives the 'party prevailing' [the right to recover fees]."

(Hsu v. Abbara, 9 Cal.4th at 865 — pinpoint: p. 865, retrieved from CourtListener API snippet.)

The same court elaborated the legislative purpose in Santisas v. Goodin, (1998) 17 Cal.4th 599, 599 (majority, Kennard, J.):

> "To ensure that these contractual attorney fee provisions do not operate in an unfairly one-sided manner, the Legislature enacted Civil Code section 1717, which states in part: 'In any action on a contract, [where the contract provides for attorney's fees] . . . the party who is determined to be the party prevailing on the contract, whether he or she is the party specified in the contract or not, shall be entitled to reasonable attorney's fees.'"

(Santisas v. Goodin, 17 Cal.4th at 599 — pinpoint: p. 599 opening, retrieved from CourtListener API snippet. Additional language regarding reciprocal right appears in the Baxter, J. concurrence; pinpoint page for that passage not retrieved in this run.)

Justice Baxter's concurrence in Santisas stated the reciprocity rule with particular clarity: "Civil Code section 1717 creates a reciprocal right to such fees whenever an attorney fees clause benefits fewer than all of the parties involved in litigation over a contract containing such a clause." (Santisas v. Goodin — Baxter, J., concurring and dissenting — pinpoint page not retrieved from full text in this run; see authority pack for retrieved snippet text.)

Practice point: A lease clause limited to "landlord's fees" triggers § 1717 because it "benefits fewer than all of the parties" — precisely the scenario § 1717 was enacted to correct.

B. Unlawful Detainer as "an Action on a Contract"

Section 1717(a) applies only to "action[s] on a contract." An unlawful detainer action qualifies when it is premised on a lease — i.e., when the claimed breach (non-payment of rent, holdover, or lease-term violation) arises directly from the contractual relationship memorialized in the lease.

In Beverly Hills Properties v. Marcolino, (1990) 221 Cal.App.Supp.3d 7, the Appellate Division of the Superior Court applied § 1717 directly in an unlawful detainer proceeding. The court's opening sentence is: "This appeal is a challenge to an order in an unlawful detainer case requiring appellant to pay legal fees to respondent, the prevailing party, pursuant to Civil Code section 1717." (Beverly Hills Properties v. Marcolino, 221 Cal.App.Supp.3d at 7 — pinpoint: p. 7, opening of opinion, retrieved from CourtListener API snippet.)

The California Court of Appeal addressed the same issue in de la Cuesta v. Benham, (2011) 193 Cal.App.4th 1287, where the court, writing at page 1290:

> "This case tests the limits of a trial court's discretionary authority to determine that there is no 'prevailing party' under Civil Code section 1717. Here, a landlord brought an unlawful detainer action and sought unpaid rent. The tenant asserted she owed the landlord nothing b[ecause] . . ."

(de la Cuesta v. Benham, 193 Cal.App.4th at 1290 — pinpoint: p. 1290, opening of opinion, retrieved from CourtListener API snippet. The opinion proceeds to apply § 1717 prevailing-party analysis to the UD judgment. Remainder of analysis not retrieved in this run.)

That a UD action "on a lease" is an "action on a contract" for § 1717 purposes has been applied consistently in the Appellate Division decisions. In 511 S. Park View, Inc. v. Tsantis, (2015) 240 Cal.App.Supp.4th 44, the court upheld a § 1717 fee award to the tenant-defendants following a UD trial. The landlord had argued the lease capped the available fees; the Appellate Division disagreed and affirmed the award. (511 S. Park View, Inc. v. Tsantis, 240 Cal.App.Supp.4th at 44 — pinpoint: p. 44, confirmed from CourtListener API snippet. Full analysis of the lease-cap argument not retrieved in this run.)

Similarly, in Crasnick v. Marquez, (2016) 248 Cal.App.Supp.4th 1, the landlord lost a UD action and the court subsequently granted the prevailing defendant-tenant's motion for attorney fees. (Crasnick v. Marquez, 248 Cal.App.Supp.4th at 1 — pinpoint: p. 1, opening of opinion, retrieved from CourtListener API snippet.)

In Honey Baked Hams, Inc. v. Dickens, (1995) 37 Cal.App.4th 421, the Court of Appeal affirmed an attorney's-fees award to the tenant defendant after the landlord voluntarily dismissed a UD action premised on a commercial lease. (Honey Baked Hams, Inc. v. Dickens, 37 Cal.App.4th at 423 — pinpoint: p. 423, retrieved from CourtListener API snippet. Note: the case involved a commercial lease; the court's reasoning as to the UD-as-contract-action point would apply equally to residential leases, but a supervising attorney should confirm no residential-specific exception applies.)

Note on source authority: The Beverly Hills Properties, 511 S. Park View, and Crasnick decisions are published opinions of the Appellate Division of the Superior Court (Cal.App.Supp. citations). These are published primary authority but are not binding on the California Court of Appeal. de la Cuesta v. Benham (Court of Appeal) and Honey Baked Hams (Court of Appeal) carry greater precedential weight.

C. What § 1717 Does Not Do: Limitations to Note for the Supervising Attorney

1. The "specifically provides" trigger. Section 1717(a) applies only when the lease "specifically provides" for attorney's fees. A general indemnification clause that does not mention attorney's fees may not trigger § 1717. The lease must be reviewed.

2. The prevailing-party determination is discretionary within limits. Section 1717(b)(1) gives the trial court discretion to find "no party prevailing on the contract." de la Cuesta v. Benham directly addresses a landlord's argument that the court should exercise that discretion. The trial court's determination is reviewed for abuse of discretion. (de la Cuesta v. Benham, 193 Cal.App.4th at 1290 — pinpoint: p. 1290.)

3. Voluntary dismissal terminates § 1717 rights. If the landlord voluntarily dismissed the UD before judgment, § 1717(b)(2) provides that "there shall be no prevailing party." Honey Baked Hams addressed this rule in the context of fees awarded under the lease's express contractual provision rather than § 1717 — the distinction matters and the supervising attorney should review whether the UD went to judgment or was dismissed. (Honey Baked Hams, Inc. v. Dickens, 37 Cal.App.4th at 423.)

4. Scope of the fee clause. Section 1717(a), second sentence, provides that a fee clause "shall be construed as applying to the entire contract, unless each party was represented by counsel in the negotiation and execution of the contract, and the fact of that representation is specified in the contract." In a residential lease between a landlord and an unrepresented tenant, the clause applies to the whole contract. (Cal. Civ. Code § 1717(a), second sentence.)

5. Reasonableness. Even when fees are recoverable, the amount is fixed by the court and must be "reasonable." (Cal. Civ. Code § 1717(a), fourth sentence: "Reasonable attorney's fees shall be fixed by the court, and shall be an element of the costs of suit.")

D. Procedure: Bringing the Fee Motion

Step 1 — Notice and motion. Section 1717(b)(1) requires the party to move the court: "The court, upon notice and motion by a party, shall determine who is the party prevailing on the contract." The motion is typically brought as a noticed motion under California Rules of Court. (Cal. Civ. Code § 1717(b)(1).)

Step 2 — Timing. In California state court, a motion for attorney's fees must generally be filed and served within the time allowed for filing a notice of appeal (60 days from service of notice of entry of judgment, or 180 days from entry of judgment if no notice of entry is served). California Rules of Court, rule 3.1702 governs fee motions in the trial court.

No authority located for this point from free primary sources in this run. Supervising attorney should confirm timing rule from Rules of Court and local rules.

Step 3 — Content of motion. The motion should identify: (a) the lease provision triggering § 1717; (b) a showing that the UD was "on the contract" (i.e., premised on the lease); (c) the prevailing-party standard and why the tenant meets it; (d) a declaration and billing records supporting the fee amount as reasonable.


V. OPEN QUESTIONS

The following questions are not resolved by the authority retrieved in this run and should be further researched by the supervising attorney before relying on this memo:

  1. Whether a court may find "no prevailing party" in a close residential UD case. de la Cuesta v. Benham addresses this directly but the full analysis was not retrieved. If the landlord obtained some relief (partial rent, possession for some period) and the tenant obtained some relief (money judgment, or possession), the court may decline to name a prevailing party. The full de la Cuesta analysis and its outcome are critical for any close case.
  1. Whether the LAMC (Los Angeles Municipal Code) or local rent-control ordinance displaces or supplements § 1717. The Intelligent Investments Corp. v. Gonzales case (2016) 1 Cal.App.Supp.5th 1, confirmed on CourtListener, involved a UD where the defendant argued for fees under the LAMC fee-shifting provision rather than § 1717. Whether local ordinances create independent fee-recovery rights or interact with § 1717 in residential UD is not fully analyzed in this memo.
  1. Whether the residential lease exception applies. Some California lease fee provisions are expressly limited by statute (e.g., Civil Code § 1717.5, which caps fees in certain residential leases). Whether § 1717.5 or any other provision limits the tenant's recovery in the client's specific lease type was not researched in this run.
  1. Reasonableness of fees: lodestar or other method. The specific methodology a California superior court uses to calculate reasonable fees in a residential UD matter (lodestar calculation, comparable rates, etc.) was not researched in this run. Supervising attorney should confirm from local practice.
  1. Negative treatment of cited cases. This memo cannot report whether any cited case has been criticized, limited, or overruled. See § VII (Gaps) below.

VI. METRICS (PER ACCEPTANCE LINE)


VII. GAPS (NAMED, NOT SILENT)

gap: CourtListener v4 individual opinion endpoints require authentication. The /api/rest/v4/opinions/{id}/ endpoint returned HTTP 401 for every case attempted. The HTML opinion pages at courtlistener.com/opinion/{id}/ are blocked by AWS WAF (returns a JavaScript challenge page). As a result, full opinion text was not retrieved for any cited case. Authority-pack files contain (a) confirmed case metadata from the CourtListener v4 search API and (b) snippet text returned by the search API. They do not contain the complete opinion text. Acceptance criterion 1 is partially met: every cited case resolves to a confirmed CourtListener URL fetched in this run; full text in the authority pack is limited to API-returned snippets.

gap: Pinpoint pages are available only where the snippet begins at a star-page marker. Because full opinion text was not retrieved, propositions drawn from the interior of opinions cannot be pinpointed beyond the first page of the opinion. Acceptance criterion 2 is partially met: propositions drawn from opinion-opening text carry a page number (confirmed from the star-page in the API snippet); propositions from interior pages are noted "(interior page — pinpoint not retrieved)."

gap: KeyCite / Shepard's negative-treatment check was not performed. These services require a Westlaw or Lexis subscription. The cases cited were checked informally through CourtListener (citation count was reviewed; cases with high citation counts and no obvious hostile treatment were preferred), but this is not a substitute for a formal citator check. A supervising attorney should run every citation through KeyCite or Shepard's before relying on this memo. Acceptance criterion 5 is reported here as required.

gap: California Official Reporter full-text PDF access blocked. Download URLs from California courts (courts.ca.gov/opinions/documents/) returned 404 or HTML Cloudflare pages, not PDFs. The Caselaw Access Project API (case.law) redirected to a documentation page. No alternative free source for full opinion text was found.

gap: The Intelligent Investments Corp. v. Gonzales case (2016) 1 Cal.App.Supp.5th 1, confirmed on CourtListener, involves a fee-shifting claim under the LAMC, not § 1717 — the snippet did not show that case directly resolving the § 1717 unilateral-clause issue in a residential context. It is therefore listed as an open question rather than controlling authority.


Citation ledger — 8 authorities

Every authority this memo relies on, with the page it was cited to and whether that page was confirmed in the text we retrieved or inferred from the citation. A memo you buy ships with the same ledger.

AuthorityCitationPinpointPinpoint confirmed?Source
California Civil Code § 1717
(a) Makes any contractual attorney's-fees clause mutual; prevailing party recovers fees 'whether he or she is the party specified in the contract or not.' (b)(1) Court determines prevailing …
Cal. Civ. Code § 1717subd. (a); subd. (b)(1); subd. (b)(2); subd. (c)n/a — statuteopen
Hsu v. Abbara
California Supreme Court foundational § 1717 reciprocity case: 'When a contract contains a provision granting either party the right to recover attorney fees in the event of litigation on th…
(1995) 9 Cal.4th 863; 891 P.2d 804; 39 Cal. Rptr. 2d 8249 Cal.4th at 865 (confirmed from API snippet star-page *Page 865)Confirmedopen
Santisas v. Goodin
California Supreme Court: § 1717 enacted to prevent fee clauses from operating 'in an unfairly one-sided manner'; creates a 'reciprocal right to such fees whenever an attorney fees clause be…
(1998) 17 Cal.4th 599; 951 P.2d 399; 71 Cal. Rptr. 2d 83017 Cal.4th at 599 (confirmed from API snippet star-page *599 for majority); Baxter, J. concurrence pinpoint not retrieved from full textConfirmedopen
Beverly Hills Properties v. Marcolino
Appellate Division applied § 1717 directly in an unlawful detainer case: 'an order in an unlawful detainer case requiring appellant to pay legal fees to respondent, the prevailing party, pur…
(1990) 221 Cal.App.Supp.3d 7; 270 Cal. Rptr. 605221 Cal.App.Supp.3d at 7 (opening of opinion, confirmed from citation; star-page not explicit in API snippet)Inferredopen
Honey Baked Hams, Inc. v. Dickens
California Court of Appeal: After landlord voluntarily dismissed UD action premised on commercial lease, trial court awarded defendant-tenant attorney fees 'pursuant to the express terms of …
(1995) 37 Cal.App.4th 421; 43 Cal. Rptr. 2d 59537 Cal.App.4th at 423 (confirmed from API snippet star-page *Page 423)Confirmedopen
de la Cuesta v. Benham
California Court of Appeal: § 1717 governs prevailing-party determination in UD action for unpaid rent. 'This case tests the limits of a trial court's discretionary authority to determine th…
(2011) 193 Cal.App.4th 1287; 123 Cal. Rptr. 3d 453193 Cal.App.4th at 1290 (confirmed from API snippet star-page *1290)Confirmedopen
511 S. Park View, Inc. v. Tsantis
Appellate Division affirmed $12,375 attorney fees award to prevailing tenant-defendants following UD court trial. Landlord argued lease capped fees; Appellate Division disagreed and affirmed…
(2015) 240 Cal.App.Supp.4th 44; 193 Cal. Rptr. 3d 517240 Cal.App.Supp.4th at 44 (opening of opinion; star-page not explicit but opinion begins at p. 44 per citation)Inferredopen
Crasnick v. Marquez
Appellate Division: Court granted defendant-tenant Diaz's motion for attorney fees after judgment against landlord in UD action. 'Judgment was rendered against plaintiff Donald Crasnick . . …
(2016) 248 Cal.App.Supp.4th 1; 203 Cal. Rptr. 3d 613248 Cal.App.Supp.4th at 1 (opening of opinion; opinion begins at p. 1 per citation)Inferredopen

Request a memo on your question