Free · Unofficial · Not affiliated with CSLB

California Mechanics Lien Law for Contractors

California mechanics lien rules for contractors, including the 20-day preliminary notice and recording deadlines. Civil Code checked December 3, 2026.

A mechanics lien is a claim recorded against private real property when someone who furnished labor, services, equipment, or material to a work of improvement is not paid. If the claim is valid and is later foreclosed in court, the property can be sold to satisfy the debt. For contractors, subcontractors, and suppliers, the right is useful — and easy to lose — because California law sets short, strict deadlines.

This guide summarizes the current private-work rules that come up most often on the CSLB Law and Business exam and on the job: the 20-day preliminary notice, what counts as completion, the deadlines to record a claim of lien, and the follow-up lawsuit. Figures and section citations were checked against the California Civil Code and official Contractors State License Board (CSLB) pages on December 3, 2026. The statutes can change, and a missed deadline can wipe out a claim. Confirm the current text in the Civil Code, and talk with a California construction attorney about a specific project. This page is a study and reference summary, not legal advice.

CA Contractor Guide is not affiliated with the Contractors State License Board. Lien law is also a major topic on the Law and Business exam; see the CSLB Law and Business practice test, the B General Building practice test, and CSLB exam tips. When you want a short checkup, try the free sample quiz or request access to a study account.

What a mechanics lien is

California’s mechanics lien law for private works of improvement is in Civil Code Division 4, Part 6, Title 2, beginning at section 8160. Section 8400 says that a person who provides authorized work for a work of improvement has a lien right, including a direct contractor, subcontractor, material supplier, equipment lessor, laborer, or design professional.

A “direct contractor” is the contractor who has a direct contract with the owner (CSLB materials often say “prime contractor”). Other claimants usually work further down the chain and have different notice and recording rules.

A preliminary notice is not a lien. It is a required warning, in most cases, that the sender has provided or will provide work and may later record a lien, give a stop payment notice, or make a claim against a payment bond if they are not paid. Recording a claim of lien is a later, separate step, and starting a foreclosure lawsuit is a third step, with its own deadline.

Private work versus public work

The recording deadlines in this guide apply to private works of improvement. Public projects follow a different set of rules in Civil Code Title 3 (beginning at section 9000). In general, unpaid subcontractors, laborers, and other eligible claimants on a public job may give a stop payment notice to the public entity or assert a claim against a payment bond. A direct contractor may not use those public-work remedies (Civil Code section 9100).

On a public works contract involving an expenditure of more than $25,000, the direct contractor must, before work starts, give a payment bond to the awarding public entity (Civil Code section 9550). That section does not apply to a public works contract with a “state entity” as defined in Public Contract Code section 7103(d).

If you are bidding or furnishing work on a public job, use the public-work statutes, the contract, and legal advice — not the private-work lien calendar below.

The 20-day preliminary notice

Civil Code section 8204(a) requires a preliminary notice to be given not later than 20 days after the claimant has first furnished work on the work of improvement.

If the claimant misses that 20-day window, the claimant may still give a preliminary notice later. A late notice does not preserve rights for all earlier work. The claimant may record a lien, give a stop payment notice, or assert a claim against a payment bond only for work performed within 20 days before the notice was served, and for work performed after that.

A design professional who furnished design services and who gives a preliminary notice not later than 20 days after the work of improvement has commenced is deemed to have complied with the preliminary-notice requirement for those design services (Civil Code section 8204(b)).

The notice must include a general description of the work, an estimate of the total price of the work provided and to be provided, and a statutory “Notice to Property Owner” in boldface type (Civil Code section 8202). That owner warning explains, among other things, that even if the owner has already paid the contractor in full, an unpaid claimant may still be able to place a lien on the property.

Who must give preliminary notice, and to whom

Except as the statute otherwise provides, a claimant must give preliminary notice before recording a lien, giving a stop payment notice, or asserting a claim against a payment bond, and must give it to all of the following (Civil Code section 8200):

  • The owner or reputed owner
  • The direct contractor or reputed direct contractor to which the claimant provides work, either directly or through one or more subcontractors
  • The construction lender or reputed construction lender, if any

Compliance is a necessary prerequisite to a valid lien claim or stop payment notice. It is also, with a limited statutory alternative in section 8612, a necessary prerequisite to a valid payment-bond claim.

There are two important exceptions in section 8200(e):

  • A laborer is not required to give preliminary notice.
  • A claimant with a direct contractual relationship with an owner or reputed owner is required to give preliminary notice only to the construction lender or reputed construction lender, if any. In practical terms, a direct (prime) contractor does not have to serve a preliminary notice on the owner the contractor already has a contract with, but still must serve the construction lender when the project is financed.

CSLB’s consumer materials make the same point: homeowners should not expect a preliminary notice from the prime contractor or from laborers. If there is a construction lender, the prime contractor must still provide a preliminary notice to that lender.

A claimant may enforce a lien only if the claimant has given preliminary notice to the extent the law requires and has made proof of notice (Civil Code section 8410).

How preliminary notice is given

Preliminary notice must comply with the general notice rules in Civil Code Chapter 2, starting at section 8100. Unless another statute says otherwise, notice may be given by (Civil Code section 8106):

  • Personal delivery
  • Mail in the manner provided in section 8110
  • Leaving the notice and mailing a copy in the manner provided in Code of Civil Procedure section 415.20 for service of a summons

Section 8110 says that notice by mail under this part of the Civil Code shall be given by registered or certified mail, express mail, or overnight delivery by an express service carrier.

Keep proof of service. If you later record a lien or serve a stop payment notice, you will need to show that the preliminary notice was given as required.

What counts as completion

Lien recording periods are measured from “completion” of the work of improvement, or from a recorded notice of completion or cessation, so it matters how the statute defines those events.

For private works, Civil Code section 8180 says completion occurs upon any of the following:

  • Actual completion of the work of improvement
  • Occupation or use by the owner accompanied by cessation of labor
  • Cessation of labor for a continuous period of 60 days
  • Recordation of a notice of cessation after cessation of labor for a continuous period of 30 days

If the work of improvement is subject to acceptance by a public entity, completion occurs on acceptance.

An owner may record a notice of completion on or within 15 days after the date of completion (Civil Code section 8182). An erroneous completion date on the notice does not make it ineffective if the true date of completion is 15 days or less before the date the notice is recorded.

A recorded notice of completion or cessation can shorten the time other people have to record a lien, but only if the owner also follows section 8190. Within 10 days after the notice is filed for record, the owner must give a copy to the direct contractor and to each claimant who has given the owner a preliminary notice. If the owner fails to give that copy to a person who was entitled to it, the notice is ineffective to shorten that person’s time to record a claim of lien. Section 8190 does not apply to a person who occupies the property as a personal residence if the dwelling contains four or fewer residential units, or to certain security-interest holders and transferees.

Deadlines to record a claim of lien

These recording windows are short, and the shorter period applies when a valid notice of completion or cessation has been recorded.

Direct contractor (Civil Code section 8412). A direct contractor may not enforce a lien unless the contractor records a claim of lien after the contractor completes the direct contract, and before the earlier of:

  • Ninety days after completion of the work of improvement, or
  • Sixty days after the owner records a notice of completion or cessation

Claimants other than a direct contractor (Civil Code section 8414). A claimant other than a direct contractor may not enforce a lien unless the claimant records a claim of lien after the claimant ceases to provide work, and before the earlier of:

  • Ninety days after completion of the work of improvement, or
  • Thirty days after the owner records a notice of completion or cessation

In other words, a recorded notice of completion or cessation can cut a direct contractor’s recording period to 60 days, and can cut a subcontractor’s, supplier’s, or other claimant’s period to 30 days — provided the notice is effective under the rules above. If no such notice is recorded, the usual outer limit is 90 days after completion.

CSLB’s homeowner publications sometimes describe a 90-day recording period without spelling out the shorter 30- and 60-day periods. For contractors, the Civil Code controls. Calendar the earlier deadline, and do not wait for a county recorder’s informal advice.

Serving the claim of lien

A claim of mechanics lien must be a written statement, signed and verified by the claimant, and must include the information listed in Civil Code section 8416. That includes the demand after credits and offsets, the owner’s name if known, a general statement of the work, the person who employed the claimant or to whom the work was furnished, a description of the site sufficient for identification, the claimant’s address, a proof of service affidavit, and a statutory “Notice of Mechanics Lien” in at least 10-point boldface type.

A copy of the claim, including that Notice of Mechanics Lien, must be served on the owner or reputed owner by registered mail, certified mail, or first-class mail evidenced by a certificate of mailing, postage prepaid, at the addresses allowed by section 8416. If the owner cannot be served that way, the copy may be mailed to the construction lender or the original contractor. Service by those forms of mail is complete when the mail is deposited.

Failure to serve the copy of the claim, including the Notice of Mechanics Lien, makes the claim of mechanics lien unenforceable as a matter of law (Civil Code section 8416(e)). Recording at the county recorder is not enough by itself.

Filing a foreclosure action

Recording a claim of lien is not the last step. Civil Code section 8460(a) requires the claimant to commence an action to enforce the lien within 90 days after recordation of the claim of lien. If the claimant does not, the claim of lien expires and is unenforceable.

There is a narrow exception if the claimant and the owner agree to extend credit, and a notice of the fact and terms of that extension is recorded within the time allowed by section 8460(b). In that event, the claimant must start the enforcement action within 90 days after the credit expires, but in no case later than one year after completion of the work of improvement. If that deadline is missed, the claim of lien expires and is unenforceable.

A mechanics lien is only one of the tools in Civil Code Part 6. The same preliminary-notice rules in sections 8200 and 8204 generally apply before a claimant may give a stop payment notice or assert a claim against a payment bond on a private work.

A stop payment notice is directed at construction funds, not at the title to the property. Payment-bond claims are directed at a surety bond, when one has been given. Public works, as noted above, rely on stop payment notices and payment bonds rather than a lien against public property, and a payment bond is required on many public contracts over $25,000.

The deadlines and service rules for stop payment notices and bond claims are set out in other chapters of Part 6. They are not the same as the lien-recording periods in sections 8412 and 8414. If you need those remedies, read the current statute or get legal advice rather than assuming the lien calendar applies.

Licensing and mechanics liens

Business and Professions Code section 7031 generally bars a person who acted in the capacity of a contractor from bringing or maintaining a court action to collect compensation for work for which a California contractor license was required, unless that person was duly licensed at all times during performance. A security interest taken to secure payment for such work is also unenforceable if the person was not duly licensed at all times. There is a limited substantial-compliance exception in section 7031(e).

The usual unlicensed-work exemption in Business and Professions Code section 7048 is narrow: casual or minor work where the aggregate contract price is less than $1,000, with no building permit, no employees, and no contractor-style advertising. Unlicensed contracting outside that exemption creates both licensing and collection problems.

In short, lien and collection rights are not a substitute for being properly licensed. If you are still getting licensed, start with how to get a California B contractor license and CSLB experience requirements and application steps.

Frequently asked questions

Is a preliminary notice the same thing as a mechanics lien?

No. A preliminary notice is a required warning in most cases. A mechanics lien is a later claim recorded with the county recorder, and it must also be served on the owner. Missing the preliminary notice, or serving it late, can wipe out or shrink lien, stop-notice, and payment-bond rights.

Do I have 20 days or 90 days?

Both, for different steps. Give the preliminary notice no later than 20 days after you first furnish work, unless you are a laborer or you only have to notify a construction lender. Record the claim of lien within the 90-, 60-, or 30-day window that applies to you after completion or after a notice of completion or cessation. Then, if you still need to enforce the lien, start the lawsuit within 90 days after the claim is recorded.

I am the prime contractor. Do I have to send the owner a preliminary notice?

Not if you have a direct contract with the owner. You still must give preliminary notice to the construction lender or reputed construction lender, if there is one. Laborers also do not have to give preliminary notice.

What if I served the preliminary notice late?

You may still serve it. You can then pursue a lien, stop payment notice, or payment-bond claim only for work performed within the 20 days before service and for work after that. Work furnished more than 20 days before a late notice is not protected.

Does recording a notice of completion shorten my deadline?

It can, if the notice is effective. A direct contractor then has 60 days after the notice is recorded, and other claimants have 30 days, instead of 90 days after completion — whichever is earlier. If the owner was required to mail a copy of the notice and failed to do so, the notice does not shorten that person’s recording time.

Can I just record the lien and skip serving the owner?

No. Failure to serve the claim of mechanics lien, including the statutory Notice of Mechanics Lien, makes the claim unenforceable as a matter of law.

Does this article replace a lawyer?

No. Deadlines run from facts that can be disputed — such as the date work was first furnished or the date of completion — and other remedies may be available on a given job. Use this page to study the framework and to know which Civil Code sections to read, then confirm the current law and get advice on your contract and your dates.

Where can I practice questions on this topic?

Insurance and liens make up about 12% of the CSLB Law and Business exam, according to CSLB’s official study guide. Start with the Law and Business practice test, try the free sample quiz, or request access to a study account.

Try the free sample quizRequest access to a study account

CA Contractor Guide is an independent exam-prep resource. It is not affiliated with, endorsed by, or associated with the Contractors State License Board (CSLB) or the State of California. This page is a study summary, not legal advice. Mechanics lien and licensing rules can change. Confirm the current Civil Code and Business and Professions Code, and consult a California attorney about a specific project, before you serve a notice, record a claim, or contract for work.