Not legal or tax adviceThis article is general information only and is not legal or tax advice. Nothing on this website constitutes legal or tax advice. SR&ED eligibility and credit amounts depend on your facts and on CRA’s review. Please consult a qualified tax or legal professional before acting on anything here. See our Terms of Use.
Research and Blogs › Eligibility

Does AI-Written Code Still Qualify for SR&ED?

By SRED Experts · Updated November 29, 2026 · 3 min read

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
Where AI tools change the pictureWhere AI tools change the pictureLikely routineBoilerplate the tool writes first tryStandard integrations and CRUD screensKnown patterns applied to new dataBug fixes using known methodsCan still be SR&EDArchitecture where no known approachworksPerformance or scale limits you had totest pastModel behaviour you couldn’t predictIterating because tool output failedThe test is the uncertainty resolved, not who or what typed the code.
Illustration: Where AI tools change the picture. SRED Experts.

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.