Tap any paragraph to write a margin note. Your notes collect in the Desk below the text and file under cases with @. The side-by-side margin rail opens on a larger screen.

Code · U.S. Code · Title 26 - INTERNAL REVENUE CODE · CHAPTER 1— NORMAL TAXES AND SURTAXES · Subchapter B— Computation of Taxable Income · § 217

§ 217. Moving expenses

2,891 words·~13 min read·/usc/title-26/section-217

A research copy — for the controlling text, always check the official state or federal source. Not legal advice.

(a)Deduction allowed There shall be allowed as a deduction moving expenses paid or incurred during the taxable year in connection with the commencement of work by the taxpayer as an employee or as a self-employed individual at a new principal place of work.
(b)Definition of moving expenses
(1)In general For purposes of this section, the term “moving expenses” means only the reasonable expenses—
(A)of moving household goods and personal effects from the former residence to the new residence, and
(B)of traveling (including lodging) from the former residence to the new place of residence.
Such term shall not include any expenses for meals.
(2)Individuals other than taxpayer In the case of any individual other than the taxpayer, expenses referred to in paragraph
(1)shall be taken into account only if such individual has both the former residence and the new residence as his principal place of abode and is a member of the taxpayer’s household.
(c)Conditions for allowance No deduction shall be allowed under this section unless—
(1)the taxpayer’s new principal place of work—
(A)is at least 50 miles farther from his former residence than was his former principal place of work, or
(B)if he had no former principal place of work, is at least 50 miles from his former residence, and
(2)either—
(A)during the 12-month period immediately following his arrival in the general location of his new principal place of work, the taxpayer is a full-time employee, in such general location, during at least 39 weeks, or
(B)during the 24-month period immediately following his arrival in the general location of his new principal place of work, the taxpayer is a full-time employee or performs services as a self-employed individual on a full-time basis, in such general location, during at least 78 weeks, of which not less than 39 weeks are during the 12-month period referred to in subparagraph (A).
For purposes of paragraph (1), the distance between two points shall be the shortest of the more commonly traveled routes between such two points.
(d)Rules for application of subsection (c)(2)
(1)The condition of subsection (c)(2) shall not apply if the taxpayer is unable to satisfy such condition by reason of—
(A)death or disability, or
(B)involuntary separation (other than for willful misconduct) from the service of, or transfer for the benefit of, an employer after obtaining full-time employment in which the taxpayer could reasonably have been expected to satisfy such condition.
(2)If a taxpayer has not satisfied the condition of subsection (c)(2) before the time prescribed by law (including extensions thereof) for filing the return for the taxable year during which he paid or incurred moving expenses which would otherwise be deductible under this section, but may still satisfy such condition, then such expenses may (at the election of the taxpayer) be deducted for such taxable year notwithstanding subsection (c)(2).
(3)If—
(A)for any taxable year moving expenses have been deducted in accordance with the rule provided in paragraph (2), and
(B)the condition of subsection (c)(2) cannot be satisfied at the close of a subsequent taxable year,
then an amount equal to the expenses which were so deducted shall be included in gross income for the first such subsequent taxable year.
[(e) Repealed. Pub. L. 103–66, title XIII, § 13213(a)(2)(A), Aug. 10, 1993, 107 Stat. 473]
(f)Self-employed individual For purposes of this section, the term “self-employed individual” means an individual who performs personal services—
(1)as the owner of the entire interest in an unincorporated trade or business, or
(2)as a partner in a partnership carrying on a trade or business.
(g)Rules for members of the Armed Forces of the United States In the case of a member of the Armed Forces of the United States on active duty who moves pursuant to a military order and incident to a permanent change of station—
(1)the limitations under subsection
(c)shall not apply;
(2)any moving and storage expenses which are furnished in kind (or for which reimbursement or an allowance is provided, but only to the extent of the expenses paid or incurred) to such member, his spouse, or his dependents, shall not be includible in gross income, and no reporting with respect to such expenses shall be required by the Secretary of Defense or the Secretary of Transportation, as the case may be; and
(3)if moving and storage expenses are furnished in kind (or if reimbursement or an allowance for such expenses is provided) to such member’s spouse and his dependents with regard to moving to a location other than the one to which such member moves (or from a location other than the one from which such member moves), this section shall apply with respect to the moving expenses of his spouse and dependents—
(A)as if his spouse commenced work as an employee at a new principal place of work at such location; and
(B)without regard to the limitations under subsection (c).
(h)Special rules for foreign moves
(1)Allowance of certain storage fees In the case of a foreign move, for purposes of this section, the moving expenses described in subsection (b)(1)(A) include the reasonable expenses—
(A)of moving household goods and personal effects to and from storage, and
(B)of storing such goods and effects for part or all of the period during which the new place of work continues to be the taxpayer’s principal place of work.
(2)Foreign move For purposes of this subsection, the term “foreign move” means the commencement of work by the taxpayer at a new principal place of work located outside the United States.
(3)United States defined For purposes of this subsection and subsection (i), the term “United States” includes the possessions of the United States.
(i)Allowance of deductions in case of retirees or decedents who were working abroad
(1)In general In the case of any qualified retiree moving expenses or qualified survivor moving expenses—
(A)this section (other than subsection (h)) shall be applied with respect to such expenses as if they were incurred in connection with the commencement of work by the taxpayer as an employee at a new principal place of work located within the United States, and
(B)the limitations of subsection (c)(2) shall not apply.
(2)Qualified retiree moving expenses For purposes of paragraph (1), the term “qualified retiree moving expenses” means any moving expenses—
(A)which are incurred by an individual whose former principal place of work and former residence were outside the United States, and
(B)which are incurred for a move to a new residence in the United States in connection with the bona fide retirement of the individual.
(3)Qualified survivor moving expenses For purposes of paragraph (1), the term “qualified survivor moving expenses” means moving expenses—
(A)which are paid or incurred by the spouse or any dependent of any decedent who (as of the time of his death) had a principal place of work outside the United States, and
(B)which are incurred for a move which begins within 6 months after the death of such decedent and which is to a residence in the United States from a former residence outside the United States which (as of the time of the decedent’s death) was the residence of such decedent and the individual paying or incurring the expense.
(j)Regulations The Secretary shall prescribe such regulations as may be necessary to carry out the purposes of this section.
(k)Suspension of deduction for taxable years beginning after 2017
(1)In general Except in the case of an individual to whom subsection
(g)applies, this section shall not apply to any taxable year beginning after December 31, 2017.
(2)Members of the intelligence community An employee or new appointee of the intelligence community (as defined in section 3 of the National Security Act of 1947 (50 U.S.C. 3003)) (other than a member of the Armed Forces of the United States) who moves pursuant to a change in assignment which requires relocation shall be treated for purposes of this section in the same manner as an individual to whom subsection
(g)applies.
(Added Pub. L. 88–272, title II, § 213(a)(1), Feb. 26, 1964, 78 Stat. 50; amended Pub. L. 91–172, title II, § 231(a), Dec. 30, 1969, 83 Stat. 577; Pub. L. 94–455, title V, § 506 (a)–(c), title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1568, 1834; Pub. L. 95–615, title II, § 204, Nov. 8, 1978, 92 Stat. 3106; Pub. L. 103–66, title XIII, § 13213(a)(1)–(2)(D), (b), Aug. 10, 1993, 107 Stat. 473, 474; Pub. L. 115–97, title I, § 11049(a), Dec. 22, 2017, 131 Stat. 2088; Pub. L. 119–21, title VII, § 70113(a), (b), July 4, 2025, 139 Stat. 165.)
Connections25 cite this · traces to 8
Cited by 25 sections · top 20
39 references not yet in our index
  • Pub. L. 88–272, title II, § 213(a)(1)
  • 78 Stat. 50
  • Pub. L. 91–172, title II, § 231(a)
  • 83 Stat. 577
  • Pub. L. 94–455, title V, § 506
  • 90 Stat. 1568
  • Pub. L. 95–615, title II, § 204
  • 92 Stat. 3106
  • Pub. L. 103–66, title XIII, § 13213(a)(1)
  • 107 Stat. 473
  • 131 Stat. 2088
  • 139 Stat. 165
  • Pub. L. 103–66, § 13213(a)(1)
  • Pub. L. 103–66, § 13213(b)
  • Pub. L. 103–66, § 13213(a)(2)(A)
  • Pub. L. 103–66, § 13213(a)(2)(B)
  • Pub. L. 103–66, § 13213(a)(2)(C)
  • Pub. L. 103–66, § 13213(a)(2)(D)
  • Pub. L. 95–615
  • Pub. L. 94–455, § 506(b)(1)
  • Pub. L. 94–455, § 506(b)(3)
  • Pub. L. 94–455, § 506(a)
  • Pub. L. 94–455
  • Pub. L. 91–172
  • 131 Stat. 2089
  • Pub. L. 103–66
  • section 13213(e) of Pub. L. 103–66
  • section 209 of Pub. L. 95–615
  • Pub. L. 94–455, title V, § 506(d)
  • 90 Stat. 1569
  • Pub. L. 91–172, title II, § 231(d)
  • 83 Stat. 580
  • Pub. L. 91–642, § 2
  • 84 Stat. 1880
  • Pub. L. 99–514, § 2
  • 100 Stat. 2095
  • section 213(d) of Pub. L. 88–272
  • Pub. L. 93–490, § 2
  • 88 Stat. 1466
Citation graph
cites case law
§ 217
Moving expenses
Stat.×15
U.S.C.×8
Pub. L.×1
Fed. Reg.×1
Pub. L.Pub. L. 88–272, title II, § 213(a)(1)
Stat.78 Stat. 50
Pub. L.Pub. L. 91–172, title II, § 231(a)
Stat.83 Stat. 577
Cites 47 · showing 12Cited by 25 across 4 sources
★   the supreme law of the land   ★
Don't Tread on Me
E Pluribus Unum — out of many, one

"If you don't know your rights, you don't have any."

Marginalia · a citizen's law index
A research desk, not legal advice. Always read the cited source before relying on a summary.
Questions or an issue? support@self-law.org
disclaimerMarginalia is a research index, not a law firm. Nothing on this site is legal, tax, or financial advice and no attorney–client relationship is formed by using it. Statutes, regulations, and case law change; summaries, search results, AI output, and member posts may be incomplete, out of date, or wrong. Any interpretation drawn from material on this site should be validated by a licensed attorney in your jurisdiction before you act on it.