Title 26Internal Revenue CodeRelease 119-73

§217 Moving expenses

Title 26 › Subtitle Subtitle A— - Income Taxes › Chapter CHAPTER 1— - NORMAL TAXES AND SURTAXES › Subchapter Subchapter B— - Computation of Taxable Income › Part PART VII— - ADDITIONAL ITEMIZED DEDUCTIONS FOR INDIVIDUALS › § 217

Last updated Apr 6, 2026|Official source

Summary

You can deduct moving costs you pay in the year you start a new main job, whether you are an employee or self-employed. "Moving costs" means reasonable charges to move your household goods and personal items and travel (including hotel) from your old home to your new home. Costs for another household member count only if both homes were that person’s main home. To claim the deduction, the new job must be at least 50 miles farther from your old home than your old job was (or at least 50 miles away if you had no old job). You must work full time in the new area at least 39 weeks in the 12 months after you arrive, or 78 weeks in 24 months (self-employment is allowed for the 24-month rule), with at least 39 weeks falling in the first 12 months. Exceptions apply for death, disability, or involuntary job loss. Active-duty military moving because of orders do not have to meet the distance or work tests, and their moving or storage paid in kind or reimbursed is not taxed or reported. Special rules cover foreign moves, retirees moving to the United States, and survivors moving after a decedent’s death. The Treasury can write rules to carry this out. Except for active-duty military (and certain intelligence appointees treated like military), this deduction does not apply to tax years beginning after December 31, 2017.

Full Legal Text

Title 26, §217

Internal Revenue Code — Source: USLM XML via OLRC

(a)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)(1)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.
(2)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)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).
(d)(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,
[(e)
(f)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)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)(1)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)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)For purposes of this subsection and subsection (i), the term “United States” includes the possessions of the United States.
(i)(1)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)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)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)The Secretary shall prescribe such regulations as may be necessary to carry out the purposes of this section.
(k)(1)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)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.

Legislative History

Notes & Related Subsidiaries

Editorial Notes

Prior Provisions

A prior section 217 was renumbered section 226 of this title.

Amendments

2025—Subsec. (k). Pub. L. 119–21, § 70113(b), designated existing provisions as par. (1), inserted heading, and added par. (2). Pub. L. 119–21, § 70113(a), substituted “beginning after 2017” for “2018 through 2025” in heading and struck out “, and before
January 1, 2026” after “
December 31, 2017” in text. 2017—Subsec. (k). Pub. L. 115–97 added subsec. (k). 1993—Subsec. (b). Pub. L. 103–66, § 13213(a)(1), amended subsec. (b) generally, restating former par. (1)(A) and (B) as par. (1) and former par. (3)(C) as par. (2) and striking out former par. (1)(C) to (E) which included certain traveling, meals, lodging, and residence sale, purchase, and lease expenses in the term “moving expenses”, par. (2) which defined “qualified residence sale, purchase, or lease expenses”, and par. (3)(A) and (B) which placed dollar limits on the amount allowed to be deducted as moving expenses. Subsec. (c)(1). Pub. L. 103–66, § 13213(b), substituted “50 miles” for “35 miles” in subpars. (A) and (B). Subsec. (e). Pub. L. 103–66, § 13213(a)(2)(A), struck out heading and text of subsec. (e). Text read as follows: “The amount realized on the sale of the residence described in subparagraph (A) of subsection (b)(2) shall not be decreased by the amount of any expenses described in such subparagraph which are allowed as a deduction under subsection (a), and the basis of a residence described in subparagraph (B) of subsection (b)(2) shall not be increased by the amount of any expenses described in such subparagraph which are allowed as a deduction under subsection (a). This subsection shall not apply to any expenses with respect to which an amount is included in gross income under subsection (d)(3).” Subsec. (f). Pub. L. 103–66, § 13213(a)(2)(B), amended heading and text of subsec. (f) generally. Prior to amendment, text read as follows: “(1) Definition.—For purposes of this section, the term ‘self-employed individual’ means an individual who performs personal services— “(A) as the owner of the entire interest in an unincorporated trade or business, or “(B) as a partner in a partnership carrying on a trade or business. “(2) Rule for application of subsections (b)(1)(c) and (d).—For purposes of subparagraphs (C) and (D) of subsection (b)(1), an individual who commences work at a new principal place of work as a self-employed individual shall be treated as having obtained employment when he has made substantial arrangements to commence such work.” Subsec. (g)(3). Pub. L. 103–66, § 13213(a)(2)(C), inserted “and” at end of subpar. (A), redesignated subpar. (C) as (B), and struck out former subpar. (B) which read as follows: “for purposes of subsection (b)(3), as if such place of work was within the same general location as the member’s new principal place of work, and”. Subsec. (h). Pub. L. 103–66, § 13213(a)(2)(D), redesignated pars. (2) to (4) as (1) to (3), respectively, and struck out heading and text of former par. (1). Text read as follows: “In the case of a foreign move— “(A) subsection (b)(1)(D) shall be applied by substituting ‘90 consecutive days’ for ‘30 consecutive days’, “(B) subsection (b)(3)(A) shall be applied by substituting ‘$4,500’ for ‘$1,500’ and by substituting ‘$6,000’ for ‘$3,000’, and “(C) subsection (b)(3)(B) shall be applied as if the last sentence of such subsection read as follows: ‘In the case of a husband and wife filing separate returns, subparagraph (A) shall be applied by substituting “$2,250” for “$4,500”, and by substituting “$3,000” for “$6,000”.’ ” 1978—Subsecs. (h) to (j). Pub. L. 95–615 added subsecs. (h) and (i) and redesignated former subsec. (h) as (j). 1976—Subsec. (b)(3)(A). Pub. L. 94–455, § 506(b)(1), (2), substituted “$1,500” for “$1,000” after “(1) shall not exceed” and “$3,000” for “$2,500” after “lease expenses shall not exceed”. Subsec. (b)(3)(B). Pub. L. 94–455, § 506(b)(3), substituted “ ‘$750’ for ‘$1,500’ ” for “ ‘$500’ for ‘$1,000’ ” after “applied by substituting” and “ ‘$1,500’ for ‘$3,000’ ” for “ ‘$1,250’ for ‘$2,500’ ” after “and by substituting”. Subsec. (c)(1)(A), (B). Pub. L. 94–455, § 506(a), substituted “35” for “50” after “at least”. Subsecs. (g), (h). Pub. L. 94–455, §§ 506(c), 1906(b)(13)(A), added subsec. (g), redesignated former subsec. (g) as (h) and struck out “or his delegate” after “Secretary”. 1969—Pub. L. 91–172 substantially reenacted existing provisions and extended the coverage to self-employed persons working at the new location for 78 weeks, made it a requirement that the new principal place of work be located 50 miles from the former residence, and redefined the deduction to include costs of house-hunting trips, temporary living expenses prior to locating a new home, and expenses of selling an old home or buying a new one.

Statutory Notes and Related Subsidiaries

Effective Date

of 2025 AmendmentAmendment by Pub. L. 119–21 applicable to taxable years beginning after Dec. 31, 2025, see section 70113(e) of Pub. L. 119–21, set out as a note under section 132 of this title.

Effective Date

of 2017 Amendment Pub. L. 115–97, title I, § 11049(b), Dec. 22, 2017, 131 Stat. 2089, provided that: “The amendment made by this section [amending this section] shall apply to taxable years beginning after December 31, 2017.”

Effective Date

of 1993 AmendmentAmendment by Pub. L. 103–66 applicable to expenses incurred after Dec. 31, 1993, see section 13213(e) of Pub. L. 103–66 set out as a note under section 62 of this title.

Effective Date

of 1978 Amendment; Election of Prior LawAmendment by Pub. L. 95–615 applicable to taxable years beginning after Dec. 31, 1977, with provision for election of prior law, see section 209 of Pub. L. 95–615, set out as an

Effective Date

of 1978 Amendment note under section 911 of this title.

Effective Date

of 1976 Amendment Pub. L. 94–455, title V, § 506(d), Oct. 4, 1976, 90 Stat. 1569, provided that: “The

Amendments

made by subsections (a) and (b) [amending this section] shall apply to taxable years beginning after December 31, 1976.”

Effective Date

of 1969 Amendment Pub. L. 91–172, title II, § 231(d), Dec. 30, 1969, 83 Stat. 580, as amended by Pub. L. 91–642, § 2, Dec. 31, 1970, 84 Stat. 1880; Pub. L. 99–514, § 2, Oct. 22, 1986, 100 Stat. 2095, provided that: “The

Amendments

made by this section [enacting section 82 of this title and amending this section and section 1001 and 1016 of this title] shall apply to taxable years beginning after
December 31, 1969, except that— “(1) section 217 of the Internal Revenue Code of 1986 [formerly I.R.C. 1954] (as amended by subsection (a)) shall not apply to any item to the extent that the taxpayer received or accrued reimbursement or other expense allowance for such item in a taxable year beginning on or before
December 31, 1969, which was not included in his gross income; and “(2) the

Amendments

made by this section shall not apply (at the election of the taxpayer made at such time and manner as the Secretary of the Treasury or his delegate prescribes) with respect to moving expenses paid or incurred before
January 1, 1971, in connection with the commencement of work by the taxpayer as an employee at a new principal place of work of which the taxpayer had been notified by his employer on or before
December 19, 1969.”

Effective Date

Section applicable to expenses incurred after Dec. 31, 1963, in taxable years ending after such date, see section 213(d) of Pub. L. 88–272, set out as an

Effective Date

of 1964 Amendment note under section 62 of this title. Moving Expenses of Members of the Uniformed Services Pub. L. 93–490, § 2, Oct. 26, 1974, 88 Stat. 1466, authorized the Secretary of the Treasury, applicable with respect to taxable years ending before January 1, 1976, to: (1) enter into an agreement with the Secretary concerned under which the Secretary concerned would not be required to withhold tax on, or to report, moving expense reimbursements made to members of the armed forces; (2) permit any taxpayer who was a member of the armed forces not to include in adjusted gross income the amount of any reimbursement in kind of moving expenses made by the Secretary concerned; and (3) permit any taxpayer who was a member of the armed forces to deduct any amount paid by him as moving expenses in connection with any move required by the Secretary concerned, in excess of any reimbursement received for such expenses, without regard to the provisions of subsec. (c) of this section, to the extent it was otherwise deductible under this section.

Reference

Citations & Metadata

Citation

26 U.S.C. § 217

Title 26Internal Revenue Code

Last Updated

Apr 6, 2026

Release point: 119-73