Building machine learning models involves exactly the kind of trial and error the research credit was written for. But not every AI project qualifies, and the rules for software built for internal use are stricter. Here is how AI and ML work is treated for the 2026 tax year.
Get a Free R&D Credit Review
Tell us about your business and a specialist from our partner network will follow up.
"*" indicates required fields
Short answer: AI and machine learning development can qualify for the R&D tax credit when engineers work to resolve technical uncertainty, such as whether a model architecture, training approach or data pipeline can meet accuracy, latency or cost targets, through a process of experimentation. There is no separate AI credit; AI work is software development under the normal Section 41 rules. AI built for your own back-office use is internal-use software and must also pass a high threshold of innovation test. Qualifying costs include engineer wages, cloud and GPU compute rented for development and training, and 65% of U.S. contractor costs.
The credit is the federal R&D tax credit. Because AI is software, our software development guide covers the internal-use software rules in more depth.
AI Work That Often Qualifies (and What Doesn’t)
| Often qualifies | Usually does not qualify |
|---|---|
| Designing and testing new model architectures where performance targets were uncertain | Calling a vendor’s model API with known methods and no technical uncertainty |
| Experimenting with training methods, loss functions or fine-tuning approaches | Routine prompt writing or configuration of an off-the-shelf AI tool |
| Building data pipelines, retrieval systems or inference infrastructure that had to meet new scale or latency goals | Data entry, routine data cleaning and labeling done to a settled specification |
| Developing evaluation frameworks and test harnesses for a model under development | Monitoring and maintenance of a model after release |
| Reducing model size, cost or latency through tested alternatives | Market research, user surveys and A/B tests of marketing copy |
The four-part test asks whether you faced uncertainty about capability, method or design, and whether you evaluated alternatives through modeling, testing or trial and error. ML teams usually generate this evidence naturally: experiment tracking logs, training runs, evaluation metrics and notes on why one approach was dropped for another.
Internal-Use AI vs Customer-Facing AI
Treasury regulations treat software developed mainly for general and administrative functions (finance, HR, legal, purchasing and similar support services) as internal-use software. An AI tool that screens job applicants or reconciles invoices for your own staff is likely internal use. AI that you sell or license, or that lets customers initiate functions or review data on your system, is not.
| Type | Example | Test that applies |
|---|---|---|
| Sold, licensed or customer-facing | An AI feature inside your SaaS product, a model you license | Standard four-part test |
| Internal use | An AI assistant for your own HR or accounting team | Four-part test plus the high threshold of innovation test |
| Dual function | A model used by both staff and customers | Split the third-party portion if you can; a safe harbor may allow 25% of the rest |
The high threshold of innovation test requires that internal-use software be innovative (a substantial, economically significant improvement), involve significant economic risk because of technical uncertainty, and not be commercially available without modifications that would themselves meet those tests. A company building on a commercially available AI platform for its own back office will often have trouble with the third part.
Qualified Research Expenses for AI Teams
| Cost | Counts as a QRE? | Notes |
|---|---|---|
| ML engineers, data scientists and researchers | Yes, for research time | Includes first-line managers who directly supervise the work |
| Rented cloud and GPU compute for development and training | Yes, as amounts paid for the right to use computers in qualified research | Compute serving customers in production does not count |
| GPUs and servers you buy | No | Depreciable property; deducted under depreciation rules, not the credit |
| U.S. contractors and research partners | 65% of payments | You must bear the cost of failure and keep substantial rights |
| Offshore engineering teams | No | Foreign research is excluded and amortized over 15 years |
| Licensed data sets and model licenses | Generally no | Not wages, supplies or computer-use costs; ask your adviser about specific facts |
Hypothetical example. Say an AI startup has $900,000 of research wages and $300,000 of rented training and development compute this year, and no QREs in one of the prior three years. Its QREs are $1.2 million and its ASC is 6% × $1.2 million = $72,000, before any Section 280C election. If it is a qualified small business, it can use that amount against payroll taxes.
Documentation for ML Projects
Experiment tracking tools already capture much of what an examiner asks for. Keep:
- The technical goal of each model or system at the start, such as an accuracy, latency or cost target, and why it was uncertain.
- Experiment logs, training runs and evaluation results, including approaches that failed.
- Design documents and architecture decisions with the alternatives considered.
- Time records or ticket tags linking engineers to each project, so research time can be separated from maintenance and support.
- Cloud invoices or usage reports that separate development and training environments from production.
Section 174A, the Payroll Offset and Section G
| Spending | Tax treatment after OBBBA (P.L. 119-21) |
|---|---|
| Domestic R&E (tax years beginning after 2024) | Deducted in full under Section 174A, or elect to amortize over at least 60 months |
| Foreign R&E | Still amortized over 15 years under Section 174; never a QRE for the credit |
- Under Section 174A, amounts paid in connection with developing software are treated as research expenditures by statute, so domestic AI development costs are deductible in the current year for tax years beginning after 2024, whether or not they earn the credit.
- AI startups with less than $5 million of gross receipts and no receipts before the last five years can use the payroll tax offset of up to $500,000 a year.
- For tax years beginning after 2025, Form 6765 Section G asks you to report each software business component and classify it as internal use, dual function or not internal use, unless you fall under an exception.
- Decide on the Section 280C election before you file; it cannot be made on an amended return.
Related guides: startups, engineering firms and automotive. Estimate your credit with the R&D tax credit calculator.
Frequently Asked Questions
Does AI development qualify for the R&D tax credit?
Yes, when the work resolves technical uncertainty through experimentation, such as developing or training models whose performance was uncertain. It follows the normal software rules; there is no separate AI credit.
Do GPU and cloud training costs qualify?
Amounts paid for the right to use computers in qualified research, such as rented cloud or GPU capacity for development and training, can qualify. Hardware you buy does not, and production inference serving customers does not.
Does using ChatGPT or another vendor model in my product qualify?
Simply calling a vendor model with known methods usually does not. Engineering work that faced real technical uncertainty, such as building a new retrieval or evaluation system around it, may.
Is an internal AI tool eligible for the credit?
It can be, but internal-use software for back-office functions must also pass the high threshold of innovation test, which is harder to meet.
Can I deduct AI development costs in 2026?
Domestic software development costs are research expenditures under Section 174A and are deductible in the current year for tax years beginning after 2024, or you can elect to amortize them.
See what your business qualifies for. One free review covers cost segregation, R&D, hiring credits and benefits savings together. Call 360-641-7709 or use the button below.
Last updated November 3, 2026. This page is general information, not tax or legal advice. Confirm your situation with a qualified tax professional.
Sources
- Treas. Reg. §1.41-4, qualified research and internal-use software (Cornell LII)
- 26 U.S.C. §41, credit for increasing research activities (Cornell LII)
- 26 U.S.C. §174A, domestic research or experimental expenditures (Cornell LII)
- IRS Instructions for Form 6765 (Rev. December 2025)
- IRS: Research credit against payroll tax for small businesses