Hourly, Flat Fee, or Contingency - Word and PDF

Retainer Agreement Generator for Law Firms and Solo Attorneys

Build a complete attorney retainer agreement in minutes: firm and client identification, a scope clause with express exclusions, an attorney fee agreement section for hourly, flat fee, or contingency billing, trust account language for the advance deposit, and every supporting clause through the signature blocks. Free, no signup, and every rate and percentage is yours to set.

Quick answer: An attorney retainer agreement is the written contract between a firm and its client that defines the matter, the scope of representation and its exclusions, the fee structure and how it is calculated, how advance deposits are held in trust as client property until earned, billing and cost terms, and how either side may end the engagement. This generator assembles all of those clauses into a draft you can download as Word or PDF, which you then conform to your own state's bar rules before any client signs.

How will this engagement be billed?

Firm Information

The state whose professional rules govern the engagement.

Client Information

Matter and Scope of Representation

The scope clause and the express exclusions are the two provisions that most often decide a later dispute about what the firm agreed to do. Define both narrowly and specifically.

Edit freely. The agreement also states that anything not expressly included is excluded, and that excluded work requires a separate written agreement.

Hourly Rates by Timekeeper Class

Rate fields left blank print as ruled blanks to complete before signing.

Advance Deposit (Retainer) and Trust Account

The agreement states that deposited funds remain the client's property until earned, are held in the firm's client trust account, and that any unearned balance is refunded when the engagement ends. That trust language is standard nationwide; the mechanics (accounting, notices, withdrawal timing) are set by your state's rules.

Billing, Costs, and Optional Clauses

Fee agreements are bar-regulated and the requirements are state-specific. Several states impose writing requirements, mandatory content, specific disclosures, or client cancellation rights on contingency agreements, and some extend requirements to hourly and flat fee agreements as well. This generator deliberately cites no statute or rule number, because the controlling authority is your own state's. Review the draft against your state's rules of professional conduct, fee agreement statutes, and bar guidance before any client signs it.

Want your engagement documents drafted for you?

We draft retainer agreements, engagement letters, and full client-facing document sets for firms, delivered under your letterhead and conformed to the structure of your practice. You review, adapt to your state's rules, and sign.

Get a Drafting Quote

Engagement Letter vs Retainer Agreement

The terms get used loosely, including by lawyers. An attorney engagement letter is usually a letter from the firm, countersigned by the client, common in transactional and advisory work. A legal retainer agreement is usually a two-party contract with numbered sections, the dominant format where an advance deposit, litigation, or a contingency fee is involved. Strictly, the “retainer” is the money paid up front and the contract is the fee or engagement agreement, but in everyday practice the phrase attorney retainer agreement covers the whole document.

The format is a style choice. The content is not. Whichever form your practice uses, the document a fee dispute or a bar grievance will be read against needs the same elements: party identification, a matter description, a scope clause with express exclusions, a fee clause that states exactly how the fee is calculated, trust account treatment of any advance, billing and cost terms, client responsibilities, communication commitments, file retention, termination and withdrawal, and a statement that no outcome is guaranteed. This retainer agreement template workflow produces a numbered-section contract because it is the more defensible format when terms are later contested, and you can adapt the output into letter form if that fits your practice.

If your firm sends a short engagement letter today, the useful exercise is to generate a full agreement here and compare: every clause the generator prints that your letter lacks is a term that, in a dispute, will be filled in by default rules or construed against the drafter. Firms that want the whole client-paper stack rebuilt, intake forms, engagement documents, closing letters, can have us draft it through our legal document drafting services.

Key Point: The Scope Clause Is a Malpractice Firewall

When a former client alleges the firm failed to do something, the first document anyone reads is the scope clause. A scope that says “represent client in connection with their dispute” invites the argument that the appeal, the collections work, the related tax question, and the second lawsuit were all included. A scope that states what the firm will do, followed by an exclusions section that states what it will not, closes that door. That is why this generator makes exclusions a separate, mandatory section rather than a nicety.

Why Scope of Representation Decides Malpractice and Fee Fights

Scope drafting fails in a predictable direction: too broad. Lawyers describe the matter (“the Henderson dispute”) instead of the services (“prepare, file, and litigate a breach of contract action through trial in the state trial court”). When the engagement is described by matter, everything arguably connected to the matter is arguably in scope, and the firm inherits duties it never priced: monitoring related deadlines, advising on collateral consequences, handling the appeal. Courts and disciplinary bodies routinely resolve that ambiguity in the client's favor, because the lawyer drafted the document.

The fix is structural, and the generated agreement builds it in. Section 2 states the services affirmatively. Section 3 lists express exclusions, pre-loaded with the categories that most often generate uncovered-work disputes (appeals and post-judgment proceedings, collateral litigation, tax advice, regulatory matters, judgment enforcement), all editable to your engagement. Section 3 then adds the backstop: anything not expressly included is excluded, and new work requires a new writing. That last sentence converts scope creep from a silent expansion of your duty into a business conversation about a signed amendment.

Scope discipline also protects the fee. A flat fee without a stated boundary becomes an all-you-can-ask engagement; an hourly matter without exclusions invites the argument that work on the related matter was covered by the original estimate. Pair the scope clause with a clean intake record, our client intake form generator builds one, so the file shows exactly what the client brought you and what you agreed to take.

Hourly, Flat, and Contingency Fee Agreement Clauses Compared

The generator swaps Section 4 of the agreement based on the fee structure you select. Each structure has its own drafting pressure points, and each is regulated differently from state to state. No numbers are defaulted anywhere: rates, amounts, and percentages are yours.

StructureWhat the Clause Must Pin DownWhere Disputes Start
HourlyRates by timekeeper class, the billing increment, what activities are billable, and how rate changes are noticedIncrement padding claims, surprise rate increases, billing for clerical time
Flat feeThe amount, exactly what it includes and excludes, and when the fee is earned (in trust, staged, or earned on receipt where permitted)Refund fights when work ends early, scope creep against a fixed price
ContingencyThe percentage (or staged percentages), whether costs come out before or after the fee is computed, and what happens on early terminationGross-versus-net cost math, staged percentage triggers, quantum meruit claims after discharge

For hourly practices, the rate table is only half the discipline; the other half is capturing the time. Our billable hours calculator pairs with the increment language this agreement prints.

Trust Accounting Basics for Advance Fees

The rule that travels across every jurisdiction is simple to state: money a client pays in advance for fees not yet earned or costs not yet incurred remains the client's property, belongs in the client trust account, and moves to the operating account only as it is earned or spent. The unearned balance goes back to the client when the engagement ends, whoever ended it and however unhappily. The agreement this generator produces says exactly that, in Section 5, because the trust clause protects the firm as much as the client: it is the written answer to the grievance that alleges the deposit was treated as firm money.

Terminology discipline prevents most trust mistakes. A true availability retainer, earned when paid because it buys availability rather than work, is rare and narrowly construed. The “retainer” in an ordinary legal retainer agreement is an advance fee deposit, and it follows the trust rule above. Flat fees sit in between: some states allow them to be designated earned on receipt with specific written disclosures, others require them held in trust until earned, and the earned-upon options in this generator describe those treatments neutrally so you can select the one your state permits. The replenishment (evergreen) option prints an obligation to restore the deposit on written request, a clause worth including in any matter where fees will outrun the initial deposit.

What this page deliberately does not do is recite any state's trust accounting mechanics: reconciliation cycles, notice-of-withdrawal requirements, and disbursement timing are set by each state's rules and enforced by its bar. The generated agreement states the ownership principle and leaves the mechanics to the authority that actually governs you.

Read This Before You Use the Draft: Fee Agreements Are State-Regulated

Several states impose statutory or rule-based requirements on fee agreements: writing requirements, mandatory contents, specific client disclosures, cancellation rights, fee caps in certain case types, and mandatory fee dispute arbitration programs. Contingency agreements are the most heavily regulated, but in some states hourly and flat fee agreements carry requirements too. We deliberately cite no statute or rule number on this page or in the generated document, because the only citation that matters is your own state's. Treat the download as a structurally complete draft, then verify it against your state's rules of professional conduct, fee statutes, and bar guidance, and add any language your state mandates, before a client signs.

The Clauses Fee Disputes Actually Turn On

Fee litigation and bar fee arbitration rarely turn on exotic provisions. They turn on a short list of clauses that were vague, missing, or silently one-sided. These are the six the generated agreement treats with the most care.

Scope and Express Exclusions

The threshold question in most disputes is whether the contested work was inside the engagement at all. An affirmative scope plus express exclusions plus a new-work-needs-a-new-writing backstop answers it in advance.

Earned-Upon Language for Flat Fees

When a flat fee engagement ends early, the refund fight is decided by when the fee was earned: held in trust, earned at milestones, or designated earned on receipt where permitted. Silence is the worst drafting choice available.

Gross Versus Net Cost Treatment

In contingency matters the same recovery produces two different fees depending on whether costs are deducted before or after the percentage is applied. The agreement must say which, in words the client can follow.

Deposit Refund and Replenishment

The agreement should state that unearned deposit funds are the client's property and are refunded at the end, and whether the client must restore the deposit when it runs low. Both terms surface in nearly every fee grievance.

Billing Transparency and Interest

Statement frequency, what statements itemize, when payment is due, and whether overdue balances carry interest at a stated rate. An interest line with no stated rate, or a rate your state does not permit, is a clause that fails when needed.

Termination, Withdrawal, and What Is Owed

Clients may discharge counsel at any time; firms withdraw under their professional rules. The clause that matters is the settling-up: fees earned and costs incurred through termination, the unearned balance refunded, and in contingency matters the treatment of work performed before discharge.

Practice Note: Benchmark the Draft Against Your Bar's Model Language

Many state bars publish model fee agreements or mandatory-content checklists, and some publish required disclosure forms for contingency engagements or fee arbitration programs. The efficient review is clause-by-clause: put the generated draft next to your bar's model, confirm every mandated element appears, and paste in any language your state requires verbatim. That single pass converts a generic draft into a compliant one, and it is a review only a lawyer licensed in the state can complete.

Frequently Asked Questions

What is an attorney retainer agreement?

An attorney retainer agreement is the written contract between a lawyer or firm and a client that governs the engagement: who the client is, what matter the firm is handling, what the representation includes and excludes, how fees are calculated and billed, how any advance deposit is held and applied, how costs are handled, and how either side can end the relationship. In everyday use the term covers the whole engagement contract, though strictly speaking a "retainer" is the advance payment and the contract itself is the fee or engagement agreement. Whatever it is called in your jurisdiction, it is the document a fee dispute, a bar complaint, or a malpractice claim will be read against.

What is the difference between an engagement letter and a retainer agreement?

In practice the two labels are used almost interchangeably, and both aim at the same thing: a written record of the terms of the representation. An attorney engagement letter is typically formatted as a letter from the firm that the client countersigns, and firms often use it for transactional or advisory work. A retainer agreement is typically formatted as a two-party contract with numbered sections, and is the more common format where an advance deposit, a contingency fee, or litigation is involved. The format matters far less than the content: scope, exclusions, the fee clause, trust account treatment, billing terms, and termination should be present in either form.

What should a retainer agreement include?

A complete attorney fee agreement should identify the firm and the client, describe the matter, define the scope of representation and expressly state what is excluded, set out the fee structure (hourly rates by timekeeper, a flat fee with earned-upon language, or a contingency percentage with the cost treatment stated), address the advance deposit and trust account handling, state billing frequency and payment terms, allocate costs and expenses, state the client's responsibilities and the firm's communication obligations, cover file retention and return, address termination and withdrawal, and disclaim any guarantee of outcome. Signature blocks for both parties complete it. The generator on this page builds each of these sections.

Does a retainer agreement have to be in writing?

It depends on the state and the fee structure. Contingency fee agreements are required to be in writing in most United States jurisdictions, and a number of states also impose writing requirements on other fee arrangements once fees are expected to exceed a threshold, or require specific written disclosures and even client cancellation rights. Because these requirements are state-specific and bar-regulated, we do not cite any particular statute or rule here: check your own state's rules of professional conduct and fee agreement statutes. Even where a writing is not strictly required, an unwritten fee arrangement is construed against the lawyer in nearly every dispute, so the practical answer is that it should always be in writing.

What is the difference between a retainer and an advance fee deposit?

Precision here prevents trust accounting mistakes. A true or "classic" retainer is a payment that compensates the lawyer simply for being available, is earned when paid, and is comparatively rare. An advance fee deposit, which is what most engagements actually involve, is money paid up front against future fees and costs: it remains the client's property, belongs in the trust account, is drawn down as fees are earned or costs are incurred, and any unearned balance must be refunded when the engagement ends. Most agreements that say "retainer" mean an advance deposit, and the agreement should describe the trust handling explicitly, as the document this generator produces does.

Does an advance fee go into the trust account or the operating account?

Funds paid in advance for fees not yet earned or costs not yet incurred generally belong in the client trust account, because they remain the client's property until earned or spent. Moving them to the operating account before they are earned is one of the most common and most serious trust accounting violations. The exceptions, such as a true availability retainer or a flat fee properly designated as earned on receipt, are defined and conditioned by each state's rules, and several states require specific written disclosures before they apply. When in doubt, hold funds in trust and document each withdrawal against work performed.

Can a flat fee be treated as earned on receipt?

Some states permit a flat fee to be designated as earned on receipt, usually only with specific written disclosures and client consent, and often with the caveat that the client remains entitled to a refund of any portion not actually earned if the work is not completed. Other states do not permit the treatment at all and require flat fees to be held in trust until earned. Because the permissible options and the required language differ by state, this generator describes the choices neutrally and lets you select one, and the printed agreement conditions the earned-on-receipt option on what your governing state actually permits. Verify your selection against your own state's rules before a client signs.

What percentage is standard in a contingency fee agreement?

There is no single standard. Percentages in a contingency fee agreement vary with the practice area, the risk, the stage at which the matter resolves, and the jurisdiction, and some states cap or regulate contingency percentages in particular case types, medical malpractice being a common example. Many agreements use staged percentages that increase as the matter advances, which this generator supports. Whatever percentages you set, most jurisdictions require the agreement to state how the fee is calculated and how costs affect it, so the agreement should be explicit about both.

Should costs come out before or after the contingency fee is calculated?

This is one of the clauses fee disputes actually turn on, because the same recovery produces a different fee under each method. If the fee is calculated on the gross recovery, the percentage is applied first and costs are then deducted from the client's share, which yields a larger fee. If the fee is calculated on the net recovery, costs come off the top and the percentage is applied to what remains, which yields a smaller fee. Neither method is inherently improper, but many states require the agreement to state which method applies, and silence is construed against the drafter. The generator requires you to choose and prints the corresponding clause in plain terms.

Can a retainer agreement require arbitration of fee disputes?

Often, but not unconditionally. Some states operate mandatory or client-elective fee dispute arbitration programs, and some require specific pre-dispute disclosures before a private agreement to arbitrate fee disputes is enforceable. An arbitration clause that ignores a mandatory program does not displace it. The optional clause in this generator is drafted to yield to any such program in the governing state, but you should confirm what your state requires, and add any mandated disclosure language, before relying on the clause.

What happens to the unearned retainer when the representation ends?

Any portion of an advance deposit that has not been earned as fees or applied to costs must be refunded to the client promptly when the representation ends, whoever ended it. This is why the agreement should say plainly that deposited funds remain the client's property until earned, and why drawdowns should be documented against invoices. In contingency matters that end before recovery, a separate question arises: whether the firm may claim the reasonable value of work performed. States handle that differently, so the agreement this tool generates states the claim only to the extent the governing state permits it.

Is a generated retainer agreement compliant with my state bar rules?

Not automatically, and no honest generator can promise that. Fee agreement requirements are state-specific and bar-regulated: writing requirements, mandatory contents, required disclosures, cancellation rights, fee caps in certain case types, and fee arbitration program notices all vary by state. This tool produces a structurally complete draft with the clauses an engagement agreement needs, deliberately citing no statute or rule number, and it must be checked against the rules of professional conduct, statutes, and bar guidance of the state where you practice before any client signs it. Many state bars publish model fee agreement language, which is the right benchmark for that review.

Related Tools and Resources for Your Practice

This page and the documents it generates provide general information for licensed attorneys, not legal advice, and using them creates no attorney-client relationship with us. Fee agreement requirements vary by state and are enforced by each state's bar; the generated draft must be reviewed and conformed by a lawyer licensed in the governing state before use with any client.

Outsource the Drafting, Keep the Client

The retainer agreement is one document; the matters behind it are the workload. We draft motions, briefs, discovery, contracts, and full document sets for firms, delivered under your letterhead through our white label legal drafting service, with dedicated support built around how law firms work with us. You supervise, sign, and file; we do the drafting.

Written and legally reviewed by our editorial team
By Jessica Henwick, Editor-in-ChiefLegally reviewed by Andrew Lawson, Esq., Senior Contract Attorney