As seen on



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

Name*

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 qualifiesUsually does not qualify
Designing and testing new model architectures where performance targets were uncertainCalling a vendor’s model API with known methods and no technical uncertainty
Experimenting with training methods, loss functions or fine-tuning approachesRoutine 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 goalsData entry, routine data cleaning and labeling done to a settled specification
Developing evaluation frameworks and test harnesses for a model under developmentMonitoring and maintenance of a model after release
Reducing model size, cost or latency through tested alternativesMarket research, user surveys and A/B tests of marketing copy
Illustrative. Each business component is evaluated on its own facts under the four-part test.

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.

TypeExampleTest that applies
Sold, licensed or customer-facingAn AI feature inside your SaaS product, a model you licenseStandard four-part test
Internal useAn AI assistant for your own HR or accounting teamFour-part test plus the high threshold of innovation test
Dual functionA model used by both staff and customersSplit the third-party portion if you can; a safe harbor may allow 25% of the rest
Treas. Reg. §1.41-4(c)(6).

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

CostCounts as a QRE?Notes
ML engineers, data scientists and researchersYes, for research timeIncludes first-line managers who directly supervise the work
Rented cloud and GPU compute for development and trainingYes, as amounts paid for the right to use computers in qualified researchCompute serving customers in production does not count
GPUs and servers you buyNoDepreciable property; deducted under depreciation rules, not the credit
U.S. contractors and research partners65% of paymentsYou must bear the cost of failure and keep substantial rights
Offshore engineering teamsNoForeign research is excluded and amortized over 15 years
Licensed data sets and model licensesGenerally noNot wages, supplies or computer-use costs; ask your adviser about specific facts
General rules under IRC §41(b).

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:

Section 174A, the Payroll Offset and Section G

SpendingTax 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&EStill amortized over 15 years under Section 174; never a QRE for the credit

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