Your Service Business Built Custom AI Workflows. The IRS Owes You a Credit Worth 6-14% of Every Dollar Spent.

If this is you
You spent $80K in 2025 having a developer build custom integrations between your field service software, QuickBooks, and a Slack bot that flags overdue invoices. Maybe another $40K on AI workflows that draft customer follow-up emails. Your CPA filed your return. Nobody mentioned the R&D credit. You just left $7K-$17K of refundable tax credit on the table.
The Federal Research and Development Tax Credit (Section 41) is one of the most underclaimed credits in the entire tax code for service businesses. The reason is simple: the credit was designed in 1981 with images of pharmaceutical labs and aerospace engineers in mind. Most CPAs still have those images in their head when they read the qualifying language.
But Section 41 is much broader than that. If you spend money trying to develop or improve a process, product, software, technique, or system that involves uncertainty and experimentation, you may qualify. That language was deliberately broad. AI workflow development, custom software, system integrations, automated dashboards, and even improved operational processes can all qualify.
For a $4M service business that spent $150K on custom development and AI tooling in the past 18 months, the credit can be worth $9K-$21K — and for businesses under $5M in average gross receipts, it can be claimed against payroll tax, meaning you do not need a profit to use it.
Here is what qualifies, what doesn't, the four-part test, and how to file without painting a target on your back.
What the credit is actually worth
The R&D credit is calculated on Qualified Research Expenses (QREs), which are mostly:
- W-2 wages of employees performing or directly supervising qualified research
- Supplies consumed in research (rare for service businesses)
- 65% of contract research expenses paid to outside developers, consultants, or agencies
The credit is then either 14% (using the simplified Alternative Simplified Credit calculation) or up to 20% (using the more complex regular method). For most service businesses without prior R&D claims, the 14% ASC method is the right call.
So if you spent $100K on a developer building custom workflow integrations:
- $100K × 65% (contract research factor) = $65K of QRE
- $65K × 14% (ASC rate) = $9,100 federal credit
Plus state credits if your state has them. California's credit is a separate 15%, Texas has a 5% credit, Massachusetts has a 10% credit, and most other states have varying levels. State credits typically stack with federal.
For service businesses under $5M in average gross receipts AND in their first five years of operations, there's a special election — the credit can offset up to $500K/year of FICA payroll taxes (the Social Security portion of payroll tax) instead of income tax. This means even unprofitable startups can monetize the credit.
The four-part test in plain English
For an expense to qualify as QRE, the underlying activity must satisfy all four of these tests:
1. Permitted Purpose
The activity must be intended to develop or improve a business component — meaning a product, process, software, technique, formula, or invention. Custom internal software counts as a "business component." This is critical for service businesses.
2. Technological in Nature
The activity must rely on principles of physical, biological, computer, or engineering science. Software development is computer science, full stop. Process automation that uses scripts, APIs, or AI is computer science.
3. Elimination of Uncertainty
At the start of the project, you must be uncertain about either the capability of developing the result, the appropriate method to develop it, or the appropriate design. If you knew exactly how to build it before you started, it doesn't qualify. If you experimented with different approaches, libraries, models, prompts, or architectures, it does.
4. Process of Experimentation
The activity must involve evaluation of one or more alternatives — testing, modeling, prototyping, iteration. Standard development practice (write code → test → refactor → test again) is a process of experimentation. This is the test most CPAs assume requires a lab. It does not.
What qualifies for service businesses (real list)
Based on returns I've prepared and credits I've defended over the past 45 years, here's what consistently qualifies for service-business R&D credits:
Custom software development:
- Internal dashboards built in Retool, Airtable, custom React apps, or in-house tools
- Custom integrations between QuickBooks, ServiceTitan, BuildOps, Salesforce, HubSpot, etc.
- Workflow automation in tools like Zapier, n8n, Make, or custom Python scripts
- Custom AI agents, prompts, RAG systems, fine-tuned models built for specific business processes
- Internal mobile apps for field crews, technicians, sales teams
Process improvement with technical uncertainty:
- Re-engineering job-costing methodology with new data sources
- Building new estimating models using historical data
- Designing custom QA processes with measurement and iteration
- Implementing predictive maintenance algorithms
AI-specific implementation work:
- Custom GPT/Claude/Gemini integrations beyond basic API calls
- RAG pipelines built on company-specific data
- Fine-tuned models or LoRA adapters
- Voice AI integrations for call handling, dispatch, or scheduling
- Computer vision systems for site monitoring, equipment tracking, or QA
What does NOT qualify:
- Buying off-the-shelf software (the vendor already did the R&D)
- Standard QuickBooks setup and bookkeeping
- Marketing campaigns and copywriting (no technological uncertainty)
- Hiring a virtual assistant
- Customizing existing templates without iteration
- Subscribing to ChatGPT and using it without custom integration
The general line: if you (or a contractor you hired) wrote code, designed a model, or engineered a system that didn't already exist in working form, it likely qualifies.
Free profitability audit
Stop overpaying tax. Start planning forward.
We benchmark your books against 2,200+ service businesses and tell you exactly where the money is going.
The documentation problem (and how to solve it)
The R&D credit has a reputation for being audit-bait. That reputation is half-deserved. Audits are not common for credits under $50K, but they happen — and the IRS will demand documentation that establishes:
- What you were trying to develop (project description, business component)
- What was uncertain at the start (the technical questions)
- How you experimented (iteration log, testing notes)
- Who did the work (employee time, contractor invoices)
- What you spent (payroll records, invoices)
The good news: most of this documentation already exists in your project management tools. Slack threads, Linear/Jira tickets, GitHub commits, contractor invoices with line-item descriptions, and meeting notes from "let's try a different approach" conversations are all valid contemporaneous evidence.
The work in claiming the credit is mostly in organizing existing artifacts into a research narrative for each project. A specialist firm or an EA experienced in R&D claims can do this in 8-15 hours for a typical $5M service business with 2-4 qualifying projects.
How to actually file
The mechanics:
Form 6765 — "Credit for Increasing Research Activities" — filed with your tax return. For payroll tax offset election (if you qualify), also file Form 8974 with your quarterly Form 941.
Election deadline: the payroll tax offset election must be made on a timely-filed tax return for the year of the QREs. You cannot retroactively claim payroll offset on an amended return — you can amend to claim the regular credit, but not to elect payroll offset.
Recommended: if your QREs are over $50K, hire a specialist firm or an EA experienced in R&D credits. Fees typically run 15-25% of the credit recovered, often on contingency. For QREs under $50K, an EA with R&D experience can prepare the credit calculation and Form 6765 for $1,500-$3,500 flat fee.
Three reasons most CPAs don't suggest this
1. Risk-aversion conditioning
CPAs are trained to minimize audit exposure. The R&D credit has a (somewhat overstated) reputation as an audit flag. The path of least professional resistance is to not file it. The owner pays the price for that conservatism.
2. The four-part test sounds like it needs a lab
The "process of experimentation" language has been interpreted in IRS guidance and Tax Court cases far more broadly than the original 1981 statute suggested. But many CPAs read the statute and assume "experimentation" means white-coat science. It doesn't. It means iterative development with technical uncertainty. Almost all custom software work qualifies.
3. Most CPAs don't know about the payroll offset
The payroll-tax offset election was added in 2015 and expanded in 2022. Many CPAs trained before 2015 are unaware that early-stage service businesses can monetize the credit even without taxable income. This is the single biggest miss.
What to do in the next 30 days
If you've spent meaningful money on custom software, AI implementation, or technical process work in 2024 or 2025, here is the playbook:
Week 1: List all custom development projects from the past 24 months with: project name, what you were trying to build, what was unclear at the start, who worked on it, and approximate spend.
Week 2: Match each project against the four-part test. Be honest. Most software development projects pass; most marketing and operational projects don't.
Week 3: Calculate estimated QRE: contractor invoices × 65% + employee time × wages allocated to qualifying activities.
Week 4: Bring this to your CPA or to an EA experienced in R&D claims. If your CPA's first response is "we don't usually do those," find a second opinion. Refunds are still available for the past three tax years on amended returns (regular credit, not payroll offset).
The tax code rewards risk-taking, experimentation, and innovation. Section 41 is one of the few places where it does so explicitly. Most service businesses leave the credit on the table because nobody told them it applied to their work. It does.
Estimate your R&D credit eligibility in 2 minutes or book a free 30-min audit — we'll review your custom development spend and tell you whether the credit makes economic sense to claim.
Related reading
Get the next one
Want next week's benchmark in your inbox?
One email a week. Real numbers from 2,200+ service businesses. No fluff. Unsubscribe anytime.
Related reads
Tax Strategy
If You're a Doctor, Lawyer, or Consultant Earning Over $383K, You Just Lost Your 20% QBI Deduction. Here's the Workaround.
The Section 199A QBI deduction is worth 20% of business income. For "Specified Service Trades or Businesses" — doctors, lawyers, accountants, consultants, financial services — the deduction phases out completely above $383K (single) / $483K (married). Three legal workarounds that recover most or all of the deduction.
Tax Strategy
The $250K Tax Deduction Your CPA Forgot to Mention: Cash Balance Plans for $3M-$10M Service Businesses
401(k) caps out around $77K/year. SEP-IRA caps out around $70K. A cash balance pension plan layered on top can deduct $150K-$300K more in pre-tax contributions for an owner over 45. Most CPAs don't suggest it because setup is more involved. The tax savings are real and worth the friction.
Tax Strategy
You Bought the Building Your Service Business Operates Out Of. The IRS Will Refund You $50K-$300K — If You Ask Within 12 Months.
Service business owners who purchase their own commercial real estate (HVAC shops, dental offices, MedSpas, contractor warehouses) almost always miss cost segregation. A $1.2M building purchase typically generates $80K-$200K of accelerated first-year deduction with bonus depreciation — $25K-$70K of immediate tax savings.

About the author
Kenneth May
Partner — Tax Strategy
Enrolled Agent and tax planning specialist with 45+ years of practice. Owner of B A Services Inc. (Standish, Michigan), focused on tax strategy for medical, legal, real estate, and e-commerce businesses in the $1M–$5M revenue band. As an EA, federally licensed to represent taxpayers before the IRS in all 50 states. Specializes in entity structuring, strategic tax deferral, R&D and other under-claimed credits, and retirement-plan design for owner-operators. Brings the tax-strategy lens to Level's content — the part most fractional CFOs ignore.
LinkedIn