Title 26 › Subtitle Subtitle F— Procedure and Administration › Chapter 78— DISCOVERY OF LIABILITY AND ENFORCEMENT OF TITLE › Subchapter A— Examination and Inspection › § 7612
The IRS may not demand a company’s computer source code or force it to hand over source code in court, and any software given to the IRS must be protected. The IRS can ask for parts of source code only if it cannot check a tax item from the taxpayer’s books, records, or from the program that actually runs (the executable code and its data), and only after saying exactly which part it needs and deciding that need is greater than the risk of revealing trade secrets. The rule does not block requests tied to criminal tax investigations, software made mainly for a taxpayer’s own internal use, communications between the software owner and the taxpayer, or other laws that already require the code. If the IRS says it needs the executable code and data, it must formally ask the taxpayer and the software owner; if the code and data are not given within 180 days, the IRS is treated as meeting its test for needing source code. A court hearing can be held to decide if the IRS met these requirements. In any court case the judge can limit disclosure and seal trade secrets. If the IRS gets software during an audit, it may use it only for that audit, related appeals, court cases, or tax-crime inquiries. The IRS must give the taxpayer and owner a written list of people who will see the software, keep it in a secure place, avoid removing source code from the owner’s business unless the owner agrees or a court orders it, copy it only as needed (number and certify copies), return and delete copies after use and get written sworn certifications that no copies remain, not decompile or disassemble it, and make outside reviewers sign agreements to keep it confidential and not work for 2 years on similar software. The law treats this software as tax return information under section 6103. Definitions: “software” = source and executable code; “source code” = human-readable program code plus related notes and customer communications; “executable code” = machine-readable code and manuals; “owner” = includes the developer; “related person” = as defined in sections 267 or 707(b); “tax-related source code” = code for accounting, tax return work, compliance, or tax planning.
Full Legal Text
Internal Revenue Code — Source: USLM XML via OLRC
Legislative History
Reference
Citation
26 U.S.C. § 7612
Title 26 — Internal Revenue Code
Last Updated
Apr 5, 2026
Release point: 119-73not60