← Blog

Freelance developer contract: the clauses that protect you

· 9 min read · facts checked 11 November 2026

Most freelance disputes aren't about bad code. They're about things nobody wrote down: what was included, who pays for the extra page, when the invoice is due, who owns the result. This guide goes through the clauses that matter most for a freelance web or app developer, what each one should say, and the legal rules worth knowing in the US, the EU and New York.

This is a summary, not legal advice. Rules depend on where you and the client are.

The clauses at a glance

ClauseWhat it saysWhy it matters
Scope and exclusionsLists deliverables, and names what is not includedStops "while you're at it" work from becoming free work
Change requestsAnything outside scope is quoted and approved in writing firstGives you a polite way to say "that's extra"
Milestones and depositPayment split into stages, with a deposit before work startsYou're never far ahead of the money
Payment termsDue date, method, late fee in general termsA due date can be enforced; "soon" cannot
IP ownershipWho owns the work and when it transfersThe default may not be what the client expects
Data protectionRules for handling the client's personal dataRequired in writing under GDPR if you process data for an EU client
Warranty periodA fixed window for fixing defects you causedEnds the open-ended "it's still your bug"
Liability capYour maximum liability, usually tied to fees paidKeeps one mistake from costing more than the project
TerminationHow either side ends it, and what's owedPays you for work done if the client walks away
HandoverWho owns hosting, domains, accounts and credentialsAvoids hostage situations in both directions

Scope and what is out of scope

Write the deliverables as outcomes you can check, not activities. "A five-page marketing site, responsive, built in the client's CMS" can be verified. "Website development" can't. Then list exclusions, because that is where scope creep starts: copywriting, image sourcing, SEO, content migration, ongoing maintenance, third-party fees.

Also state your assumptions: design rounds, and who supplies content and by when. Our proposal template guide covers how to structure scope in the proposal itself, so the contract can refer to it instead of repeating it.

Example wording (not legal advice): The Work consists only of the items listed in Schedule A. Anything not listed in Schedule A is outside the scope of this agreement, including copywriting, photography, hosting fees and ongoing maintenance.

Change requests

A change clause turns an awkward conversation into a process: the client asks, you estimate time and cost, they approve in writing, then you build it. Say that you won't start until it's approved. Rates are covered in our freelance developer rates guide.

Example wording (not legal advice): Requests outside Schedule A will be estimated by the Developer in writing. Work on a change starts only after the Client approves the estimate by email.

Milestones, deposits and payment terms

Split the fee into stages tied to deliverables, not to dates alone, and take a deposit before you start. A common split is 30 to 50 percent upfront (a rule of thumb, not a rule), with the rest at milestones. Don't get more than one stage ahead of your payments.

Payment terms should include:

  • A due date as a number of days from the invoice, or a fixed calendar date per milestone.
  • A late-payment clause in general terms: that overdue invoices may carry a stated fee or interest, and that you may pause work while an invoice is overdue. Check what interest or fees are allowed where you and the client are.

If you find clients through a platform, its cut changes what you take home: see freelance platform fees compared.

Example wording (not legal advice): The Client pays a 40% deposit before work starts. Each invoice is due 14 days after the invoice date. The Developer may pause work while any invoice is overdue.

Acceptance and sign-off

Define how the client approves a deliverable: against the scope, within a set number of working days, by email. Then say what happens if they don't respond, for example that silence counts as acceptance after the review period.

Who owns the code: IP ownership and transfer

In the US, the starting point is that the creator owns the copyright. The Copyright Act says that copyright in a work "vests initially in the author or authors of the work" (17 U.S.C. section 201(a)). Paying for the work doesn't by itself move that ownership.

There are two ways it can end up with the client. The first is a "work made for hire." The US Copyright Office's Circular 30 says a work is made for hire in two situations: when an employee creates it as part of their regular duties, or when a certain type of work is created under an express written agreement between the creator and the party commissioning it. For an independent contractor, the work must fall into one of nine listed categories (for example a contribution to a collective work, part of an audiovisual work, a translation, a compilation or an instructional text), and the parties must "expressly agree in a written instrument signed by them" that it is a work made for hire (17 U.S.C. section 101). Our reading, not an official statement: much custom site and app code doesn't clearly fit those nine, so a work-for-hire label alone is a weak basis.

The second way is a written assignment. Under 17 U.S.C. section 204(a), a transfer of copyright ownership is not valid unless it is in writing and signed by the owner of the rights conveyed. So the contract needs to say, in plain words, that you assign the rights in the finished deliverables to the client, and when.

The when is the part that protects you. Make the transfer take effect on full payment, not on signing. Until then, the client has a license to use the work, or nothing at all.

Example wording (not legal advice): On receipt of full payment, the Developer assigns to the Client all copyright in the Deliverables listed in Schedule A. Until full payment, the Client may use the Deliverables only for testing and review.

Keep your own generic code: the reuse license

An assignment of "all code" can accidentally hand over tools and libraries you had before the project. Carve them out, keep ownership, and give the client a license to use them as part of the delivered work.

Example wording (not legal advice): The Developer keeps ownership of pre-existing code, tools and libraries, and of generic components created during the project that contain no Client content. The Client receives a non-exclusive, perpetual license to use them as part of the Deliverables.

Open-source components

You can't assign code you don't own. Say that third-party and open-source components stay under their own licenses, and keep a list of what you used (your lockfile is a start).

Confidentiality

Define what's confidential (business information, unpublished designs, credentials, customer data), exclude what's already public, set a duration, and make it mutual if you can. Say whether you may show the project in your portfolio.

Data protection when you handle the client's personal data

If you get access to a client's customer list, database or user accounts, you may be processing personal data on their behalf. For EU data, that makes you a "processor" and the client the "controller." GDPR Article 28 says processing by a processor must be governed by a contract or other legal act that binds the processor to the controller and sets out the subject matter and duration of the processing, its nature and purpose, the type of personal data and the categories of data subjects, and the obligations and rights of the controller. Article 28(3) continues with further duties for the processor, so read the whole paragraph.

In practice, attach a short data processing schedule, use staging data instead of live data where you can, and say what happens to copies when the project ends.

Warranty and bug-fix period

Promise what you can deliver: that the work matches the agreed scope, and that you'll fix defects you caused if reported within a fixed window (30 or 60 days is a common rule of thumb, nothing official). After that, fixes go on a maintenance retainer or hourly. Exclude problems caused by the client's changes or third-party services. Don't promise "bug-free".

Limitation of liability

A cap says your total liability under the contract can't exceed a set amount, commonly the fees paid under the contract (again a rule of thumb). Some places limit what you can exclude, so have a lawyer check this clause once and reuse it.

Example wording (not legal advice): The Developer's total liability under this agreement is limited to the fees the Client has paid under it. Neither party is liable for lost profit or other indirect losses.

Termination and kill fee

Say how each side can end the contract (written notice, a notice period, or for cause with a chance to fix the problem), and what's owed when it ends. At minimum: payment for work done to that point, plus non-refundable deposits. A kill fee is an extra payment if the client cancels after you've reserved time for them. Keep it proportionate and agree it before work starts.

Hosting, accounts and credentials

Decide who owns the domain, hosting, repositories and third-party accounts, and say so. A simple default is that the client owns and pays for them, with you added as a user. If you set things up in your own accounts, say when they transfer (after full payment). List what you hand over: repository, build instructions, admin logins and a short readme. Share passwords through a password manager, not email.

New York: the Freelance Isn't Free Act

If you work for clients in New York City, a written contract is the law, not just good practice. The NYC Department of Consumer and Worker Protection (DCWP) says that all contracts worth $800 or more must be in writing, and that this includes agreements with the same hiring party that total $800 within any 120-day period. DCWP's FAQ says the written contract must include:

  1. the name and mailing address of both the freelancer and the hiring party;
  2. an itemization of all services to be provided;
  3. the value of those services;
  4. the rate of compensation;
  5. the method of compensation; and
  6. the date the hiring party must pay, or the mechanism by which that date will be set.

Both sides must keep a copy. If the contract doesn't set a payment date, the same FAQ says the hiring party must pay no later than 30 days after the services are completed. If the only violation alleged is the missing contract, the freelancer must show they asked for a written contract before starting work, so ask in writing.

New York State now has a statewide version. General Business Law section 1412 says the contract between a hiring party and a freelance worker shall be reduced to writing, with the same kind of minimum contents: names and mailing addresses, an itemization of services with their value and the rate and method of compensation, and the payment date or how it is set. The state version also adds the date by which the freelancer must submit a list of services rendered, and says the hiring party must keep the contract for at least six years. The Governor's announcement describes the expanded protections as applying to freelancers paid at least $800. Section 1411 sets the same 30-day fallback for payment.

Contract checklist

  • Deliverables written as checkable outcomes, with exclusions and assumptions listed.
  • Change requests quoted and approved in writing before work starts.
  • Deposit, milestones, due dates, payment method and a general late-payment clause.
  • Acceptance process with a review period.
  • Written IP assignment, effective on full payment, signed by you.
  • Your pre-existing and generic code excluded, with a license to the client.
  • Confidentiality, and a data processing schedule if you touch personal data.
  • Warranty window, liability cap and termination terms, including any kill fee.
  • Hosting, domain and credentials handover plan.
  • For NYC or New York State clients: names and addresses, itemized services, value, rate, method and payment date, copies kept.

ClientPilot drafts outreach messages for freelancers; it doesn't write contracts.

Sources

Related guides

ClientPilot writes your LinkedIn posts, outreach emails and platform profiles from your own profile. Free preview, no card needed.

See how it works

ClientPilot is a product of Dizid Web Development · KvK 91308380 · VAT NL004437513B72 · dev@dizid.com
Privacy · Terms