Companies are putting serious money into AI: coding assistant seats, LLM API usage, agents that open pull requests and the compute to test and run them. For many software teams it’s now one of the fastest-growing lines in the engineering budget.
That raises two questions every finance leader should be asking. What is the investment producing? And how should those costs be documented?
AI spend can qualify, but using AI isn’t enough
AI spend on building software can qualify for the R&D tax credit, Section 174A and software capitalization, alongside the wages of the software engineers using it, when the work meets the rules.
The key words are “when the work meets the rules.” Using AI doesn’t make an expense eligible on its own. What matters is the same as it’s always been:
- The activity. For the federal credit, the work has to pass the four-part test in IRC §41(d): a permitted purpose, technological in nature, technical uncertainty at the start and a process of experimentation. AI-assisted development that builds new or improved software can meet that test. Routine use of AI for non-development tasks generally won’t.
- The cost type. Credit QREs include wages, supplies and amounts paid for the right to use computers in qualified research, which can cover some cloud and API costs. Section 174 and 174A cover research and experimental costs more broadly, and software development is treated as R&E by statute. Capitalization under ASC 350-40 follows its own criteria. Metered usage is easier to support than flat-fee seats.
- The connection. Each cost has to tie to qualifying work. An invoice from an AI vendor, on its own, shows that money was spent. It doesn’t show what was built.
Your CPA decides what qualifies. Your job is to give them evidence that connects the spend to the work.
The documentation gap
Here’s what AI-assisted development looks like in most repositories today:
- An AI coding agent opens a pull request.
- A software engineer prompted it, reviewed the changes and merged them.
- The tool’s cost arrives on a separate monthly invoice.
Nothing ties those three things together. Finance sees a bill. Engineering sees merged code. Nobody can say which projects the spend supported or which people directed the work.
That gap makes AI spend hard to include in an R&D claim and hard to defend if it is included. It also makes it hard to answer the business question: what is the AI investment producing?
What good evidence looks like
To support AI development spend, aim for records that show:
- What was built: the commits and pull requests the AI contributed to, tied to a project or business component
- Who directed it: the software engineer who prompted, reviewed and merged the work
- When it happened: dated, contemporaneous activity, not a year-end estimate
- What it cost: tool and usage costs connected to that activity
Treat AI the way you’d treat any other contributor to development work: the evidence should show the work, the people and the costs together.
How CodeROI helps
CodeROI captures development activity from source control as it happens, including work from any AI coding agent that commits code. It ties each AI action to the person who prompted it, the project and the date, so AI spend sits alongside human engineering in the same record.
The math is deterministic. Fixed rules map code events to people, projects and wages. There's no generative AI deciding what counts. CodeROI reads metadata, not your code.
That gives your CPA evidence for the credit and Section 174A, gives your accounting team support for capitalization and gives leadership a clear view of what the AI budget is building.
Know what your AI spend built. Book a 20-minute demo.
Sources: 26 U.S.C. §41(b) and §41(d); 26 U.S.C. §174 and §174A; Treas. Reg. §1.41-4; FASB ASC 350-40. Whether a specific AI cost qualifies depends on your facts; this is general information, not tax or accounting advice. CodeROI is a software platform, not a CPA firm, law firm or financial advisor, and does not provide tax, legal, financial or accounting advice.