> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Code of Civil Procedure - CCP § 1021. — Section 1021.

- **Citation**: Cal. Code of Civil Procedure - CCP § 1021.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Code of Civil Procedure - CCP (CCP)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-14/chapter-6/section-1021](https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-14/chapter-6/section-1021)
- **Semantic URL**: [https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-14/chapter-6/section-1021](https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-14/chapter-6/section-1021)

## Hierarchy

Title CCP — Code of Civil Procedure - CCP > Part 2. — PART 2. OF CIVIL ACTIONS [307. - 1062.34.] > Title 14. — TITLE 14. OF MISCELLANEOUS PROVISIONS [989. - 1062.34.] > Chapter 6. — CHAPTER 6. Of Costs [1021. - 1038.]

## Text

Except as attorney’s fees are specifically provided for by statute, the measure and mode of compensation of attorneys and counselors at law is left to the agreement, express or implied, of the parties; but parties to actions or proceedings are entitled to their costs, as hereinafter provided.
