31 C.F.R. § 10.27 Fees.
Title 31 - Money and Finance: Treasury
(a) Generally. A practitioner may not charge an unconscionable fee for representing a client in a matter before the Internal Revenue Service. (b) Contingent fees. (1) For purposes of this section, a contingent fee is any fee that is based, in whole or in part, on whether or not a position taken on a tax return or other filing avoids challenge by the Internal Revenue Service or is sustained either by the Internal Revenue Service or in litigation. A contingent fee includes any fee arrangement in which the practitioner will reimburse the client for all or a portion of the client's fee in the event that a position taken on a tax return or other filing is challenged by the Internal Revenue Service or is not sustained, whether pursuant to an indemnity agreement, a guarantee, rescission rights, or any other arrangement with a similar effect. (2) A practitioner may not charge a contingent fee for preparing an original tax return or for any advice rendered in connection with a position taken or to be taken on an original tax return. (3) A contingent fee may be charged for preparation of or advice in connection with an amended tax return or a claim for refund (other than a claim for refund made on an original tax return), but only if the practitioner reasonably anticipates at the time the fee arrangement is entered into that the amended tax return or refund claim will receive substantive review by the Internal Revenue Service.
Title 31: Money and Finance: Treasury
PART 10—PRACTICE BEFORE THE INTERNAL REVENUE SERVICE
Subpart B—Duties and Restrictions Relating to Practice Before the Internal Revenue Service
§ 10.27 Fees.

