Contracts

Retainer agreement template for agencies, with rollover and overage clauses

A retainer agreement sets a monthly fee for a fixed amount of your team's time, and says what happens at the edges: unused hours, extra hours, urgent requests and work too big for the retainer. This template bills in advance, caps and expires rollover, sets an overage rate, and quotes projects separately.

Scope & Bill · Updated

A retainer looks like the easiest contract in the business. A monthly fee, a number of hours, done. Then the first quiet month arrives and the client asks for a credit. Or the client stores up three months of unused hours and wants them all in the week before a launch. Or a “small tweak” turns out to be a new checkout flow, and the client is surprised it is not covered.

Every one of those is an edge case, and a retainer agreement is mostly a document about edges. The middle takes one sentence. This template spends its length on the parts that go wrong.

Retainer Agreement

This Retainer Agreement (the "Agreement") is made on [EFFECTIVE DATE] (the "Effective Date") between [AGENCY LEGAL NAME], a [STATE] [ENTITY TYPE] with its principal office at [AGENCY ADDRESS] (the "Agency"), and [CLIENT LEGAL NAME], a [STATE] [ENTITY TYPE] with its principal office at [CLIENT ADDRESS] (the "Client").

The Client wants the Agency to be available each month for ongoing work on [SYSTEM OR PRODUCT NAME] (the "System"). This Agreement sets out what the monthly fee covers, what it excludes, and how everything else is quoted.

1.Scope of the retainer

1.1Each month the Agency will provide the following services for the System, up to the Included Hours (the "Retained Services"):

  • Bug fixes and troubleshooting
  • Minor enhancements and adjustments to existing features
  • Routine maintenance, including dependency and security updates
  • Monitoring of [UPTIME, ERRORS, BACKUPS] and response to alerts during business hours
  • Technical advice, planning and attendance at up to [NUMBER] scheduled meetings per month
  • [OTHER RETAINED SERVICE]

1.2The Client will submit requests through [TICKETING SYSTEM OR EMAIL ADDRESS]. The Client's named contact, [CLIENT CONTACT], sets the priority of open requests. The Agency works on requests in that priority order.

1.3The retainer reserves the Agency's capacity for the Client. The monthly fee is payable for that reserved capacity whether or not the Client uses all of the Included Hours.

2.Included hours

2.1The retainer includes [NUMBER] hours of the Agency's time in each calendar month (the "Included Hours").

2.2All time the Agency spends for the Client counts toward the Included Hours, including development, testing, project management, meetings, calls, written communication and deployment.

2.3The Agency records time in increments of [15] minutes and will send the Client a report of hours used, by request, with each monthly invoice.

2.4The Agency will tell the Client when [80]% of the Included Hours for a month have been used.

3.Rollover

3.1If the Client uses fewer than the Included Hours in a month, the unused hours carry over to the following month, up to a maximum of [20]% of the Included Hours (the "Rollover Hours").

3.2Rollover Hours are used only after the Included Hours for the current month have been used. Rollover Hours that are still unused at the end of the month after the one in which they arose expire.

3.3Unused hours beyond the rollover limit expire at the end of the month. Unused and expired hours have no cash value and are not refunded or credited, including on termination.

4.Overage

4.1Time beyond the Included Hours and any Rollover Hours is charged at the overage rate of [RATE] per hour (the "Overage Rate") and invoiced monthly in arrears.

4.2The Agency will obtain the Client's written approval before working more than [NUMBER] hours of overage in a month. Approval by email from the Client's named contact is sufficient.

4.3The Agency will use reasonable efforts to meet requests for overage but does not guarantee capacity beyond the Included Hours.

4.4If the Client exceeds the Included Hours in [3] consecutive months, either party may ask to move to a larger retainer under section 10.

5.Response times

5.1The Agency will respond to requests within the following targets during its business hours of [HOURS], [TIME ZONE], Monday to Friday, excluding public holidays in [STATE]:

PriorityDefinitionResponse target
CriticalThe System is down or unusable for most users[2] business hours
HighA major feature is broken and no workaround exists[4] business hours
NormalA defect with a workaround, or a routine request[1] business day
LowA question, a cosmetic issue or a planned enhancement[3] business days

5.2A response means that a qualified member of the Agency's team has acknowledged the request and begun to assess it. Response targets are not resolution times. The time needed to resolve a request depends on its cause.

5.3The Agency sets the priority of each request by applying the definitions in section 5.1, after considering the Client's view.

5.4This Agreement does not include support outside business hours. If the Client asks for work outside business hours and the Agency is able to provide it, that time is charged at [1.5] times the Overage Rate and does not draw on the Included Hours.

5.5The response targets do not apply during any period when the Services are suspended under section 6.4, or where the Agency does not have the access it needs.

6.Fees and billing

6.1The monthly retainer fee is [MONTHLY FEE] (the "Monthly Fee").

6.2The Agency invoices the Monthly Fee in advance, on or about the [1st] day of each month, for that month. Each invoice is due within [7] days of the invoice date. If this Agreement starts part-way through a month, the first Monthly Fee and the Included Hours are prorated.

6.3Overage, out-of-hours work and approved expenses are invoiced in arrears with the next monthly invoice and are due on the same terms.

6.4If an invoice is more than [7] days overdue, the Agency may suspend the Retained Services on written notice until it is paid. The Monthly Fee continues to accrue during a suspension. Overdue amounts bear interest at 1.5% per month, or the highest rate the law allows if that is lower.

6.5The Client will reimburse third-party costs, such as hosting, licenses and paid services, at cost, where the Client approved them in writing in advance. Fees exclude sales and similar taxes, which the Client will pay.

7.Minimum term and notice

7.1This Agreement starts on the Effective Date and runs for an initial term of [6] months (the "Minimum Term"). After the Minimum Term it continues month to month until terminated.

7.2Either party may terminate this Agreement by giving at least [60] days' written notice. The notice may be given during the Minimum Term but cannot take effect before the Minimum Term ends.

7.3Either party may terminate this Agreement immediately by written notice if the other materially breaches it and does not cure the breach within 15 days after written notice, or 10 days where the breach is a failure to pay.

7.4If the Client ends this Agreement before the end of the Minimum Term or without giving the full notice period, other than under section 7.3, the Monthly Fees for the rest of the Minimum Term and the notice period become due immediately.

7.5The Monthly Fee remains payable in full during the notice period, and the Agency will continue to provide the Retained Services during it. At the Client's request the Agency will use the Included Hours in the final month for handover to the Client or its new supplier.

8.Annual rate review

8.1The Agency may change the Monthly Fee and the Overage Rate once in each 12-month period, with effect from any anniversary of the Effective Date, by giving the Client at least [60] days' written notice.

8.2If an increase is more than [8]% above the fee or rate then in force, the Client may terminate this Agreement with effect from the date of the increase by giving written notice within 30 days of receiving the Agency's notice. Section 7.4 does not apply to that termination.

9.Exclusions and separately quoted projects

9.1The following are not Retained Services and are not covered by the Monthly Fee:

  • New features, new integrations, redesigns and rebuilds
  • Any single piece of work that the Agency estimates will take more than [20] hours
  • Work on any system other than the System
  • Migration to a new platform, framework or hosting provider
  • Fixing problems caused by changes made by the Client or a third party
  • Recovery from a security incident or data loss that the Agency did not cause
  • Content writing, design production, marketing and training
  • Third-party costs

9.2Work described in section 9.1 is a "Project". When a request is a Project, the Agency will tell the Client before starting it and will provide a written quote or statement of work with a fixed fee or an estimate, a timeline and payment terms. The Agency starts a Project only after the Client approves the quote in writing.

9.3Projects are invoiced separately from the Monthly Fee and do not draw on the Included Hours, unless the parties agree in writing that a particular small Project may do so.

9.4The Agency may charge its time for scoping and estimating a Project against the Included Hours.

10.Changing the retainer level

10.1The Client may increase the Included Hours from the start of any month by written agreement with the Agency, subject to the Agency's capacity. The Monthly Fee will increase accordingly.

10.2After the Minimum Term, the Client may reduce the Included Hours on [60] days' written notice, to no fewer than [MINIMUM HOURS] hours per month.

11.Client responsibilities

11.1The Client will give the Agency the access, credentials, information and decisions it needs to provide the Retained Services, and will keep its named contact available to answer questions.

11.2The Client is responsible for its own content and data, for its compliance with laws that apply to its business, and for telling the Agency before it or any third party changes the System.

12.Intellectual property

12.1"Agency Materials" means all code, libraries, frameworks, components, tools, scripts, templates, methods and know-how that the Agency owned before the Effective Date, develops independently of this Agreement, or develops while providing the services and that are general-purpose in nature and reusable across clients, together with all improvements to them.

12.2On the Agency's receipt of full payment of the Monthly Fee and other charges for the month in which the work was done, the Agency assigns to the Client all right, title and interest in the work product created specifically for the System under this Agreement, excluding Agency Materials and third-party materials.

12.3The Agency keeps ownership of the Agency Materials. Where Agency Materials are incorporated into the System, the Agency grants the Client, on the same payment, a non-exclusive, perpetual, irrevocable, worldwide, royalty-free license to use, copy, modify and maintain them as part of the System, and to allow its employees, contractors and successors to do the same. The Client may not extract Agency Materials in order to sell or distribute them as a standalone product.

12.4Third-party and open source materials are licensed to the Client by their owners on their own terms.

12.5The Agency may use the general skills, knowledge and experience gained under this Agreement in its work for others, provided it does not use or disclose the Client's confidential information.

13.Confidentiality

13.1Each party will keep confidential all non-public information it receives from the other, use it only for the purposes of this Agreement, and disclose it only to its employees, contractors and advisers who need to know it and are bound by equivalent obligations.

13.2Section 13.1 does not apply to information that is public through no fault of the receiving party, that the receiving party already knew or independently developed, or that the law requires to be disclosed. These obligations continue for [3] years after this Agreement ends.

14.Warranties and liability

14.1The Agency will provide the Retained Services in a professional and workmanlike manner. If the Client reports within 30 days that work did not meet this standard, the Agency will correct it, and the time spent on the correction will not count toward the Included Hours. This is the Client's exclusive remedy for a breach of this warranty.

14.2The Agency does not warrant that the System will be free of errors, secure against every threat, or available without interruption. EXCEPT AS STATED IN SECTION 14.1, THE AGENCY MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

14.3NEITHER PARTY IS LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, OR FOR ANY LOSS OF PROFITS, REVENUE OR DATA. EACH PARTY'S TOTAL LIABILITY ARISING OUT OF THIS AGREEMENT IS LIMITED TO THE FEES THE CLIENT PAID UNDER THIS AGREEMENT IN THE 12 MONTHS BEFORE THE EVENT THAT GAVE RISE TO THE CLAIM. These limits do not apply to the Client's obligation to pay fees, to fraud or willful misconduct, or to any liability that the law does not allow to be limited.

15.Relationship of the parties

15.1The Agency is an independent contractor and is solely responsible for its own personnel, taxes and insurance. Nothing in this Agreement creates an employment, partnership or agency relationship.

15.2During this Agreement and for 12 months after it ends, neither party will solicit for employment or engagement any employee or contractor of the other who worked on the Retained Services, without the other's written consent.

16.General

16.1This Agreement is governed by the laws of the State of [STATE], without regard to its conflict of laws rules. The state and federal courts located in [COUNTY], [STATE] have exclusive jurisdiction over any dispute arising out of it.

16.2If the parties have signed a master services agreement, its terms also apply to this Agreement. If the two conflict on a subject that this Agreement addresses, this Agreement prevails.

16.3This Agreement is the entire agreement between the parties on its subject matter. It may be amended only in writing signed by both parties. Neither party may assign it without the other's written consent, except to a successor to all or substantially all of its business.

16.4Notices must be in writing and may be sent by email to the addresses in the signature block. This Agreement may be signed in counterparts and by electronic signature.

16.5Sections 3.3, 6, 7.4, 12, 13, 14, 15.2 and 16 survive termination.

The AgencyThe Client
[AGENCY LEGAL NAME][CLIENT LEGAL NAME]
Signature:Signature:
Name: [NAME]Name: [NAME]
Title: [TITLE]Title: [TITLE]
Email for notices: [EMAIL]Email for notices: [EMAIL]
Date: [DATE]Date: [DATE]

Download the editable .docx

Retainer agreement, as a Word file you can change, with the clause notes at the back. Free. No email, no sign-up.

Download the file

What the client is buying

Section 1.3 is the most important sentence in the agreement:

The retainer reserves the Agency’s capacity for the Client. The monthly fee is payable for that reserved capacity whether or not the Client uses all of the Included Hours.

There are two ways to think about a retainer. In one, the client has bought a block of hours and expects to get all of them or a refund. In the other, the client has reserved part of your team, and the fee pays for those people being available. Your costs follow the second model. You pay salaries whether the client sends tickets or not. The contract has to follow it too.

Say this in the sales conversation, and again when you walk the client through the agreement. A client who signs believing it bought a bank of hours will feel cheated the first time hours expire, whatever the paper says.

How to set the fee, the discount for commitment and the right number of hours is a pricing question, covered in the guide to retainer pricing. The retainer calculator works out the monthly fee and the point where a client should move to a project instead.

Rollover: limited, and it expires

Clients ask for rollover in almost every retainer negotiation, and the request is fair. Work comes in waves. A client that used 28 of 40 hours in August does not want to lose all 12.

The danger is unlimited rollover. Take a 40-hour retainer where the client uses 25 hours a month for four months. With unlimited rollover it now holds 60 banked hours. In month five it asks for its 40 plus the 60. You are contractually on the hook for 100 hours in one month from a team you staffed for 40, and you were paid for those hours months ago and have long since spent the money.

Section 3 fixes this with three rules:

RuleTemplate defaultWhy
Cap20% of monthly hours, so 8 hours on a 40-hour retainerLimits the worst-case month to 48 hours
Order of useCurrent month’s hours firstRollover is a buffer for busy months
ExpiryEnd of the following monthNothing accumulates

Clients often ask for rollover hours to be used first. Concede that if it matters to them. The cap and the expiry are what protect you. Section 3.3 adds that unused hours have no cash value, including on termination, which heads off the final-month request to be paid out for a year of unused time.

Overage and the hours that count

Section 2.2 says all time counts toward the included hours: development, testing, project management, meetings and written communication. Agencies that leave this out find that a 40-hour retainer consumes 55 hours of real time, with the difference lost in calls and messages nobody logged.

Once the hours are used, section 4 applies an overage rate. Set it at your standard hourly rate or higher. The retainer rate carries a discount in exchange for commitment. Hours outside the commitment have not earned it.

Here is a worked example. Standard rate $160 an hour. Retainer of 40 hours at an effective $144, a 10% discount, for a monthly fee of $5,760. Overage at $160. A month with 47 hours of work costs the client $5,760 plus 7 hours at $160, which is $1,120, for a total of $6,880.

Section 4.2 requires the client’s approval before overage passes a set number of hours, and section 2.4 commits you to a warning at 80% usage. Both protect the client from a surprise invoice, and that protects you from the dispute that follows one. Section 4.4 says that three consecutive months of overage is grounds to discuss a larger retainer, which gives you a contractual opening for a conversation you should be having anyway.

Response times that you can actually meet

The table in section 5.1 sets four priority levels with response targets in business hours. Section 5.2 defines what a response is:

A response means that a qualified member of the Agency’s team has acknowledged the request and begun to assess it. Response targets are not resolution times.

Commit to response times and leave resolution times out of the contract. You control how quickly someone picks up a ticket. You have no control over how long it takes to fix a failure inside a payment provider or a hosting platform.

Section 5.4 keeps the retainer to business hours. If a client needs cover on evenings and weekends, that is an on-call service. Somebody on your team has to stay near a laptop, and that should carry its own monthly fee. Do not let it slide into a standard retainer through a generous reading of “critical”.

Billing in advance, minimum term and notice

Billing in advance, section 6.2. The fee for each month is invoiced at the start of that month and due within seven days. This is the main financial advantage of retainer work: you collect before you pay the payroll that delivers it. If a client’s procurement rules require 30-day terms, invoice 30 days earlier. Keep the cash arriving at the start of the month.

Minimum term, section 7.1. Six months. The first two months of a retainer are your least profitable, because the team is learning the system. A minimum term lets you recover that investment.

Notice, section 7.2. Sixty days, and notice cannot take effect before the minimum term ends. You have reserved people for this client. Sixty days is about what it takes to fill that capacity with other work.

Early exit, section 7.4. If the client leaves early or without full notice, the fees for the remaining term and notice period fall due. Without this, the minimum term is a suggestion.

Annual rate review, section 8. Once a year, on 60 days’ notice, you can adjust the fee. The client gets an exit right if the increase is above 8%. Retainers without this clause drift for years at the original price, because raising it requires a conversation nobody wants to start. The clause schedules the conversation.

What the retainer excludes

Section 9 is where most retainer disputes are won or lost. A client with a maintenance retainer will, sooner or later, ask for a new feature and expect it to come out of the hours.

The template uses an objective test: any single piece of work estimated at more than 20 hours is a project. So are new features, new integrations, redesigns, migrations and recovery from problems someone else caused. Section 9.2 sets the process:

When a request is a Project, the Agency will tell the Client before starting it and will provide a written quote or statement of work with a fixed fee or an estimate, a timeline and payment terms.

Larger projects get a full statement of work. Smaller ones can run on a short quote. Section 9.3 leaves you free to let a small project draw on retainer hours when that suits both sides, which is useful in a slow month.

Without this section, a retainer becomes the channel through which unpriced project work arrives, one “quick request” at a time. That is scope creep with a monthly invoice attached.

Ownership of retainer work

Section 12 takes the same position as every contract in this set. The client owns the work created specifically for its system once that month’s fees are paid. You keep your pre-existing and general-purpose code, tools and know-how, and the client gets a perpetual license to use them inside its system.

This matters more on a retainer than agencies expect. Over two or three years of maintenance you bring a great deal of your own tooling into a client’s codebase: monitoring scripts, deployment pipelines, shared components. Under an “all work product” clause, each of those would become the client’s property the month you installed it. The client has no use for owning them. It needs them to keep working after you leave, and the license guarantees that. The full argument is in who owns the code.

Using it alone or under an MSA

The agreement stands on its own, with short-form confidentiality, liability and governing law terms. If you already have a master services agreement with the client, section 16.2 slots the retainer under it, and the retainer’s own terms win on retainer-specific subjects such as advance billing and the minimum term.

A good moment to send this agreement is the last week of a project’s warranty period. The client has just launched, already has a list of changes, and is about to find out that fixes are no longer free. The other documents in the set are on the contracts hub.

This is a working document from a practitioner. Have a lawyer in your jurisdiction review it before you sign.

Common questions

What should a retainer agreement include?
The services covered, the hours included each month, a rollover rule, an overage rate, response times, billing in advance, a minimum term, a notice period, a rate review, and a list of exclusions with a process for quoting larger work separately.
Should unused retainer hours roll over?
A limited amount, for a limited time. This template carries over up to 20% of the monthly hours for one month, after which they expire. Unlimited rollover lets a client bank months of hours and call them in at once.
Should a retainer be billed in advance or in arrears?
In advance. The client is paying to reserve capacity for the coming month, and you pay your team whether or not the hours are used. Overage is the only part billed in arrears.
What is a reasonable notice period for ending a retainer?
Sixty days is a sound default after a minimum term of six months. It gives the agency time to redeploy the people it reserved. Thirty days is a common concession for clients that have been with you for over a year.