Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/federal-tax-2017-history.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct 2017 personal-exemption phase-outs, tuition deduction accounting, CTC identification, retirement limits and Saver's Credit histories. Apply inclusive Saver's Credit bands to fractional AGI, enforce the pre-2020 traditional IRA age limit, cap federal and California dependent-care exclusions by independently supplied qualified expenses, and prevent expense reuse in the care credit. Keep the employer-assistance expense input independent of modeled childcare subsidies to avoid an adjusted-gross-income cycle, and document the zero default for unreported costs. Add annual federal tax reference cases for 2017–2026. Existing callers that report positive `dependent_care_employer_benefits` must also supply independently known `dependent_care_assistance_qualified_expenses`. If callers omit qualified costs, the model uses zero, excludes none of the employer benefits, and treats all reported benefits as taxable. Earlier calculations could exclude benefits under the dollar and earnings limits without this independent expense input.
114 changes: 114 additions & 0 deletions docs/gov/irs/historical-validation.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
description: Capital gains tax rate applying to special categories of gains (including small business stock and collectibles).
values:
2017-01-01: 0.28
2018-01-01: 0.28
metadata:
unit: /1
period: year
label: Other capital gain tax rate
reference:
- title: 26 U.S.C. § 1(h)(1)(F)
href: https://www.law.cornell.edu/uscode/text/26/1#h_1_F
- title: 2017 Instructions for Schedule D (Form 1040), Schedule D Tax Worksheet, line 41
href: https://www.irs.gov/pub/irs-prior/i1040sd--2017.pdf#page=16
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
description: Tax rate on net un-recaptured Section 1250 gains.
values:
2017-01-01: 0.25
2018-01-01: 0.25
metadata:
unit: /1
period: year
label: Tax rate on net un-recaptured Section 1250 gains.
reference:
- title: 26 U.S.C. § 1(h)(1)(E)
href: https://www.law.cornell.edu/uscode/text/26/1#h_1_E
- title: 2017 Instructions for Schedule D (Form 1040), Schedule D Tax Worksheet, line 38
href: https://www.irs.gov/pub/irs-prior/i1040sd--2017.pdf#page=16
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
description: The IRS requires at least one filer with a valid SSN, and any co-filer with an SSN or ITIN, to claim the child portion of the Child Tax Credit if this is true.
values:
2017-01-01: false
2018-01-01: false
2025-01-01: true
metadata:
unit: bool
period: year
label: Child Tax Credit adult identification requirement applies
reference:
- title: 2017 Publication 972, Child Tax Credit
href: https://www.irs.gov/pub/irs-prior/p972--2017.pdf#page=3
- title: H.R.1 - One Big Beautiful Bill Act
href: https://www.congress.gov/bill/119th-congress/house-bill/1/text
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
description: The IRS requires a Social Security Number for qualifying children for the Child Tax Credit if this is true.
values:
2017-01-01: false
2018-01-01: true
metadata:
unit: bool
period: year
label: Child Tax Credit child identification requirement applies
reference:
- title: "26 U.S. Code § 24(e)(1), (h)(1) and (7), 2017 edition #page 2-3"
href: https://www.govinfo.gov/content/pkg/USCODE-2017-title26/pdf/USCODE-2017-title26-subtitleA-chap1-subchapA-partIV-subpartA-sec24.pdf#page=2
- title: 2017 Publication 972, Child Tax Credit
href: https://www.irs.gov/pub/irs-prior/p972--2017.pdf#page=3
- title: 26 U.S. Code § 24(h)(7)
href: https://www.law.cornell.edu/uscode/text/26/24#h_7
- title: H.R.1 - One Big Beautiful Bill Act
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
description: The IRS defines social security taxes under the Child Tax Credit to include the following variables.
values:
2017-01-01:
- employee_social_security_tax
- employee_medicare_tax
- self_employment_tax_ald_person
- unreported_payroll_tax
- additional_medicare_tax
2018-01-01:
# Person (summed over the head and spouse only):
- employee_social_security_tax
Expand All @@ -13,6 +19,8 @@ metadata:
period: year
label: Child Tax Credit added social security taxes
reference:
- title: 2017 Schedule 8812, Part III, lines 7-9
href: https://www.irs.gov/pub/irs-prior/f1040s8--2017.pdf#page=2
- title: 26 U.S. Code § 24(d)(2)(A)
href: https://www.law.cornell.edu/uscode/text/26/24#d_2_A
- title: 2024 Schedule 8812 (Form 1040), Part II-B, lines 21 to 23
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
description: The IRS defines social security taxes under the Child Tax Credit to exclude the following variables.
values:
2017-01-01:
- excess_payroll_tax_withheld
2018-01-01:
- excess_payroll_tax_withheld
metadata:
unit: list
period: year
label: Child Tax Credit subtracted social security taxes
reference:
- title: 2017 Schedule 8812, Part III, line 10
href: https://www.irs.gov/pub/irs-prior/f1040s8--2017.pdf#page=2
- title: 26 U.S. Code § 24(d)(2)(B)
href: https://www.law.cornell.edu/uscode/text/26/24#d_2_B
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
description: The IRS limits the saver's credit to taxpayers at or over to following age.
values:
2017-01-01: 18
2018-01-01: 18
metadata:
unit: year
period: year
label: Retirement Savings Contributions Credit (Saver's Credit) age threshold
reference:
- title: 2017 Form 8880
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: 26 U.S. Code § 25B(c)(1)
href: https://www.law.cornell.edu/uscode/text/26/25B#c
- title: IRS | Retirement Savings Contributions Credit (Saver's Credit)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
description: The IRS caps the qualifying contributions at the following amount under the saver's credit.
values:
2017-01-01: 2_000
2018-01-01: 2_000
2027-01-01: 2_100
metadata:
unit: currency-USD
period: year
label: Saver's Credit contributions cap
reference:
- title: 2017 Form 8880
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: 26 U.S. Code § 25B(a)
href: https://www.law.cornell.edu/uscode/text/26/25B
- title: Public Law 119-21, saver's credit contribution cap from 2027
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
description: The IRS subtracts these distributions from qualified contributions under the saver's credit.
values:
2017-01-01:
- retirement_distributions
# 25B(d)(2)(A) reaches any entity of a type that can take contributions
# under 25B(d)(1), so ABLE distributions count for as long as ABLE
# contributions do (Form 8880, line 4).
Expand All @@ -15,6 +17,10 @@ metadata:
period: year
label: Saver's Credit distributions that reduce qualified contributions
reference:
- title: "2017 Form 8880 #page 1-2"
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: Public Law 115-97, section 11024(b)-(c)
href: https://www.govinfo.gov/content/pkg/PLAW-115publ97/pdf/PLAW-115publ97.pdf#page=24
- title: 26 U.S. Code § 25B(d)(2)
href: https://www.law.cornell.edu/uscode/text/26/25B#d_2
- title: Public Law 119-21, ABLE contributions in the saver's credit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
description: The IRA sums the following elements as qualified retirement savings contributions when computing the saver's credit.
values:
2017-01-01:
- traditional_ira_contributions
- roth_ira_contributions
- traditional_401k_contributions
- traditional_403b_contributions
- roth_401k_contributions
- roth_403b_contributions
- self_employed_pension_contributions
2018-01-01:
- traditional_ira_contributions
- roth_ira_contributions
Expand Down Expand Up @@ -30,6 +38,10 @@ metadata:
period: year
label: Saver's Credit qualified retirement savings contributions
reference:
- title: "2017 Form 8880 #page 1-2"
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: Public Law 115-97, section 11024(b)-(c)
href: https://www.govinfo.gov/content/pkg/PLAW-115publ97/pdf/PLAW-115publ97.pdf#page=24
- title: 26 U.S. Code § 25B - (d)
href: https://www.law.cornell.edu/uscode/text/26/25B#d_1
- title: Public Law 119-21, ABLE contributions in the saver's credit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
period: year
label: Saver's Credit joint rate
reference:
- title: 2017 Form 8880
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: "IRS Notice 2016-62 #page 2-3"
href: https://www.irs.gov/pub/irs-drop/n-16-62.pdf#page=2
- title: 26 U.S. Code § 25B(b)(1)
href: https://www.law.cornell.edu/uscode/text/26/25B#b
- title: IRS | Retirement Savings Contributions Credit (Saver's Credit)
Expand All @@ -14,6 +18,16 @@ metadata:
href: https://www.irs.gov/pub/irs-pdf/f8880.pdf#page=1
- title: 2018 Form 8880
href: https://www.irs.gov/pub/irs-prior/f8880--2018.pdf#page=1
- title: "IRS Notice 2018-83, 2019 retirement amounts #page 2-3"
href: https://www.irs.gov/pub/irs-drop/n-18-83.pdf#page=2
- title: "IRS Notice 2019-59, 2020 retirement amounts #page 2-3"
href: https://www.irs.gov/pub/irs-drop/n-19-59.pdf#page=2
- title: "IRS Notice 2020-79, 2021 retirement amounts #page 2-3"
href: https://www.irs.gov/pub/irs-drop/n-20-79.pdf#page=2
- title: IRS Notice 2021-61, 2022 retirement amounts
href: https://www.irs.gov/pub/irs-drop/n-21-61.pdf#page=3
- title: IRS Notice 2022-55, 2023 retirement amounts
href: https://www.irs.gov/pub/irs-drop/n-22-55.pdf#page=3
- title: IRS Notice 2023-75, 2024 Amounts Relating to Retirement Plans and IRAs (25B(b)(1)(A)-(D) joint amounts $46,000/$50,000/$76,500)
href: https://www.irs.gov/pub/irs-drop/n-23-75.pdf#page=3
- title: IRS Notice 2024-80, 2025 Amounts Relating to Retirement Plans and IRAs (25B(b)(1)(A)-(D) joint amounts $47,500/$51,000/$79,000)
Expand All @@ -22,48 +36,58 @@ metadata:
href: https://www.irs.gov/pub/irs-drop/n-25-67.pdf#page=3

brackets:
# Thresholds below are the published inclusive band tops; the formula uses
# right=True so each reduced rate applies only above the preceding ceiling.
# The first row of the Form 8880 line 9 table has no lower bound ("---"), so
# a negative adjusted gross income takes the highest rate.
- threshold:
2017-01-01: -.inf
2018-01-01: -.inf
amount:
2017-01-01: 0.5
2018-01-01: 0.5
- threshold:
values:
2018-01-01: 38_001
2019-01-01: 38_501
2020-01-01: 39_001
2021-01-01: 39_501
2022-01-01: 41_001
2023-01-01: 43_501
2024-01-01: 46_001
2025-01-01: 47_501
2026-01-01: 48_501
2017-01-01: 37_000
2018-01-01: 38_000
2019-01-01: 38_500
2020-01-01: 39_000
2021-01-01: 39_500
2022-01-01: 41_000
2023-01-01: 43_500
2024-01-01: 46_000
2025-01-01: 47_500
2026-01-01: 48_500
amount:
2017-01-01: 0.2
2018-01-01: 0.2
- threshold:
values:
2018-01-01: 41_001
2019-01-01: 41_501
2020-01-01: 42_501
2021-01-01: 43_001
2022-01-01: 44_001
2023-01-01: 47_501
2024-01-01: 50_001
2025-01-01: 51_001
2026-01-01: 52_501
2017-01-01: 40_000
2018-01-01: 41_000
2019-01-01: 41_500
2020-01-01: 42_500
2021-01-01: 43_000
2022-01-01: 44_000
2023-01-01: 47_500
2024-01-01: 50_000
2025-01-01: 51_000
2026-01-01: 52_500
amount:
2017-01-01: 0.1
2018-01-01: 0.1
- threshold:
values:
2018-01-01: 63_001
2019-01-01: 64_001
2020-01-01: 65_001
2021-01-01: 66_001
2022-01-01: 68_001
2023-01-01: 73_001
2024-01-01: 76_501
2025-01-01: 79_001
2026-01-01: 80_501
2017-01-01: 62_000
2018-01-01: 63_000
2019-01-01: 64_000
2020-01-01: 65_000
2021-01-01: 66_000
2022-01-01: 68_000
2023-01-01: 73_000
2024-01-01: 76_500
2025-01-01: 79_000
2026-01-01: 80_500
amount:
2017-01-01: 0
2018-01-01: 0
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
period: year
label: Retirement Savings Contributions Credit (Saver's Credit) threshold adjustment rate
reference:
- title: 2017 Form 8880
href: https://www.irs.gov/pub/irs-prior/f8880--2017.pdf#page=1
- title: 26 U.S. Code § 25B(b)(2)
href: https://www.law.cornell.edu/uscode/text/26/25B#b
- title: IRS | Retirement Savings Contributions Credit (Saver's Credit)
Expand All @@ -15,12 +17,17 @@ metadata:
- filing_status

JOINT:
2017-01-01: 1
2018-01-01: 1
SINGLE:
2017-01-01: 0.5
2018-01-01: 0.5
SEPARATE:
2017-01-01: 0.5
2018-01-01: 0.5
HEAD_OF_HOUSEHOLD:
2017-01-01: 0.75
2018-01-01: 0.75
SURVIVING_SPOUSE:
2017-01-01: 0.5
2018-01-01: 0.5
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ values:
# The tips and overtime deductions (26 U.S.C. 224 and 225) are listed in every
# year. Their own in_effect parameters zero them outside 2025-2028, so a reform
# that switches them on in another year also reaches taxable income.
2017-01-01:
- qualified_business_income_deduction
- itemized_taxable_income_deductions
- tip_income_deduction
- overtime_income_deduction
2018-01-01:
- qualified_business_income_deduction
- itemized_taxable_income_deductions
Expand All @@ -27,3 +32,6 @@ metadata:
unit: list
period: year
label: Taxable income deductions if itemizing
reference:
- title: 2017 Form 1040, line 40
href: https://www.irs.gov/pub/irs-prior/f1040--2017.pdf#page=2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ values:
# The tips and overtime deductions (26 U.S.C. 224 and 225) are listed in every
# year. Their own in_effect parameters zero them outside 2025-2028, so a reform
# that switches them on in another year also reaches taxable income.
# Tuition and fees are deducted above AGI, not again with the standard
# deduction (2017 Form 1040 lines 34 and 40; 2018 Schedule 1 line 34).
2017-01-01:
- standard_deduction
- qualified_business_income_deduction
- tip_income_deduction
- overtime_income_deduction
2018-01-01:
- standard_deduction
- qualified_business_income_deduction
- tuition_and_fees_deduction
- tip_income_deduction
- overtime_income_deduction
# The 2020 charitable deduction for non-itemizers is above the line
Expand Down Expand Up @@ -42,3 +48,10 @@ metadata:
unit: list
period: year
label: Taxable income deductions if not itemizing
reference:
- title: 26 U.S.C. 62(a)(18) (2017 edition), Higher education expenses
href: https://www.govinfo.gov/content/pkg/USCODE-2017-title26/pdf/USCODE-2017-title26-subtitleA-chap1-subchapB-partI-sec62.pdf#page=3
- title: "2017 Form 1040, lines 34 and 40 #page 1-2"
href: https://www.irs.gov/pub/irs-prior/f1040--2017.pdf#page=1
- title: 2018 Schedule 1 (Form 1040), line 34
href: https://www.irs.gov/pub/irs-prior/f1040s1--2018.pdf#page=1
Loading
Loading