Tax planning
R&D Tax Credit for Marketing Agencies: Do You Qualify?
Most agency owners assume the R&D tax credit is for software startups and biotech labs. If your agency built a proprietary tool, model, or integration this year, you may already qualify, and be leaving real money on the table.
7 min read
By Joshua Barnett · Founder, ThinkProfit · Digits Partner · Certified QuickBooks ProAdvisor
December 5, 2026
The R&D tax credit for marketing agencies is one of the most overlooked deductions in the industry, mostly because agency owners assume it belongs to software companies and pharmaceutical labs. It doesn't. If your agency has built a proprietary attribution model, a custom bid-optimization algorithm, or an internal tool that didn't exist off the shelf, you likely have qualified research expenses sitting in last year's payroll runs, uncredited. Here's how the credit actually works, what qualifies for a Marketing and Advertising Agency specifically, and what it's worth in real numbers.
What the R&D tax credit actually covers
The credit lives in Section 41 of the Internal Revenue Code and reduces tax liability dollar for dollar based on qualified research expenses, or QREs: wages for employees who design, build, or test qualifying work, a portion of supply and cloud compute costs tied directly to that work, and 65% of amounts paid to outside contractors for qualifying research performed on the agency's behalf. Most small and mid-size agencies use the Alternative Simplified Credit method: 14% of the current year's QRE above 50% of the average QRE from the prior three years, or 6% of the current year's QRE if the agency had none in any of those three years. The older regular credit method runs at 20% but requires base-period gross receipts data going back to the 1980s, which makes it impractical for most agencies under 20 years old.
Does a Marketing and Advertising Agency qualify for the R&D tax credit?
The IRS applies a four-part test: the work has a permitted purpose (a new or improved function, performance, or reliability), it's technological in nature (grounded in computer science or engineering, not marketing theory), it eliminates a genuine uncertainty about how to achieve the result, and it involves a process of experimentation, meaning systematic testing of alternatives, not a single attempt that happened to work. Work that tends to clear this bar: a proprietary ad-bid optimization algorithm, a custom attribution model stitching together data from five ad platforms, an internal API connecting ad accounts to a client's CRM, or a machine-learning model for audience segmentation built in-house. Work that doesn't: running campaigns inside Meta Ads Manager or Google Ads, writing copy, designing creative, posting content, or configuring an existing platform like HubSpot without custom development on top of it.
What counts as a qualified research expense
Wages count only for W-2 employees, and only for the tracked percentage of time they actually spent designing, coding, or testing the qualifying project, not a round estimate applied after the fact. A developer who splits time 60% building a proprietary reporting engine and 40% on routine client support contributes 60% of their wages to the QRE pool, and that split needs contemporaneous time records to survive a review. Supply costs cover cloud hosting and compute directly tied to development and testing, not the production environment once the tool is stable and running. Contract research counts at 65% of what's paid to an outside developer, but only if the agency retains the rights to the result and bears the financial risk if the project fails, not if a client commissioned and owns the output.
How much the credit is worth: a worked example
Say an agency spent $220,000 in time-tracked, qualifying W-2 wages this year building a proprietary cross-platform attribution dashboard, and claimed no R&D credit in any of the prior three years. Under the Alternative Simplified Credit's 6% rate for agencies with no prior QRE, that's a $13,200 federal credit applied straight against tax liability. If the agency had averaged $150,000 in QRE over the prior three years instead, the math shifts to 14% of the amount above half that average: 14% × ($220,000 − $75,000) = $20,300. More than 30 states layer their own R&D credit on top of the federal one, often with a different rate and base calculation, so the total can run higher once a CPA runs the state-specific numbers. A fractional CFO for marketing agencies is typically the one flagging which in-flight projects even qualify before the fiscal year closes, since the credit can't be claimed on work nobody tracked.
How to claim it: Form 6765 and the payroll tax offset
The credit is claimed on Form 6765, attached to the agency's federal income tax return. For a profitable agency, it's nonrefundable but offsets income tax liability dollar for dollar, which changes how much to set aside for quarterly estimated tax payments once the credit is factored in. For a newer or lower-margin agency with little income tax liability to offset, a separate election lets qualified small businesses, those under $5 million in current-year gross receipts with no gross receipts more than five years back, apply up to $500,000 of the credit per year against the employer's share of Social Security and Medicare payroll tax instead of waiting on income tax. Either way, the documentation has to exist before the audit, not after: time records by project, a technical narrative addressing the four-part test for each qualifying project, and general ledger detail tying specific wages and supply costs back to that project.
Common mistakes that get agencies audited or denied
The most frequent error is claiming an entire development team's wages when only a portion of their time was actually qualifying work, with no time-tracking to back up the percentage used. Close behind is mislabeling routine work as experimentation: testing whether an audience responds better to blue or green ad creative isn't the kind of technological uncertainty Section 41 means, even though agencies often call it "testing." A third is waiting until an audit notice arrives to write the technical narrative, which rarely holds up as contemporaneous documentation years after the fact. The fourth is double-dipping on contract research: claiming costs for work a client actually funded and owns the rights to, rather than work the agency paid for and retained ownership of.
Built something proprietary this year? Let's see what it's worth.
We'll review your qualifying projects, run the credit calculation both ways, and tell you what's actually worth claiming before your return is due.
Frequently asked questions
Does my agency have to build software from scratch to qualify?
No. Modifying, integrating, or substantially rewriting an existing system can qualify if it meets the four-part test, such as building a custom API layer between an ad platform and a client's CRM, or rebuilding an attribution model from scratch. Routine configuration inside an off-the-shelf tool, with no custom development, typically doesn't clear the bar.
Can I claim the R&D tax credit and still take the QBI deduction?
Yes, they apply to different parts of the return and aren't mutually exclusive. But the R&D credit changes the deductions that feed into the taxable income QBI is calculated from, so the two should be modeled together rather than filed separately. See our breakdown of the QBI deduction for agency owners for how that calculation works.
How far back can an agency claim R&D credits it missed?
Generally up to 3 years from the original filing date, or 2 years from when the tax was paid, whichever is later, by filing an amended return with Form 6765 attached. Past that window, the credit for those years is gone, which is the main reason to review eligibility annually instead of only when a CPA happens to ask.
About the author
Joshua Barnett is the founder of ThinkProfit, a bookkeeping and fractional CFO firm for marketing agencies, SaaS companies, and digital businesses. He is an official Digits Partner, a certified QuickBooks ProAdvisor, and previously ran the financial side of an M&A firm that acquired and operated digital marketing agencies.
ThinkProfit helps marketing agency owners find the deductions and credits a generic bookkeeper misses. Get a free quote to see what your books could be working harder to show.