Ricerca
Silicon ValleyAI StartupsSaaSStartupsR&D Tax CreditPayroll Tax CreditSection 41Section 174ACalifornia R&D CreditMachine LearningQualified Small BusinessBay AreaVenture-Backed StartupsTax Strategy

R&D Tax Credits for Silicon Valley AI & SaaS Startups: The Cash You're Leaving on the Table

Silicon Valley AI and SaaS startups do some of the most R&D-intensive work in the world — and can turn it into real cash. How the payroll-tax credit, §174A expensing, the four-part test, and California's state credit work for founders.

The Ricerca Team 6 min read

If you’re building an AI or SaaS company in the Bay Area, you are running one of the most R&D-intensive businesses in the economy. Your burn is mostly engineers. Your roadmap is a stack of hard, uncertain technical problems. And yet a federal program designed to put money back in the hands of companies doing exactly this work goes unclaimed by a striking number of Silicon Valley startups every year.

This is not a deduction you take someday when you’re profitable. For an early-stage, pre-revenue startup, the R&D tax credit can be cash against your payroll taxes — now, while you’re still burning runway. Here’s how it works, why AI and SaaS work qualifies so cleanly, and what’s changed in 2025 that makes it more valuable than ever.

The part most founders miss: it’s cash, not a someday-deduction

The objection we hear most from founders is “we’re pre-revenue, so a tax credit does nothing for us.” That was true decades ago. It isn’t now.

A Qualified Small Business — broadly, one with less than $5M in gross receipts for the year and no gross receipts more than five years ago — can elect to apply the federal R&D credit against its employer payroll taxes, up to $500,000 per year. You don’t need income, profit, or a tax bill. If you have a payroll — and you do — you can monetize the credit on your quarterly payroll tax filings.

For a seed or Series A startup spending the bulk of its capital on engineering salaries, that is a direct extension of runway. It is one of the few non-dilutive sources of cash a venture-backed founder can pull without talking to an investor.

Why AI and SaaS work qualifies so cleanly

The federal credit under IRC §41 uses a four-part test. An activity qualifies when it meets all four:

  1. Permitted purpose — you’re developing or improving the functionality, performance, reliability, or quality of your product.
  2. Technological in nature — the work relies on computer science, engineering, or the hard sciences.
  3. Elimination of uncertainty — at the start, you didn’t know whether you could achieve the result, how, or what the right design was.
  4. Process of experimentation — you evaluated alternatives through prototyping, benchmarking, modeling, or systematic trial and error.

The day-to-day reality of an AI or SaaS team clears this bar more often than founders assume. A few examples that frequently qualify:

  • Model development and fine-tuning — selecting architectures, building training and evaluation pipelines, fine-tuning open-weight models, and the experimentation that comes with chasing a metric.
  • Retrieval and RAG systems — designing chunking, embeddings, retrieval, and ranking where the right approach was genuinely uncertain and had to be tested.
  • Inference performance and cost — quantization, batching, caching, GPU/accelerator scheduling, and the latency-versus-quality trade-offs you benchmarked your way through.
  • Evaluation and reliability — building eval harnesses, guardrails, and hallucination mitigation for non-deterministic systems.
  • Core platform engineering — re-architecting for scale, redesigning data models, multi-tenancy, and security engineering where the design wasn’t obvious.

The work qualifies even though it lives in pull requests, tickets, and design docs rather than a lab notebook. The activity is research; it just wasn’t labeled as research.

For a deeper walk-through of how everyday engineering maps to the test, see our SaaS & software industry guide and what actually qualifies for SaaS.

2025 changed the math: §174A brings back full expensing

For a few painful years, companies had to capitalize and amortize their R&D costs rather than deduct them — a rule that hit cash-burning software startups especially hard, sometimes creating a tax bill on top of a net loss.

That’s been reversed. The One Big Beautiful Bill Act created IRC §174A, restoring immediate, full expensing of domestic research costs — software development explicitly included — for tax years beginning after December 31, 2024. Eligible small businesses may even apply it retroactively to 2022–2024 and amend for refunds. The credit and the deduction work together: you take the deduction for the spend and the credit for the qualified portion. Our §174A explainer covers the mechanics.

Don’t forget California (and wherever else you operate)

Federal is only half the picture. California has its own R&D credit, and most startups that claim the federal credit never capture the state one — even though the qualifying work is the same. Because every state defines its base, rate, caps, carryforward, and refundability differently, the state benefit gets skipped by tools that optimize the federal number and stop.

Ricerca computes the federal and state credit from the same qualified-research base, so your California benefit (and any other state where you have nexus) is captured in the same study. More on that on our state R&D credits page.

The catch: the IRS now wants the receipts

Here’s the part the “instant credit” tools gloss over. Since 2024–2025, the IRS has sharply raised documentation expectations. Refund claims must identify each business component, the research activities performed for it, and the individuals who did the work — and Form 6765’s revised Section G asks for business-component-level detail. Examiners are explicitly instructed to reject arbitrary, uncorroborated time allocations.

In other words: an aggressive, thinly-documented credit is now a liability, not a windfall. The number is only worth what you can defend.

This is exactly where an automation-only tool falls short and where a study should be defensible by construction. Ricerca enforces the §41 statutory tests in software — the four-part test, the §41(d)(4) exclusions, funded-research and rights-and-risk contract analysis, the dated failed-alternative standard, and §41(f) controlled-group rules — and then has experienced R&D specialists review and finalize every study before it’s issued. You get the speed of AI on intake and narratives, with substantiation built the way an examiner actually reads it. See why founders choose Ricerca.

What to do before you file

A few concrete steps for a Bay Area founder:

  • Don’t wait for profitability. If you’re a Qualified Small Business, the payroll-tax election can put cash to work this year.
  • Capture engineering evidence as you go. Your tickets, PRs, commits, and design docs are your contemporaneous record — keep them.
  • Claim the state credit too. California and other states stack on top of the federal credit.
  • Look back. Multi-year and §174A retroactive opportunities may let you recover from prior years.

Curious what your credit could be? Try our R&D credit estimator, or talk to our team about a study built to defend.

This article is general information, not tax advice. Eligibility and benefit depend on your specific facts; consult a qualified professional before acting.

See if your work qualifies

Tell us about your R&D and we’ll show you what a Ricerca study could capture — including the new §174A domestic expensing. Contact us for a tailored quote.