Four separate bodies of law constrain this, and they do different jobs. Treating them as one anti-abuse rule is how a plan that survives three of them fails the fourth.
1. The assignment-of-income doctrine, in two Supreme Court sentences. In Lucas v. Earl a husband and wife had contracted that all their earnings would be held jointly. Justice Holmes wrote that the statute could "tax salaries to those who earned them and provide that the tax could not be escaped by anticipatory arrangements and contracts however skilfully devised to prevent the salary when paid from vesting even for a second in the man who earned it," and that no distinction could be drawn "according to the motives leading to the arrangement by which the fruits are attributed to a different tree from that on which they grew." Ten years later Helvering v. Horst extended the principle from earned income to income from property, holding that "the power to dispose of income is the equivalent of ownership of it. The exercise of that power to procure the payment of income to another is the enjoyment and hence the realization of the income by him who exercises it." Horst had detached interest coupons from bonds he kept and given the coupons to his son.
Read together, the two cases draw the line the entire subject turns on. Earl covers services: you cannot give away your salary. Horst covers property: you cannot give away the yield while keeping the thing that produces it. What you can do is give away the tree. Transfer the asset itself, completely and permanently, and the income it produces afterwards is the new owner's income.
The doctrine is not unlimited, and the IRS says so in its own words. Revenue Ruling 2002-22 continues: "the courts and the Service have long recognized that the assignment of income doctrine does not apply to every transfer of future income rights," citing Rubin v. Commissioner, Hempt Bros., Inc. v. United States, and Revenue Ruling 80-198. The concession is worth knowing precisely because it comes from the enforcer.
2. The kiddie tax, section 1(g). Its official heading is "Certain unearned income of children taxed as if parent's income"; "kiddie tax" is nowhere in the statute. It exists to answer the most obvious version of the strategy, which is putting investments in a child's name. Section 1(g)(1) computes the child's tax as the greater of the tax without the subsection, or the tax on income reduced by net unearned income plus the child's share of the parent's tax on that unearned income. The reach is set by section 1(g)(2): a child under 18 at the close of the year, or 18 and older who meets the age requirements of section 152(c)(3) and whose earned income does not exceed half of their own support, where at least one parent is alive and the child does not file jointly. Section 1(g)(4)(A)(ii) sets the offset by reference to the section 63(c)(5)(A) amount, which is $1,350, and it subtracts that amount twice, which is why the commonly quoted threshold is double the published figure; the parental-election band in section 1(g)(7) runs from that amount to ten times it.
Two things matter for anyone reading older material. It reaches unearned income only, so a child's wages are outside it entirely. And the version that taxed a child's unearned income at trust and estate rates was law for 2018 and 2019 only: section 1(j)(4) was repealed by the SECURE Act, restoring the parental-rate mechanism. Any source describing the kiddie tax as using trust rates is describing two tax years that have passed. The rule is covered in full on its own page.
3. Section 704(e), and a citation almost everyone gets wrong. This is the partnership answer to the strategy, and its architecture changed in 2015. The subsection's heading is now "Partnership interests created by gift"; before the Bipartisan Budget Act of 2015 it read "Family partnerships." That Act also struck out the old paragraph (1) — the rule that "a person shall be recognized as a partner for purposes of this subtitle if he owns a capital interest in a partnership in which capital is a material income-producing factor, whether or not such interest was derived by purchase or gift from any other person" — and renumbered the survivors. So the provision routinely cited as "section 704(e)(1)" for partner recognition no longer exists, and secondary sources written before 2015 cite a repealed paragraph.
What survives, now section 704(e)(1), is the substantive limit: for a partnership interest created by gift, the donee's distributive share is includible in their gross income "except to the extent that such share is determined without allowance of reasonable compensation for services rendered to the partnership by the donor," and except to the extent the share attributable to donated capital is proportionately greater than the donor's own. In plain terms: the donor must be paid properly for the work they still do before the profits can be allocated to the donee, and the donee's share cannot be disproportionate to the capital they were given. Section 704(e)(2) closes the obvious workaround by treating a purchase between family members as created by gift from the seller, with "family" limited to "his spouse, ancestors, and lineal descendants, and any trusts for the primary benefit of such persons."
4. Below-market loans, section 7872. Lending money to a family member at no interest is a shift of investment income if it works, so the Code treats the interest that was not charged as if it had been paid. Section 7872(a)(1) treats forgone interest as "transferred from the lender to the borrower, and … retransferred by the borrower to the lender as interest." The rule has its own de minimis threshold and, for gift loans, a cap tied to the borrower's investment income; the mechanics belong on the page for an intrafamily loan.
Where the boundary of lawfulness sits is a separate question from whether a particular technique works. Arranging affairs to reduce tax is lawful; what the courts and the Code police is a transaction whose only real content is the tax result. That distinction has its own page.