Does AI-Written Code Still Qualify for SR&ED?
New to SR&ED? Start with What Is SR&ED?
Most software teams now use AI coding assistants every day. A fair question follows: if a tool wrote part of the code, does the work still count for SR&ED?
The short answer
CRA’s test hasn’t changed. SR&ED looks at whether you faced a technological uncertainty that standard practice couldn’t resolve, and whether you worked through it systematically. It doesn’t ask who, or what, typed the code. Using an AI tool doesn’t disqualify a project, and it doesn’t make routine work eligible.
Where AI tools make work routine
AI assistants are very good at the parts of software that were already routine: boilerplate, standard integrations, familiar patterns. If the tool produced a working answer on the first try, that’s a strong sign the problem was solvable with known methods, and that part of the work probably isn’t SR&ED.
Where the real uncertainty still sits
The uncertainty usually lives a level up from individual lines of code:
- system architecture where no known design meets your constraints
- performance, latency or scale limits you had to test your way past
- data problems, such as noisy, sparse or unusual data that standard techniques don’t handle
- model behaviour you couldn’t predict and had to evaluate through experiments
When AI-generated code fails to meet those targets and the team has to form hypotheses, try alternatives and measure results, that iteration can be exactly the kind of work SR&ED supports.
What to document
- the technical goal and why known approaches, including AI-suggested ones, didn’t meet it
- approaches tried and rejected, with the reason
- benchmarks, test results and evaluation metrics over time
- tickets or commits that tie the work to people and dates
Salaries when AI does part of the work
The claim is based on the time your people spent on eligible work. If AI tools make the routine parts faster, the eligible share of a developer’s time may actually be higher, because more of their day goes to the hard problems. Time records by project are what make that visible.
For more on how software work is assessed, see our page on SR&ED for software companies.
Want to know which of your engineering work could qualify? Book a free assessment.
Any estimate is preliminary and not a guarantee of a claim, a refund amount or CRA approval.Related reading
Last updated November 29, 2026. This content is general information about the SR&ED program and related incentives, based on public sources available on that date. Rules and proposals can change. Any estimate is preliminary and not a guarantee of a claim, a refund amount or CRA approval. SRED Experts provides services only under a signed engagement letter. Content © SRED Experts. See our Terms of Use and Privacy Policy.