Collapse to view only § 7608. Authority of internal revenue enforcement officers

§ 7601. Canvass of districts for taxable persons and objects
(a) General rule

The Secretary shall, to the extent he deems it practicable, cause officers or employees of the Treasury Department to proceed, from time to time, through each internal revenue district and inquire after and concerning all persons therein who may be liable to pay any internal revenue tax, and all persons owning or having the care and management of any objects with respect to which any tax is imposed.

(b) Penalties

For penalties applicable to forcible obstruction or hindrance of Treasury officers or employees in the performance of their duties, see section 7212.

(Aug. 16, 1954, ch. 736, 68A Stat. 901; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834.)
§ 7602. Examination of books and witnesses
(a) Authority to summon, etc.For the purpose of ascertaining the correctness of any return, making a return where none has been made, determining the liability of any person for any internal revenue tax or the liability at law or in equity of any transferee or fiduciary of any person in respect of any internal revenue tax, or collecting any such liability, the Secretary is authorized—
(1) To examine any books, papers, records, or other data which may be relevant or material to such inquiry;
(2) To summon the person liable for tax or required to perform the act, or any officer or employee of such person, or any person having possession, custody, or care of books of account containing entries relating to the business of the person liable for tax or required to perform the act, or any other person the Secretary may deem proper, to appear before the Secretary at a time and place named in the summons and to produce such books, papers, records, or other data, and to give such testimony, under oath, as may be relevant or material to such inquiry; and
(3) To take such testimony of the person concerned, under oath, as may be relevant or material to such inquiry.
(b) Purpose may include inquiry into offense

The purposes for which the Secretary may take any action described in paragraph (1), (2), or (3) of subsection (a) include the purpose of inquiring into any offense connected with the administration or enforcement of the internal revenue laws.

(c) Notice of contact of third parties
(1) General noticeAn officer or employee of the Internal Revenue Service may not contact any person other than the taxpayer with respect to the determination or collection of the tax liability of such taxpayer unless such contact occurs during a period (not greater than 1 year) which is specified in a notice which—
(A) informs the taxpayer that contacts with persons other than the taxpayer are intended to be made during such period, and
(B)
Nothing in the preceding sentence shall prevent the issuance of notices to the same taxpayer with respect to the same tax liability with periods specified therein that, in the aggregate, exceed 1 year. A notice shall not be issued under this paragraph unless there is an intent at the time such notice is issued to contact persons other than the taxpayer during the period specified in such notice. The preceding sentence shall not prevent the issuance of a notice if the requirement of such sentence is met on the basis of the assumption that the information sought to be obtained by such contact will not be obtained by other means before such contact.
(2) Notice of specific contacts

The Secretary shall periodically provide to a taxpayer a record of persons contacted during such period by the Secretary with respect to the determination or collection of the tax liability of such taxpayer. Such record shall also be provided upon request of the taxpayer.

(3) ExceptionsThis subsection shall not apply—
(A) to any contact which the taxpayer has authorized;
(B) if the Secretary determines for good cause shown that such notice would jeopardize collection of any tax or such notice may involve reprisal against any person; or
(C) with respect to any pending criminal investigation.
(d) No administrative summons when there is Justice Department referral
(1) Limitation of authority

No summons may be issued under this title, and the Secretary may not begin any action under section 7604 to enforce any summons, with respect to any person if a Justice Department referral is in effect with respect to such person.

(2) Justice Department referral in effectFor purposes of this subsection—
(A) In generalA Justice Department referral is in effect with respect to any person if—
(i) the Secretary has recommended to the Attorney General a grand jury investigation of, or the criminal prosecution of, such person for any offense connected with the administration or enforcement of the internal revenue laws, or
(ii) any request is made under section 6103(h)(3)(B) for the disclosure of any return or return information (within the meaning of section 6103(b)) relating to such person.
(B) TerminationA Justice Department referral shall cease to be in effect with respect to a person when—
(i) the Attorney General notifies the Secretary, in writing, that—(I) he will not prosecute such person for any offense connected with the administration or enforcement of the internal revenue laws,(II) he will not authorize a grand jury investigation of such person with respect to such an offense, or(III) he will discontinue such a grand jury investigation,
(ii) a final disposition has been made of any criminal proceeding pertaining to the enforcement of the internal revenue laws which was instituted by the Attorney General against such person, or
(iii) the Attorney General notifies the Secretary, in writing, that he will not prosecute such person for any offense connected with the administration or enforcement of the internal revenue laws relating to the request described in subparagraph (A)(ii).
(3) Taxable years, etc., treated separately

For purposes of this subsection, each taxable period (or, if there is no taxable period, each taxable event) and each tax imposed by a separate chapter of this title shall be treated separately.

(e) Limitation on examination on unreported income

The Secretary shall not use financial status or economic reality examination techniques to determine the existence of unreported income of any taxpayer unless the Secretary has a reasonable indication that there is a likelihood of such unreported income.

(f) Limitation on access of persons other than Internal Revenue Service officers and employees

The Secretary shall not, under the authority of section 6103(n), provide any books, papers, records, or other data obtained pursuant to this section to any person authorized under section 6103(n), except when such person requires such information for the sole purpose of providing expert evaluation and assistance to the Internal Revenue Service. No person other than an officer or employee of the Internal Revenue Service or the Office of Chief Counsel may, on behalf of the Secretary, question a witness under oath whose testimony was obtained pursuant to this section.

(Aug. 16, 1954, ch. 736, 68A Stat. 901; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 97–248, title III, § 333(a), Sept. 3, 1982, 96 Stat. 622; Pub. L. 105–206, title III, §§ 3412, 3417(a), July 22, 1998, 112 Stat. 751, 757; Pub. L. 116–25, title I, §§ 1206(a), 1208(a), July 1, 2019, 133 Stat. 990, 991.)
§ 7603. Service of summons
(a) In general

A summons issued under section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7602 shall be served by the Secretary, by an attested copy delivered in hand to the person to whom it is directed, or left at his last and usual place of abode; and the certificate of service signed by the person serving the summons shall be evidence of the facts it states on the hearing of an application for the enforcement of the summons. When the summons requires the production of books, papers, records, or other data, it shall be sufficient if such books, papers, rec­ords, or other data are described with reasonable certainty.

(b) Service by mail to third-party recordkeepers
(1) In general

A summons referred to in subsection (a) for the production of books, papers, records, or other data by a third-party recordkeeper may also be served by certified or registered mail to the last known address of such recordkeeper.

(2) Third-party recordkeeper
For purposes of paragraph (1), the term “third-party recordkeeper” means—
(A) any mutual savings bank, cooperative bank, domestic building and loan association, or other savings institution chartered and supervised as a savings and loan or similar association under Federal or State law, any bank (as defined in section 581), or any credit union (within the meaning of section 501(c)(14)(A)),
(B) any consumer reporting agency (as defined under section 603(f) of the Fair Credit Reporting Act (15 U.S.C. 1681a(f))),
(C) any person extending credit through the use of credit cards or similar devices,
(D) any broker (as defined in section 3(a)(4) of the Securities Exchange Act of 1934 (15 U.S.C. 78c(a)(4))),
(E) any attorney,
(F) any accountant,
(G) any barter exchange (as defined in section 6045(c)(3)),
(H) any regulated investment company (as defined in section 851) and any agent of such regulated investment company when acting as an agent thereof,
(I) any enrolled agent, and
(J) any owner or developer of a computer software source code (as defined in section 7612(d)(2)).
Subparagraph (J) shall apply only with respect to a summons requiring the production of the source code referred to in subparagraph (J) or the program and data described in section 7612(b)(1)(A)(ii) to which such source code relates.
(Aug. 16, 1954, ch. 736, 68A Stat. 902; Apr. 2, 1956, ch. 160, § 4(i), 70 Stat. 91; June 29, 1956, ch. 462, title II, § 208(d)(4), 70 Stat. 396; Pub. L. 89–44, title II, § 202(c)(4), June 21, 1965, 79 Stat. 139; Pub. L. 91–258, title II, § 207(d)(9), May 21, 1970, 84 Stat. 249; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 94–530, § 1(c)(6), Oct. 17, 1976, 90 Stat. 2488; Pub. L. 95–599, title V, § 505(c)(5), Nov. 6, 1978, 92 Stat. 2760; Pub. L. 96–223, title II, § 232(d)(4)(E), Apr. 2, 1980, 94 Stat. 278; Pub. L. 97–424, title V, § 515(b)(12), Jan. 6, 1983, 96 Stat. 2182; Pub. L. 98–369, div. A, title IX, § 911(d)(2)(G), July 18, 1984, 98 Stat. 1007; Pub. L. 99–514, title XVII, § 1703(e)(2)(G), Oct. 22, 1986, 100 Stat. 2778; Pub. L. 100–647, title I, § 1017(c)(9), (12), Nov. 10, 1988, 102 Stat. 3576, 3577; Pub. L. 105–206, title III, §§ 3413(c), 3416(a), July 22, 1998, 112 Stat. 754, 756; Pub. L. 106–554, § 1(a)(7) [title III, § 319(26)], Dec. 21, 2000, 114 Stat. 2763, 2763A–648.)
§ 7604. Enforcement of summons
(a) Jurisdiction of district court

If any person is summoned under the internal revenue laws to appear, to testify, or to produce books, papers, records, or other data, the United States district court for the district in which such person resides or is found shall have jurisdiction by appropriate process to compel such attendance, testimony, or production of books, papers, records, or other data.

(b) Enforcement

Whenever any person summoned under section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7602 neglects or refuses to obey such summons, or to produce books, papers, rec­ords, or other data, or to give testimony, as required, the Secretary may apply to the judge of the district court or to a United States magistrate judge for the district within which the person so summoned resides or is found for an attachment against him as for a contempt. It shall be the duty of the judge or magistrate judge to hear the application, and, if satisfactory proof is made, to issue an attachment, directed to some proper officer, for the arrest of such person, and upon his being brought before him to proceed to a hearing of the case; and upon such hearing the judge or the United States magistrate judge shall have power to make such order as he shall deem proper, not inconsistent with the law for the punishment of contempts, to enforce obedience to the requirements of the summons and to punish such person for his default or disobedience.

(c) Cross references
(1) Authority to issue orders, processes, and judgments

For authority of district courts generally to enforce the provisions of this title, see section 7402.

(2) Penalties

For penalties applicable to violation of section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7602, see section 7210.

(Aug. 16, 1954, ch. 736, 68A Stat. 902; Apr. 2, 1956, ch. 160, § 4(i), 70 Stat. 91; June 29, 1956, ch. 462, title II, § 208(d)(4), 70 Stat. 396; Pub. L. 89–44, title II, § 202(c)(4), June 21, 1965, 79 Stat. 139; Pub. L. 90–578, title IV, § 402(b)(2), Oct. 17, 1968, 82 Stat. 1118; Pub. L. 91–258, title II, § 207(d)(9), May 21, 1970, 84 Stat. 249; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 94–530, § 1(c)(6), Oct. 17, 1976, 90 Stat. 2488; Pub. L. 95–599, title V, § 505(c)(5), (6), Nov. 6, 1978, 92 Stat. 2760; Pub. L. 96–223, title II, § 232(d)(4)(E), Apr. 2, 1980, 94 Stat. 278; Pub. L. 97–424, title V, § 515(b)(12), Jan. 6, 1983, 96 Stat. 2182; Pub. L. 98–369, div. A, title IX, § 911(d)(2)(G), July 18, 1984, 98 Stat. 1007; Pub. L. 99–514, title XVII, § 1703(e)(2)(G), Oct. 22, 1986, 100 Stat. 2778; Pub. L. 100–647, title I, § 1017(c)(9), (12), Nov. 10, 1988, 102 Stat. 3576, 3577; Pub. L. 101–650, title III, § 321, Dec. 1, 1990, 104 Stat. 5117.)
§ 7605. Time and place of examination
(a) Time and place

The time and place of examination pursuant to the provisions of section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7602 shall be such time and place as may be fixed by the Secretary and as are reasonable under the circumstances. In the case of a summons under authority of paragraph (2) of section 7602, or under the corresponding authority of section 6420(e)(2), 6421(g)(2), or 6427(j)(2), the date fixed for appearance before the Secretary shall not be less than 10 days from the date of the summons.

(b) Restrictions on examination of taxpayer

No taxpayer shall be subjected to unnecessary examination or investigations, and only one inspection of a taxpayer’s books of account shall be made for each taxable year unless the taxpayer requests otherwise or unless the Secretary, after investigation, notifies the taxpayer in writing that an additional inspection is necessary.

(c) Cross reference

For provisions restricting church tax inquiries and examinations, see section 7611.

(Aug. 16, 1954, ch. 736, 68A Stat. 902; Apr. 2, 1956, ch. 160, § 4(i), 70 Stat. 91; June 29, 1956, ch. 462, title II, § 208(d)(4), 70 Stat. 396; Pub. L. 89–44, title II, § 202(c)(4), June 21, 1965, 79 Stat. 139; Pub. L. 91–172, title I, § 121(f), Dec. 30, 1969, 83 Stat. 548; Pub. L. 91–258, title II, § 207(d)(9), May 21, 1970, 84 Stat. 249; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 94–530, § 1(c)(6), Oct. 17, 1976, 90 Stat. 2488; Pub. L. 95–599, title V, § 505(c)(5), Nov. 6, 1978, 92 Stat. 2760; Pub. L. 96–223, title II, § 232(d)(4)(E), Apr. 2, 1980, 94 Stat. 278; Pub. L. 97–424, title V, § 515(b)(12), Jan. 6, 1983, 96 Stat. 2182; Pub. L. 98–369, div. A, title IX, § 911(d)(2)(G), title X, § 1033(c)(1), July 18, 1984, 98 Stat. 1007, 1039; Pub. L. 99–514, title XVII, § 1703(e)(2)(G), Oct. 22, 1986, 100 Stat. 2778; Pub. L. 100–647, title I, § 1017(c)(9), (12), Nov. 10, 1988, 102 Stat. 3576, 3577.)
§ 7606. Entry of premises for examination of taxable objects
(a) Entry during day

The Secretary may enter, in the daytime, any building or place where any articles or objects subject to tax are made, produced, or kept, so far as it may be necessary for the purpose of examining said articles or objects.

(b) Entry at night

When such premises are open at night, the Secretary may enter them while so open, in the performance of his official duties.

(c) Penalties

For penalty for refusal to permit entry or examination, see section 7342.

(Aug. 16, 1954, ch. 736, 68A Stat. 903; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834.)
[§ 7607. Repealed. Pub. L. 98–473, title II, § 320(b), Oct. 12, 1984, 98 Stat. 2056, and Pub. L. 98–573, title II, § 213(b)(1), Oct. 30, 1984, 98 Stat. 2988]
§ 7608. Authority of internal revenue enforcement officers
(a) Enforcement of subtitle E and other laws pertaining to liquor, tobacco, and firearmsAny investigator, agent, or other internal revenue officer by whatever term designated, whom the Secretary charges with the duty of enforcing any of the criminal, seizure, or forfeiture provisions of subtitle E or of any other law of the United States pertaining to the commodities subject to tax under such subtitle for the enforcement of which the Secretary is responsible, may—
(1) carry firearms;
(2) execute and serve search warrants and arrest warrants, and serve subpoenas and summonses issued under authority of the United States;
(3) in respect to the performance of such duty, make arrests without warrant for any offense against the United States committed in his presence, or for any felony cognizable under the laws of the United States if he has reasonable grounds to believe that the person to be arrested has committed, or is committing, such felony; and
(4) in respect to the performance of such duty, make seizures of property subject to forfeiture to the United States.
(b) Enforcement of laws relating to internal revenue other than subtitle E
(1) Any criminal investigator of the Intelligence Division of the Internal Revenue Service whom the Secretary charges with the duty of enforcing any of the criminal provisions of the internal revenue laws, any other criminal provisions of law relating to internal revenue for the enforcement of which the Secretary is responsible, or any other law for which the Secretary has delegated investigatory authority to the Internal Revenue Service, is, in the performance of his duties, authorized to perform the functions described in paragraph (2).
(2) The functions authorized under this subsection to be performed by an officer referred to in paragraph (1) are—
(A) to execute and serve search warrants and arrest warrants, and serve subpoenas and summonses issued under authority of the United States;
(B) to make arrests without warrant for any offense against the United States relating to the internal revenue laws committed in his presence, or for any felony cognizable under such laws if he has reasonable grounds to believe that the person to be arrested has committed or is committing any such felony; and
(C) to make seizures of property subject to forfeiture under the internal revenue laws.
(c) Rules relating to undercover operations
(1) Certification required for exemption of undercover operations from certain lawsWith respect to any undercover investigative operation of the Internal Revenue Service (hereinafter in this subsection referred to as the “Service”) which is necessary for the detection and prosecution of offenses under the internal revenue laws, any other criminal provisions of law relating to internal revenue, or any other law for which the Secretary has delegated investigatory authority to the Internal Revenue Service—
(A) sums authorized to be appropriated for the Service may be used—
(i) to purchase property, buildings, and other facilities, and to lease space, within the United States, the District of Columbia, and the territories and possessions of the United States without regard to—(I) sections 1341 and 3324 of title 31, United States Code,(II) sections 6301(a) and (b)(1)–(3) and 6306 of title 41, United States Code,(III) chapter 45 of title 41, United States Code,(IV)section 8141 of title 40, United States Code, and(V)section 3901 of title 41, United States Code, and
(ii) to establish or to acquire proprietary corporations or business entities as part of the undercover operation, and to operate such corporations or business entities on a commercial basis, without regard to sections 9102 and 9103 of title 31, United States Code;
(B) sums authorized to be appropriated for the Service and the proceeds from the undercover operations may be deposited in banks or other financial institutions without regard to the provisions of section 648 of title 18, United States Code, and section 3302 of title 31, United States Code, and
(C) the proceeds from the undercover operation may be used to offset necessary and reasonable expenses incurred in such operation without regard to the provisions of section 3302 of title 31, United States Code.
This paragraph shall apply only upon the written certification of the Commissioner of Internal Revenue (or, if designated by the Commissioner, the Deputy Commissioner or an Assistant Commissioner of Internal Revenue) that any action authorized by subparagraph (A), (B), or (C) is necessary for the conduct of such undercover operation.
(2) Liquidation of corporations and business entities

If a corporation or business entity established or acquired as part of an undercover operation under subparagraph (B) of paragraph (1) with a net value over $50,000 is to be liquidated, sold, or otherwise disposed of, the Service, as much in advance as the Commissioner or his delegate determines is practicable, shall report the circumstances to the Secretary. The proceeds of the liquidation, sale, or other disposition, after obligations are met, shall be deposited in the Treasury of the United States as miscellaneous receipts.

(3) Deposit of proceeds

As soon as the proceeds from an undercover investigative operation with respect to which an action is authorized and carried out under subparagraphs (B) and (C) of paragraph (1) are no longer necessary for the conduct of such operation, such proceeds or the balance of such proceeds remaining at the time shall be deposited into the Treasury of the United States as miscellaneous receipts.

(4) Audits
(A) The Service shall conduct a detailed financial audit of each undercover investigative operation which is closed in each fiscal year; and
(i) submit the results of the audit in writing to the Secretary; and
(ii) not later than 180 days after such undercover operation is closed, submit a report to the Congress concerning such audit.
(B) The Service shall also submit a report annually to the Congress specifying as to its undercover investigative operations—
(i) the number, by programs, of undercover investigative operations pending as of the end of the 1-year period for which such report is submitted;
(ii) the number, by programs, of undercover investigative operations commenced in the 1-year period for which such report is submitted;
(iii) the number, by programs, of undercover investigative operations closed in the 1-year period for which such report is submitted, and
(iv) the following information with respect to each undercover investigative operation pending as of the end of the 1-year period for which such report is submitted or closed during such 1-year period—(I) the date the operation began and the date of the certification referred to in the last sentence of paragraph (1),(II) the total expenditures under the operation and the amount and use of the proceeds from the operation,(III) a detailed description of the operation including the potential violation being investigated and whether the operation is being conducted under grand jury auspices, and(IV) the results of the operation including the results of criminal proceedings.
(5) DefinitionsFor purposes of paragraph (4)—
(A) ClosedThe term “closed” means the date on which the later of the following occurs;
(i) all criminal proceedings (other than appeals) are concluded, or
(ii) covert activities are concluded, whichever occurs later.
(B) Employees

The term “employees” has the meaning given such term by section 2105 of title 5, United States Code.

(C) Undercover investigative operation

The term “undercover investigative operation” means any undercover investigative operation of the Service; except that, for purposes of subparagraphs (A) and (C) of paragraph (4), such term only includes an operation which is exempt from section 3302 or 9102 of title 31, United States Code.

(Added Pub. L. 85–859, title II, § 204(14), Sept. 2, 1958, 72 Stat. 1429; amended Pub. L. 87–863, § 6(a), Oct. 23, 1962, 76 Stat. 1143; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 100–690, title VII, § 7601(c)(1), (2), Nov. 18, 1988, 102 Stat. 4504; Pub. L. 101–508, title XI, § 11704(a)(32), (33), Nov. 5, 1990, 104 Stat. 1388–519; Pub. L. 104–168, title XII, § 1205(b)–(c)(2), July 30, 1996, 110 Stat. 1471, 1472; Pub. L. 104–316, title I, § 113, Oct. 19, 1996, 110 Stat. 3833; Pub. L. 105–206, title I, § 1103(e)(4), July 22, 1998, 112 Stat. 710; Pub. L. 106–554, § 1(a)(7) [title III, § 303], Dec. 21, 2000, 114 Stat. 2763, 2763A–632; Pub. L. 107–217, § 3(f), Aug. 21, 2002, 116 Stat. 1299; Pub. L. 108–178, § 4(e), Dec. 15, 2003, 117 Stat. 2641; Pub. L. 109–135, title III, § 304, Dec. 21, 2005, 119 Stat. 2609; Pub. L. 109–432, div. A, title I, § 121, Dec. 20, 2006, 120 Stat. 2944; Pub. L. 110–343, div. C, title IV, § 401(a), Oct. 3, 2008, 122 Stat. 3875; Pub. L. 111–350, § 5(f), Jan. 4, 2011, 124 Stat. 3848.)
§ 7609. Special procedures for third-party summonses
(a) Notice
(1) In general

If any summons to which this section applies requires the giving of testimony on or relating to, the production of any portion of records made or kept on or relating to, or the production of any computer software source code (as defined in 7612(d)(2)) with respect to, any person (other than the person summoned) who is identified in the summons, then notice of the summons shall be given to any person so identified within 3 days of the day on which such service is made, but no later than the 23rd day before the day fixed in the summons as the day upon which such records are to be examined. Such notice shall be accompanied by a copy of the summons which has been served and shall contain an explanation of the right under subsection (b)(2) to bring a proceeding to quash the summons.

(2) Sufficiency of notice

Such notice shall be sufficient if, on or before such third day, such notice is served in the manner provided in section 7603 (relating to service of summons) upon the person entitled to notice, or is mailed by certified or registered mail to the last known address of such person, or, in the absence of a last known address, is left with the person summoned. If such notice is mailed, it shall be sufficient if mailed to the last known address of the person entitled to notice or, in the case of notice to the Secretary under section 6903 of the existence of a fiduciary relationship, to the last known address of the fiduciary of such person, even if such person or fiduciary is then deceased, under a legal disability, or no longer in existence.

(3) Nature of summons

Any summons to which this subsection applies (and any summons in aid of collection described in subsection (c)(2)(D)) shall identify the taxpayer to whom the summons relates or the other person to whom the records pertain and shall provide such other information as will enable the person summoned to locate the records required under the summons.

(b) Right to intervene; right to proceeding to quash
(1) Intervention

Notwithstanding any other law or rule of law, any person who is entitled to notice of a summons under subsection (a) shall have the right to intervene in any proceeding with respect to the enforcement of such summons under section 7604.

(2) Proceeding to quash
(A) In general

Notwithstanding any other law or rule of law, any person who is entitled to notice of a summons under subsection (a) shall have the right to begin a proceeding to quash such summons not later than the 20th day after the day such notice is given in the manner provided in subsection (a)(2). In any such proceeding, the Secretary may seek to compel compliance with the summons.

(B) Requirement of notice to person summoned and to Secretary

If any person begins a proceeding under subparagraph (A) with respect to any summons, not later than the close of the 20-day period referred to in subparagraph (A) such person shall mail by registered or certified mail a copy of the petition to the person summoned and to such office as the Secretary may direct in the notice referred to in subsection (a)(1).

(C) Intervention; etc.

Notwithstanding any other law or rule of law, the person summoned shall have the right to intervene in any proceeding under subparagraph (A). Such person shall be bound by the decision in such proceeding (whether or not the person intervenes in such proceeding).

(c) Summons to which section applies
(1) In general

Except as provided in paragraph (2), this section shall apply to any summons issued under paragraph (2) of section 7602(a) or under section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7612.

(2) ExceptionsThis section shall not apply to any summons—
(A) served on the person with respect to whose liability the summons is issued, or any officer or employee of such person;
(B) issued to determine whether or not records of the business transactions or affairs of an identified person have been made or kept;
(C) issued solely to determine the identity of any person having a numbered account (or similar arrangement) with a bank or other institution described in section 7603(b)(2)(A);
(D) issued in aid of the collection of—
(i) an assessment made or judgment rendered against the person with respect to whose liability the summons is issued; or
(ii) the liability at law or in equity of any transferee or fiduciary of any person referred to in clause (i); or
(E)
(i) issued by a criminal investigator of the Internal Revenue Service in connection with the investigation of an offense connected with the administration or enforcement of the internal revenue laws; and
(ii) served on any person who is not a third-party recordkeeper (as defined in section 7603(b)).
(3) John Doe and certain other summonses

Subsection (a) shall not apply to any summons described in subsection (f) or (g).

(4) Records

For purposes of this section, the term “records” includes books, papers, and other data.

(d) Restriction on examination of recordsNo examination of any records required to be produced under a summons as to which notice is required under subsection (a) may be made—
(1) before the close of the 23rd day after the day notice with respect to the summons is given in the manner provided in subsection (a)(2), or
(2) where a proceeding under subsection (b)(2)(A) was begun within the 20-day period referred to in such subsection and the requirements of subsection (b)(2)(B) have been met, except in accordance with an order of the court having jurisdiction of such proceeding or with the consent of the person beginning the proceeding to quash.
(e) Suspension of statute of limitations
(1) Subsection (b) action

If any person takes any action as provided in subsection (b) and such person is the person with respect to whose liability the summons is issued (or is the agent, nominee, or other person acting under the direction or control of such person), then the running of any period of limitations under section 6501 (relating to the assessment and collection of tax) or under section 6531 (relating to criminal prosecutions) with respect to such person shall be suspended for the period during which a proceeding, and appeals therein, with respect to the enforcement of such summons is pending.

(2) Suspension after 6 months of service of summonsIn the absence of the resolution of the summoned party’s response to the summons, the running of any period of limitations under section 6501 or under section 6531 with respect to any person with respect to whose liability the summons is issued (other than a person taking action as provided in subsection (b)) shall be suspended for the period—
(A) beginning on the date which is 6 months after the service of such summons, and
(B) ending with the final resolution of such response.
(f) Additional requirement in the case of a John Doe summonsAny summons described in subsection (c)(1) which does not identify the person with respect to whose liability the summons is issued may be served only after a court proceeding in which the Secretary establishes that—
(1) the summons relates to the investigation of a particular person or ascertainable group or class of persons,
(2) there is a reasonable basis for believing that such person or group or class of persons may fail or may have failed to comply with any provision of any internal revenue law, and
(3) the information sought to be obtained from the examination of the records or testimony (and the identity of the person or persons with respect to whose liability the summons is issued) is not readily available from other sources.
The Secretary shall not issue any summons described in the preceding sentence unless the information sought to be obtained is narrowly tailored to information that pertains to the failure (or potential failure) of the person or group or class of persons referred to in paragraph (2) to comply with one or more provisions of the internal revenue law which have been identified for purposes of such paragraph.
(g) Special exception for certain summonses

A summons is described in this subsection if, upon petition by the Secretary, the court determines, on the basis of the facts and circumstances alleged, that there is reasonable cause to believe the giving of notice may lead to attempts to conceal, destroy, or alter records relevant to the examination, to prevent the communication of information from other persons through intimidation, bribery, or collusion, or to flee to avoid prosecution, testifying, or production of records.

(h) Jurisdiction of district court; etc.
(1) Jurisdiction

The United States district court for the district within which the person to be summoned resides or is found shall have jurisdiction to hear and determine any proceeding brought under subsection (b)(2), (f), or (g). An order denying the petition shall be deemed a final order which may be appealed.

(2) Special rule for proceedings under subsections (f) and (g)

The determinations required to be made under subsections (f) and (g) shall be made ex parte and shall be made solely on the petition and supporting affidavits.

(i) Duty of summoned party
(1) Recordkeeper must assemble records and be prepared to produce records

On receipt of a summons to which this section applies for the production of records, the summoned party shall proceed to assemble the records requested, or such portion thereof as the Secretary may prescribe, and shall be prepared to produce the records pursuant to the summons on the day on which the records are to be examined.

(2) Secretary may give summoned party certificate

The Secretary may issue a certificate to the summoned party that the period prescribed for beginning a proceeding to quash a summons has expired and that no such proceeding began within such period, or that the taxpayer consents to the examination.

(3) Protection for summoned party who discloses

Any summoned party, or agent or employee thereof, making a disclosure of records or testimony pursuant to this section in good faith reliance on the certificate of the Secretary or an order of a court requiring production of records or the giving of such testimony shall not be liable to any customer or other person for such disclosure.

(4) Notice of suspension of statute of limitations in the case of a John Doe summons

In the case of a summons described in subsection (f) with respect to which any period of limitations has been suspended under subsection (e)(2), the summoned party shall provide notice of such suspension to any person described in subsection (f).

(j) Use of summons not required

Nothing in this section shall be construed to limit the Secretary’s ability to obtain information, other than by summons, through formal or informal procedures authorized by sections 7601 and 7602.

(Added Pub. L. 94–455, title XII, § 1205(a), Oct. 4, 1976, 90 Stat. 1699; amended Pub. L. 95–599, title V, § 505(c)(6), Nov. 6, 1978, 92 Stat. 2760; Pub. L. 95–600, title VII, § 703(l)(4), Nov. 6, 1978, 92 Stat. 2943; Pub. L. 96–223, title II, § 232(d)(4)(E), Apr. 2, 1980, 94 Stat. 278; Pub. L. 97–248, title III, §§ 311(b), 331(a)–(d), 332(a), Sept. 3, 1982, 96 Stat. 601, 620, 621; Pub. L. 97–424, title V, § 515(b)(12), Jan. 6, 1983, 96 Stat. 2182; Pub. L. 98–369, div. A, title VII, § 714(i), title IX, § 911(d)(2)(G), July 18, 1984, 98 Stat. 962, 1007; Pub. L. 98–620, title IV, § 402(28)(D), Nov. 8, 1984, 98 Stat. 3359; Pub. L. 99–514, title VI, § 656(a), title XV, § 1561(a), (b), title XVII, § 1703(e)(2)(G), Oct. 22, 1986, 100 Stat. 2299, 2761, 2778; Pub. L. 100–647, title I, §§ 1015(l)(1), (2), 1017(c)(9), (12), Nov. 10, 1988, 102 Stat. 3571, 3572, 3576, 3577; Pub. L. 104–168, title X, § 1001(a), July 30, 1996, 110 Stat. 1467; Pub. L. 105–206, title III, § 3415(a)–(c), July 22, 1998, 112 Stat. 755; Pub. L. 109–135, title IV, § 408(a), Dec. 21, 2005, 119 Stat. 2635; Pub. L. 116–25, title I, § 1204(a), July 1, 2019, 133 Stat. 988.)
§ 7610. Fees and costs for witnesses
(a) In general
The Secretary shall by regulations establish the rates and conditions under which payment may be made of—
(1) fees and mileage to persons who are summoned to appear before the Secretary, and
(2) reimbursement for such costs that are reasonably necessary which have been directly incurred in searching for, reproducing, or transporting books, papers, records, or other data required to be produced by summons.
(b) Exceptions
No payment may be made under paragraph (2) of subsection (a) if—
(1) the person with respect to whose liability the summons is issued has a proprietary interest in the books, papers, records or other data required to be produced, or
(2) the person summoned is the person with respect to whose liability the summons is issued or an officer, employee, agent, accountant, or attorney of such person who, at the time the summons is served, is acting as such.
(c) Summons to which section applies

This section applies with respect to any summons authorized under section 6420(e)(2), 6421(g)(2), 6427(j)(2), or 7602.

(Added Pub. L. 94–455, title XII, § 1205(a), Oct. 4, 1976, 90 Stat. 1699; amended Pub. L. 95–599, title V, § 505(c)(6), Nov. 6, 1978, 92 Stat. 2760; Pub. L. 96–223, title II, § 232(d)(4)(E), Apr. 2, 1980, 94 Stat. 278; Pub. L. 97–424, title V, § 515(b)(12), Jan. 6, 1983, 96 Stat. 2182; Pub. L. 98–369, div. A, title IX, § 911(d)(2)(G), July 18, 1984, 98 Stat. 1007; Pub. L. 99–514, title XVII, § 1703(e)(2)(G), Oct. 22, 1986, 100 Stat. 2778; Pub. L. 100–647, title I, § 1017(c)(9), (12), Nov. 10, 1988, 102 Stat. 3576, 3577.)
§ 7611. Restrictions on church tax inquiries and examinations
(a) Restrictions on inquiries
(1) In generalThe Secretary may begin a church tax inquiry only if—
(A) the reasonable belief requirements of paragraph (2), and
(B) the notice requirements of paragraph (3), have been met.
(2) Reasonable belief requirementsThe requirements of this paragraph are met with respect to any church tax inquiry if an appropriate high-level Treasury official reasonably believes (on the basis of facts and circumstances recorded in writing) that the church—
(A) may not be exempt, by reason of its status as a church, from tax under section 501(a), or
(B) may be carrying on an unrelated trade or business (within the meaning of section 513) or otherwise engaged in activities subject to taxation under this title.
(3) Inquiry notice requirements
(A) In general

The requirements of this paragraph are met with respect to any church tax inquiry if, before beginning such inquiry, the Secretary provides written notice to the church of the beginning of such inquiry.

(B) Contents of inquiry noticeThe notice required by this paragraph shall include—
(i) an explanation of—(I) the concerns which gave rise to such inquiry, and(II) the general subject matter of such inquiry, and
(ii) a general explanation of the applicable—(I) administrative and constitutional provisions with respect to such inquiry (including the right to a conference with the Secretary before any examination of church records), and(II) provisions of this title which authorize such inquiry or which may be otherwise involved in such inquiry.
(b) Restrictions on examinations
(1) In generalThe Secretary may begin a church tax examination only if the requirements of paragraph (2) have been met and such examination may be made only—
(A) in the case of church records, to the extent necessary to determine the liability for, and the amount of, any tax imposed by this title, and
(B) in the case of religious activities, to the extent necessary to determine whether an organization claiming to be a church is a church for any period.
(2) Notice of examination; opportunity for conferenceThe requirements of this paragraph are met with respect to any church tax examination if—
(A) at least 15 days before the beginning of such examination, the Secretary provides the notice described in paragraph (3) to both the church and the appropriate regional counsel of the Internal Revenue Service, and
(B) the church has a reasonable time to participate in a conference described in paragraph (3)(A)(iii), but only if the church requests such a conference before the beginning of the examination.
(3) Contents of examination notice, et cetera
(A) In generalThe notice described in this paragraph is a written notice which includes—
(i) a copy of the church tax inquiry notice provided to the church under subsection (a),
(ii) a description of the church records and activities which the Secretary seeks to examine,
(iii) an offer to have a conference between the church and the Secretary in order to discuss, and attempt to resolve, concerns relating to such examination, and
(iv) a copy of all documents which were collected or prepared by the Internal Revenue Service for use in such examination and the disclosure of which is required by the Freedom of Information Act (5 U.S.C. 552).
(B) Earliest day examination notice may be provided

The examination notice described in subparagraph (A) shall not be provided to the church before the 15th day after the date on which the church tax inquiry notice was provided to the church under subsection (a).

(C) Opinion of regional counsel with respect to examination

Any regional counsel of the Internal Revenue Service who receives an examination notice under paragraph (1) may, within 15 days after such notice is provided, submit to the regional commissioner for the region an advisory objection to the examination.

(4) Examination of records and activities not specified in notice

Within the course of a church tax examination which (at the time the examination begins) meets the requirements of paragraphs (1) and (2), the Secretary may examine any church records or religious activities which were not specified in the examination notice to the extent such examination meets the requirement of subparagraph (A) or (B) of paragraph (1) (whichever applies).

(c) Limitation on period of inquiries and examinations
(1) Inquiries and examinations must be completed within 2 years
(A) In general

The Secretary shall complete any church tax status inquiry or examination (and make a final determination with respect thereto) not later than the date which is 2 years after the examination notice date.

(B) Inquiries not followed by examinations

In the case of a church tax inquiry with respect to which there is no examination notice under subsection (b), the Secretary shall complete such inquiry (and make a final determination with respect thereto) not later than the date which is 90 days after the inquiry notice date.

(2) Suspension of 2-year periodThe running of the 2-year period described in paragraph (1)(A) and the 90-day period in paragraph (1)(B) shall be suspended—
(A) for any period during which—
(i) a judicial proceeding brought by the church against the Secretary with respect to the church tax inquiry or examination is pending or being appealed,
(ii) a judicial proceeding brought by the Secretary against the church (or any official thereof) to compel compliance with any reasonable request of the Secretary in a church tax examination for examination of church records or religious activities is pending or being appealed, or
(iii) the Secretary is unable to take actions with respect to the church tax inquiry or examination by reason of an order issued in any judicial proceeding brought under section 7609,
(B) for any period in excess of 20 days (but not in excess of 6 months) in which the church or its agents fail to comply with any reasonable request of the Secretary for church records or other information, or
(C) for any period mutually agreed upon by the Secretary and the church.
(d) Limitations on revocation of tax-exempt status, etc.
(1) In generalThe Secretary may—
(A) determine that an organization is not a church which—
(i) is exempt from taxation by reason of section 501(a), or
(ii) is described in section 170(c), or
(B)
(i) send a notice of deficiency of any tax involved in a church tax examination, or
(ii) in the case of any tax with respect to which subchapter B of chapter 63 (relating to deficiency procedures) does not apply, assess any underpayment of such tax involved in a church tax examination,
only if the appropriate regional counsel of the Internal Revenue Service determines in writing that there has been substantial compliance with the requirements of this section and approves in writing of such revocation, notice of deficiency, or assessment.
(2) Limitations on period of assessment
(A) Revocation of tax-exempt status
(i) 3-year statute of limitations generally

In the case of any church tax examination with respect to the revocation of tax-exempt status under section 501(a), any tax imposed by chapter 1 (other than section 511) may be assessed, or a proceeding in court for collection of such tax may be begun without assessment, only for the 3 most recent taxable years ending before the examination notice date.

(ii) 6-year statute of limitations where tax-exempt status revoked

If an organization is not a church exempt from tax under section 501(a) for any of the 3 taxable years described in clause (i), clause (i) shall be applied by substituting “6 most recent taxable years” for “3 most recent taxable years”.

(B) Unrelated business tax

In the case of any church tax examination with respect to the tax imposed by section 511 (relating to unrelated business income), such tax may be assessed, or a proceeding in court for the collection of such tax may be begun without assessment, only with respect to the 6 most recent taxable years ending before the examination notice date.

(C) Exception where shorter statute of limitations otherwise applicable

Subparagraphs (A) and (B) shall not be construed to increase the period otherwise applicable under subchapter A of chapter 66 (relating to limitations on assessment and collection).

(e) Information not collected in substantial compliance with procedures to stay summons proceeding
(1) In generalIf there has not been substantial compliance with—
(A) the notice requirements of subsection (a) or (b),
(B) the conference requirement described in subsection (b)(3)(A)(iii), or
(C) the approval requirement of subsection (d)(1) (if applicable),
with respect to any church tax inquiry or examination, any proceeding to compel compliance with any summons with respect to such inquiry or examination shall be stayed until the court finds that all practicable steps to correct the noncompliance have been taken. The period applicable under paragraph (1) or subsection (c) shall not be suspended during the period of any stay under the preceding sentence.
(2) Remedy to be exclusive

No suit may be maintained, and no defense may be raised in any proceeding (other than as provided in paragraph (1)), by reason of any noncompliance by the Secretary with the requirements of this section.

(f) Limitations on additional inquiries and examinations
(1) In generalIf any church tax inquiry or examination with respect to any church is completed and does not result in—
(A) a revocation, notice of deficiency, or assessment described in subsection (d)(1), or
(B) a request by the Secretary for any significant change in the operational practices of the church (including the adequacy of accounting practices),
no other church tax inquiry or examination may begin with respect to such church during the applicable 5-year period unless such inquiry or examination is approved in writing by the Secretary or does not involve the same or similar issues involved in the preceding inquiry or examination. For purposes of the preceding sentence, an inquiry or examination shall be treated as completed not later than the expiration of the applicable period under paragraph (1) of subsection (c).
(2) Applicable 5-year period

For purposes of paragraph (1), the term “applicable 5-year period” means the 5-year period beginning on the date the notice taken into account for purposes of subsection (c)(1) was provided. For purposes of the preceding sentence, the rules of subsection (c)(2) shall apply.

(g) Treatment of final report of revenue agent

Any final report of an agent of the Internal Revenue Service shall be treated as a determination of the Secretary under paragraph (1) of section 7428(a), and any church receiving such a report shall be treated for purposes of sections 7428 and 7430 as having exhausted the administrative remedies available to it.

(h) DefinitionsFor purposes of this section—
(1) ChurchThe term “church” includes—
(A) any organization claiming to be a church, and
(B) any convention or association of churches.
(2) Church tax inquiryThe term “church tax inquiry” means any inquiry to a church (other than an examination) to serve as a basis for determining whether a church—
(A) is exempt from tax under section 501(a) by reason of its status as a church, or
(B) is carrying on an unrelated trade or business (within the meaning of section 513) or otherwise engaged in activities which may be subject to taxation under this title.
(3) Church tax examinationThe term “church tax examination” means any examination for purposes of making a determination described in paragraph (2) of—
(A) church records at the request of the Internal Revenue Service, or
(B) the religious activities of any church.
(4) Church records
(A) In general

The term “church records” means all corporate and financial records regularly kept by a church, including corporate minute books and lists of members and contributors.

(B) ExceptionSuch term shall not include records acquired—
(i) pursuant to a summons to which section 7609 applies, or
(ii) from any governmental agency.
(5) Inquiry notice date

The term “inquiry notice date” means the date the notice with respect to a church tax inquiry is provided under subsection (a).

(6) Examination notice date

The term “examination notice date” means the date the notice with respect to a church tax examination is provided under subsection (b) to the church.

(7) Appropriate high-level Treasury official

The term “appropriate high-level Treasury official” means the Secretary of the Treasury or any delegate of the Secretary whose rank is no lower than that of a principal Internal Revenue officer for an internal revenue region.

(i) Section not to apply to criminal investigations, etc.This section shall not apply to—
(1)
(2) any inquiry or examination relating to the tax liability of any person other than a church,
(3) any assessment under section 6851 (relating to termination assessments of income tax), section 6852 (relating to termination assessments in case of flagrant political expenditures of section 501(c)(3) organizations), or section 6861 (relating to jeopardy assessments of income taxes, etc.),
(4) any willful attempt to defeat or evade any tax imposed by this title, or
(5) any knowing failure to file a return of tax imposed by this title.
(Added Pub. L. 98–369, div. A, title X, § 1033(a), July 18, 1984, 98 Stat. 1034; amended Pub. L. 99–514, title XVIII, § 1899A(61), (62), Oct. 22, 1986, 100 Stat. 2962; Pub. L. 100–203, title X, § 10713(b)(2)(G), Dec. 22, 1987, 101 Stat. 1330–470; Pub. L. 100–647, title I, § 1018(u)(49), Nov. 10, 1988, 102 Stat. 3593; Pub. L. 101–239, title VII, § 7822(d)(1), Dec. 19, 1989, 103 Stat. 2425; Pub. L. 104–188, title I, § 1704(t)(59), Aug. 20, 1996, 110 Stat. 1890; Pub. L. 105–206, title I, § 1102(e)(3), July 22, 1998, 112 Stat. 705.)
§ 7612. Special procedures for summonses for computer software
(a) General ruleFor purposes of this title—
(1) except as provided in subsection (b), no summons may be issued under this title, and the Secretary may not begin any action under section 7604 to enforce any summons to produce or analyze any tax-related computer software source code; and
(2) any software and related materials which are provided to the Secretary under this title shall be subject to the safeguards under subsection (c).
(b) Circumstances under which computer software source code may be provided
(1) In generalSubsection (a)(1) shall not apply to any portion, item, or component of tax-related computer software source code if—
(A) the Secretary is unable to otherwise reasonably ascertain the correctness of any item on a return from—
(i) the taxpayer’s books, papers, records, or other data; or
(ii) the computer software executable code (and any modifications thereof) to which such source code relates and any associated data which, when executed, produces the output to ascertain the correctness of the item;
(B) the Secretary identifies with reasonable specificity the portion, item, or component of such source code needed to verify the correctness of such item on the return; and
(C) the Secretary determines that the need for the portion, item, or component of such source code with respect to such item outweighs the risks of unauthorized disclosure of trade secrets.
(2) ExceptionsSubsection (a)(1) shall not apply to—
(A) any inquiry into any offense connected with the administration or enforcement of the internal revenue laws;
(B) any tax-related computer software source code acquired or developed by the taxpayer or a related person primarily for internal use by the taxpayer or such person rather than for commercial distribution;
(C) any communications between the owner of the tax-related computer software source code and the taxpayer or related persons; or
(D) any tax-related computer software source code which is required to be provided or made available pursuant to any other provision of this title.
(3) Cooperation requiredFor purposes of paragraph (1), the Secretary shall be treated as meeting the requirements of subparagraphs (A) and (B) of such paragraph if—
(A) the Secretary determines that it is not feasible to determine the correctness of an item without access to the computer software executable code and associated data described in paragraph (1)(A)(ii);
(B) the Secretary makes a formal request to the taxpayer for such code and data and to the owner of the computer software source code for such executable code; and
(C) such code and data is not provided within 180 days of such request.
(4) Right to contest summons

In any proceeding brought under section 7604 to enforce a summons issued under the authority of this subsection, the court shall, at the request of any party, hold a hearing to determine whether the applicable requirements of this subsection have been met.

(c) Safeguards to ensure protection of trade secrets and other confidential information
(1) Entry of protective order

In any court proceeding to enforce a summons for any portion of software, the court may receive evidence and issue any order necessary to prevent the disclosure of trade secrets or other confidential information with respect to such software, including requiring that any information be placed under seal to be opened only as directed by the court.

(2) Protection of softwareNotwithstanding any other provision of this section, and in addition to any protections ordered pursuant to paragraph (1), in the case of software that comes into the possession or control of the Secretary in the course of any examination with respect to any taxpayer—
(A) the software may be used only in connection with the examination of such taxpayer’s return, any appeal by the taxpayer to the Internal Revenue Service Independent Office of Appeals, any judicial proceeding (and any appeals therefrom), and any inquiry into any offense connected with the administration or enforcement of the internal revenue laws;
(B) the Secretary shall provide, in advance, to the taxpayer and the owner of the software a written list of the names of all individuals who will analyze or otherwise have access to the software;
(C) the software shall be maintained in a secure area or place, and, in the case of computer software source code, shall not be removed from the owner’s place of business unless the owner permits, or a court orders, such removal;
(D) the software may not be copied except as necessary to perform such analysis, and the Secretary shall number all copies made and certify in writing that no other copies have been (or will be) made;
(E) at the end of the period during which the software may be used under subparagraph (A)—
(i) the software and all copies thereof shall be returned to the person from whom they were obtained and any copies thereof made under subparagraph (D) on the hard drive of a machine or other mass storage device shall be permanently deleted; and
(ii) the Secretary shall obtain from any person who analyzes or otherwise had access to such software a written certification under penalty of perjury that all copies and related materials have been returned and that no copies were made of them;
(F) the software may not be decompiled or disassembled;
(G) the Secretary shall provide to the taxpayer and the owner of any interest in such software, as the case may be, a written agreement, between the Secretary and any person who is not an officer or employee of the United States and who will analyze or otherwise have access to such software, which provides that such person agrees not to—
(i) disclose such software to any person other than persons to whom such information could be disclosed for tax administration purposes under section 6103; or
(ii) participate for 2 years in the development of software which is intended for a similar purpose as the software examined; and
(H) the software shall be treated as return information for purposes of section 6103.
For purposes of subparagraph (C), the owner shall make available any necessary equipment or materials for analysis of computer software source code required to be conducted on the owner’s premises. The owner of any interest in the software shall be considered a party to any agreement described in subparagraph (G).
(d) DefinitionsFor purposes of this section—
(1) Software

The term “software” includes computer software source code and computer software executable code.

(2) Computer software source codeThe term “computer software source code” means—
(A) the code written by a programmer using a programming language which is comprehensible to appropriately trained persons and is not capable of directly being used to give instructions to a computer;
(B) related programmers’ notes, design documents, memoranda, and similar documentation; and
(C) related customer communications.
(3) Computer software executable codeThe term “computer software executable code” means—
(A) any object code, machine code, or other code readable by a computer when loaded into its memory and used directly by such computer to execute instructions; and
(B) any related user manuals.
(4) Owner

The term “owner” shall, with respect to any software, include the developer of the software.

(5) Related person

A person shall be treated as related to another person if such persons are related persons under section 267 or 707(b).

(6) Tax-related computer software source code

The term “tax-related computer software source code” means the computer source code for any computer software program intended for accounting, tax return preparation or compliance, or tax planning.

(Added Pub. L. 105–206, title III, § 3413(a), July 22, 1998, 112 Stat. 751; amended Pub. L. 116–25, title I, § 1001(b)(1)(J), July 1, 2019, 133 Stat. 985.)
§ 7613. Cross references
(a) Inspection of books, papers, records, or other data
For inspection of books, papers, records, or other data in the case of—
(1) Wagering, see section 4423.
(2) Alcohol, tobacco, and firearms taxes, see subtitle E.
(b) Search warrants
For provisions relating to—
(1) Searches and seizures, see Rule 41 of the Federal Rules of Criminal Procedure.
(2) Issuance of search warrants with respect to subtitle E, see section 5557.
(3) Search warrants with respect to property used in violation of the internal revenue laws, see section 7302.
(Aug. 16, 1954, ch. 736, 68A Stat. 903, § 7607; renumbered § 7608, July 18, 1956, ch. 629, title I, § 104(a), 70 Stat. 570; renumbered § 7609 and amended Pub. L. 85–859, title II, § 204(14), (15), Sept. 2, 1958, 72 Stat. 1429, 1430; Pub. L. 91–513, title III, § 1102(h), Oct. 27, 1970, 84 Stat. 1293; renumbered § 7611 and amended Pub. L. 94–455, title XII, § 1205(a), title XIX, § 1904(b)(7)(D), (9)(E),