The IRS is using artificial intelligence to decide which tax returns to audit, and a federal court has just agreed that the agency can keep most of the details secret. In Tax Analysts v. IRS, decided October 14, 2026, the U.S. District Court for the District of Columbia ruled that the IRS may withhold the “data cards” behind its AI models for selecting complex partnerships for audit.
If you own a business, invest through a partnership, or file a complex return, this case is a clear signal: the way the IRS picks audits is changing, and much of it will stay behind closed doors. Here is what the court decided, how the IRS is using AI today, and what you can do to stay ready.
What Tax Analysts v. IRS Is About
Tax Analysts, the nonprofit publisher of Tax Notes, asked the IRS under the Freedom of Information Act (FOIA) for records showing how the agency uses AI to pick returns for audit. The IRS refused, and Tax Analysts sued in the U.S. District Court for the District of Columbia. Judge Christopher R. Cooper issued the memorandum opinion on October 14, 2026.
The records at the center of the fight are AI “data cards.” A data card is a structured summary of the datasets an AI model is trained and run on: what the data contains, where it came from, and the context the model is meant to be used in. Think of it as a nutrition label for an algorithm.
Tax Analysts wanted the data cards for the IRS models used to choose complex partnerships for audit. The IRS said those cards spell out its methods, criteria, and analytical approaches for flagging taxpayers. In other words, they are a roadmap to how it selects cases.
The Court’s Ruling: FOIA Exemption 7(E) Protects the IRS’s AI Audit Criteria
The court sided with the IRS on the main question: the data cards fall within FOIA Exemption 7(E), 5 U.S.C. §552(b)(7)(E). That exemption lets an agency withhold law-enforcement records when releasing them would reveal investigative techniques, procedures, or guidelines, and could reasonably be expected to risk circumvention of the law.
The IRS’s argument was simple. If taxpayers, preparers, or promoters knew which data points the AI weighs, they could tailor their returns to slip under the radar. The court agreed, and found that FOIA’s foreseeable harm standard, 5 U.S.C. §552(a)(8)(A)(i), was also met because disclosure could reasonably be expected to help people evade tax.
This fits a long-standing rule in the Internal Revenue Code itself. Under IRC §6103(b)(2), no provision of law requires the IRS to disclose the standards it uses to select returns for examination, or the data used to set those standards, if the Secretary determines disclosure would seriously impair assessment, collection, or enforcement. IRS Chief Counsel has relied on this provision to withhold the DIF (Discriminant Index Function) scores used to flag returns for audit (CCA 201919011).
The Open Question: Segregability
The IRS did not win completely. Under FOIA, 5 U.S.C. §552(b) (final sentence), an agency must release any reasonably segregable, non-exempt portion of a record. It cannot withhold a whole document just because part of it is protected.
The IRS said the sensitive material runs all through the data cards, so nothing could be cut out and released. The court said that might be true, but it had no way to check that bare assertion. The IRS had not explained what the data cards look like, how many pages are at issue, or how the non-exempt material is spread through them. The court gave the IRS until November 4, 2026 to explain why no portion can be released.
The court’s ruling on segregability will decide whether any portion of the data cards is released to the public.
How the IRS Is Actually Using AI to Choose Audits
The IRS has used computer scoring to pick audits since 1969, when it introduced the DIF score. What is new is machine learning. Instead of relying only on old audit results, the newer models study the current year’s returns and flag line items that look out of line with similar filers.
According to the Treasury Inspector General for Tax Administration (TIGTA), the IRS uses these AI-driven selection and classification tools (TIGTA Report 2025-308-022, May 19, 2025):
| Model | IRS division | Returns covered | What it does |
|---|---|---|---|
| Large Partnership Compliance (LPC) | Large Business & International | Form 1065, large partnerships | Scans the large-partnership population for outliers, such as unusually high expenses |
| Line Anomaly Recommender (LAR) | Large Business & International | Form 1120, assets $10M–$250M | Predicts an expected value for every line and scores the gap from what was reported |
| Form 1040 return classification | Small Business/Self-Employed | Form 1040 | Picks the top three issues for an examiner to review on DIF-selected returns |
| Form 1040 return selection | Small Business/Self-Employed | Form 1040 | Gives each return an overall risk score; still in pilot |
The partnership push. In September 2023 the IRS announced it was using AI to select 75 of the largest partnerships for audit, including hedge funds, real estate partnerships, publicly traded partnerships, and large law firms averaging more than $10 billion in assets (Accounting Today). In October 2023 it followed with Letter 6585, sent to 483 large partnerships whose balance sheets contained unexplained discrepancies.
The results so far are mixed. TIGTA’s March 18, 2026 report (Report 2026-308-011) found that the LPC model analyzed 282,884 tax year 2021 partnership returns with assets over $10 million and identified 1,617 for consideration. The IRS chose 150 of those for review and selected 78 for examination, later 82 after finding related transactions. As of December 31, 2025, 36 of those exams had closed, and 33 of them ended with no change.
TIGTA also found that the model was run only once, so 2,204 qualifying returns filed after February 2023 were never considered. Of the 483 partnerships that received Letter 6585, 163 did not respond and 182 responses were rejected. In April 2024 the IRS decided not to examine any of them, citing limited resources and the three-year assessment statute of limitations.
In short, the AI is good at spotting unusual returns. Whether the IRS has the people to follow up is a separate question.
What This Means for You: How to Reduce AI Audit Risk
You cannot see the IRS’s data cards, but you can see what the models are built to catch: numbers that don’t fit the rest of the return, the prior year, or similar businesses. A clean, consistent, well-documented return is the best defense.
For partnerships and multi-member LLCs (Form 1065)
- Reconcile the balance sheet every year. Make sure ending Schedule L balances roll forward to the next year’s beginning balances, and attach an explanation when they don’t. Unexplained balance-sheet gaps were the trigger for the IRS’s Letter 6585 campaign.
- Report partner capital on the tax-basis method (required on Schedule K-1, Item L, since tax year 2020) as the Form 1065 instructions direct, and keep the capital account schedules that support each Schedule K-1.
- Document special allocations. Allocations must have substantial economic effect under IRC §704(b) and Treas. Reg. §1.704-1(b). Keep the partnership agreement and allocation workpapers current.
- Designate a partnership representative. Under the centralized partnership audit regime (IRC §§6221–6241), the partnership representative named under IRC §6223 has sole authority to act for the partnership in an audit. Confirm the designation and mailing address on every return.
- Answer IRS letters promptly and completely. A non-response or an inadequate response can move a return toward examination.
For individuals, self-employed taxpayers, and corporations
- Keep line items consistent with your history. Large swings in expenses or income should have a documented business reason.
- Avoid estimates. Round-number deductions suggest estimation rather than records. IRC §6001 requires records that support every item on the return.
- Match information returns. Make sure Forms W-2, 1099 (including 1099-K), and K-1 amounts agree with what you report.
- Know the penalty stakes. An understatement can carry a 20% accuracy-related penalty under IRC §6662; reasonable-cause relief under IRC §6664(c) depends on good documentation and good-faith reliance on a professional.
If you are selected, you keep your rights under the Taxpayer Bill of Rights, IRC §7803(a)(3), including the right to challenge the IRS’s position and to be represented.
Frequently Asked Questions
Does the IRS use AI to select tax returns for audit?
Yes. The IRS uses machine-learning models to help select large partnerships and mid-size corporations for audit and to flag issues on individual returns. People still review and classify the returns the models flag before an audit begins.
Can I find out what the IRS’s AI looks for?
Not in detail. In Tax Analysts v. IRS (D.D.C. Oct. 14, 2026), the court held that the IRS’s AI data cards are protected by FOIA Exemption 7(E), and IRC §6103(b)(2) has long shielded audit-selection standards from disclosure.
What is an AI data card?
A structured summary of the data an AI model uses: its sources, contents, and intended use. It works like a label explaining what went into the model.
Are small businesses being audited by AI?
The IRS’s Small Business/Self-Employed Division uses an AI model to identify issues on Form 1040 returns. A separate AI selection model for individual returns was still in pilot as of TIGTA’s May 2025 report.
Does AI mean more audits?
Not necessarily. The IRS’s stated goal is better targeting and fewer no-change audits of compliant taxpayers. Actual audit volume depends heavily on IRS staffing and funding.
What should I do if I receive an IRS audit letter?
Do not ignore it. Note the response deadline, gather your records, and contact a CPA or other authorized representative before you respond.
The Bottom Line: Prepare Before the IRS Looks, Not After
AI is now part of how the IRS decides who gets audited, and the courts are letting the agency keep its playbook private. For business owners, partnership investors, and high-net-worth families, that makes the quality of the return itself the strongest protection. The time to get it right is during the year, long before a model ever scores your return.
How we help business owners and high-net-worth clients stay ahead:
- Year-round planning, not just filing season. We review your numbers during the year so surprises are caught early and strategies are in place before December 31.
- Consistent, well-documented returns. We reconcile balance sheets, capital accounts, and information returns year over year so your return tells one clear, supportable story.
- Partnership and multi-entity expertise. We coordinate K-1s, allocations, and entity structures across your businesses and investments.
- Senior-level attention. Complex returns are reviewed by experienced professionals, with clear explanations and responsive communication.
Ready for a more proactive approach? Schedule a consultation to talk about your business, your investments, and your long-term tax strategy.
This article is for general information only and is not legal or tax advice.
Sources: TheTaxBook News, “AI Used by IRS to Select Returns for Audit” (Oct. 28, 2026); FOIA Advisor, Tax Analysts v. IRS opinion summary (Oct. 15, 2026); TIGTA Report 2026-308-011 (Mar. 18, 2026); TIGTA Report 2025-308-022 (May 19, 2025); Accounting Today (Sept. 8, 2023); 26 U.S.C. §6103 (GovInfo); CCA 201919011; IRS, partner tax basis capital reporting.