Skip to main content
AgentTax
This article is for informational purposes only and does not constitute tax, legal, or accounting advice. Consult a qualified tax professional before making compliance decisions.
Policy

Illinois Just Wrote 'Machine Learning Algorithms' Into a Tax Statute: SB 3019's Targeted Advertising Tax and AI Agents

Beardsley Rumble|2026-06-03|6 min read

Illinois passed SB 3019 in the early hours of June 1, 2026, as the revenue side of a record $55.9 billion FY2027 budget. Buried in roughly $800 million of tax increases is a provision that should interest anyone building AI agents that buy, sell, or place advertising: the Targeted Advertising Services Tax Act, a 10% levy whose statutory definition of "programmatic" explicitly references "machine learning algorithms."

To my knowledge, this is the first time a US sales or excise tax has drawn its taxable base around the method of automated, AI-driven service delivery rather than the category of thing being sold. That is a meaningful line in the sand, and it deserves a careful read.

What the Statute Actually Says

The bill creates a new occupation tax of 10% on gross receipts from targeted advertising services provided in Illinois, effective January 1, 2027. Two definitions do the work.

A "targeted advertising service" is defined as "any programmatic written, oral, or graphic statement or representation conveyed through a digital interface or any other method of delivery." The statute lists banner advertising, search engine advertising, interstitial advertising, and comparable services that use personal information about the recipient.

The operative qualifier is "programmatic," which the bill defines as "capable of automating advertising services" — specifically services "sold in real time by employing technology that uses computer-driven or software-driven workflow or machine learning algorithms."

Read that again. The taxability hook is not "advertising." It is automated advertising sold in real time using software-driven workflow or machine learning. That is a description of the modern programmatic ad stack — and, increasingly, of the AI agents being built on top of it.

The tax includes a $1 million threshold: it does not apply to providers with less than $1 million in annual cumulative gross receipts from Illinois targeted advertising services. Controlled groups are aggregated and treated as a single entity under IRC § 1563, so you cannot fragment the base across affiliated entities. News media entities are excluded, and the act preempts local taxation of the same occupation.

A companion Social Media Platform Fee is also created, scaling from $0.10 to $0.50 per Illinois user per month after the first 100,000 users, indexed to CPI. That fee is a per-user levy on the platform itself and is a different animal from the advertising tax — relevant to large platforms, less so to most agent builders, so I will set it aside here.

Why This Matters for AI Agents Specifically

The agent economy is rapidly absorbing the advertising function. Agents that run paid acquisition, agents that bid in real-time auctions, agents that generate and place creative, agents that allocate budget across channels using a learned policy — all of these are, on a plain reading, "automating advertising services" using "machine learning algorithms." Illinois has written the statute in language that maps almost exactly onto how these systems are described in their own documentation.

That creates three concrete questions for operators:

  • Are you a provider of the service, or a buyer of it? The tax falls on the provider of targeted advertising services with Illinois gross receipts. An agent platform that sells programmatic ad placement to Illinois businesses looks like a provider. An agent that merely buys ads for its own account looks like a buyer and is likely out of scope for this particular tax — though it may face the underlying media's own tax treatment.

  • What counts as "provided in Illinois"? The statute sources to services provided in Illinois, but the mechanics of apportioning real-time programmatic receipts to a single state are genuinely unsettled. Is it the advertiser's location, the viewer's location, or the server's? This is the same sourcing problem that has plagued every digital services tax, and it will be resolved in Department of Revenue guidance, not in the budget bill.

  • Does the ML-algorithm language sweep in services nobody intended to tax? A recommendation engine, a content-personalization layer, or an agent that optimizes message timing could all be argued into "programmatic" if the receipts are tied to advertising. The breadth of "software-driven workflow or machine learning algorithms" is precisely what makes this provision both expansive and legally fragile.

My Read on the Comfort Level

I would not advise any client to start collecting this tax today, and I want to be precise about why.

First, the effective date is January 1, 2027. There is no current collection obligation.

Second — and this is the part the headlines understate — Illinois lawmakers themselves do not expect to collect on it in FY27. The budget framework reportedly assumes legal challenges and books no targeted-advertising revenue for the fiscal year. That is an unusual admission, and it tells you how the drafters rate their own constitutional exposure.

The exposure is real. Maryland's digital advertising tax has been litigated continuously since 2021 on First Amendment, Internet Tax Freedom Act (ITFA) discrimination, and Commerce Clause grounds. The ITFA bars discriminatory taxes on electronic commerce, and a 10% tax that applies to programmatic (read: electronic) advertising while exempting traditional media is the exact fact pattern that drew ITFA challenges in Maryland. Illinois drafted around some of Maryland's problems, but a tax base defined by "machine learning algorithms" invites a discrimination argument that a tax base defined by gross receipts does not.

So where do I land? On the substance of whether agentic, ML-driven advertising services fit the statutory definition: this is Substantial Authority — the language is explicit and the fit is close. On whether the tax survives constitutional challenge and becomes a live collection obligation on January 1, 2027: I would put that no higher than Reasonable Basis, and I would not be surprised to see it enjoined before the effective date. Reserve accordingly: model the 10% exposure on your Illinois advertising-service receipts, but do not remit until the litigation picture clears or the Department issues collection guidance.

What AgentTax Users Should Do Now

  • Classify your revenue. Separate receipts where your agent provides targeted advertising services to third parties (potentially in scope) from receipts where it merely buys media for itself (likely out of scope).

  • Run the $1 million threshold. Aggregate across controlled-group affiliates under § 1563 before you conclude you are under the line.

  • Tag Illinois receipts now. Even with a 2027 effective date and live litigation, you want a clean Illinois targeted-advertising receipts figure ready to model the moment the legal picture resolves.

  • Watch the language migrate. The genuinely important development here is not the dollars. It is that a state legislature successfully defined a tax base around "machine learning algorithms." Other states will copy the definition before they copy the rate.

What to Watch

Three signals over the coming months: the governor's signature (the bill awaits action as of this writing); the first ITFA or First Amendment challenge, which I expect within weeks of enactment given the Maryland template; and Department of Revenue sourcing guidance, which will determine whether real-time programmatic receipts are sourced to the advertiser, the viewer, or somewhere else entirely.

The line Illinois just drew — taxing services by reference to the algorithms that deliver them — is the one to watch. If it holds, it is a blueprint. We are tracking it against our 50-state SaaS taxability guide and will update as guidance lands. If your platform provides programmatic advertising services and you need to model Illinois exposure, the AgentTax engine lets you simulate the classification today.


This analysis is for informational purposes only and does not constitute legal or tax advice. Consult a licensed tax professional for compliance decisions.