Skip to content
Open
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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ dev = [
coverage = [
"pytest-cov (>=7.0.0,<8.0.0)"
]
tools = [
"pdfplumber (>=0.11.0,<1.0.0)",
]

[tool.poetry]
packages = [{include = "python_taxes", from = "src"}]
Expand Down
2 changes: 1 addition & 1 deletion src/python_taxes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

from pydantic import Field

CURRENT_TAX_YEAR = 2025
CURRENT_TAX_YEAR = 2026

currency_field = Field(ge=Decimal("0.00"), decimal_places=2)
4 changes: 2 additions & 2 deletions src/python_taxes/federal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

# AfterValidator for tax_year
def is_valid_tax_year(value: int) -> int:
if value in [2023, 2024, 2025]:
if value in [2023, 2024, 2025, 2026]:
return value
raise ValueError("Invalid tax year. Valid tax years are 2023, 2024, and 2025.")
raise ValueError("Invalid tax year. Valid tax years are 2023, 2024, 2025, and 2026.")
100 changes: 100 additions & 0 deletions src/python_taxes/federal/income/tables/percentage/automated/hoh.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,56 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("15549.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("15550.00"),
max=Decimal("33249.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("33250.00"),
max=Decimal("82999.99"),
withhold_amount=Decimal("1770.00"),
percent=12,
),
RateRow(
min=Decimal("83000.00"),
max=Decimal("121249.99"),
withhold_amount=Decimal("7740.00"),
percent=22,
),
RateRow(
min=Decimal("121250.00"),
max=Decimal("217299.99"),
withhold_amount=Decimal("16155.00"),
percent=24,
),
RateRow(
min=Decimal("217300.00"),
max=Decimal("271749.99"),
withhold_amount=Decimal("39207.00"),
percent=32,
),
RateRow(
min=Decimal("271750.00"),
max=Decimal("656149.99"),
withhold_amount=Decimal("56631.00"),
percent=35,
),
RateRow(
min=Decimal("656150.00"),
max=MAX,
withhold_amount=Decimal("191171.00"),
percent=37,
),
],
}

multiple_jobs = {
Expand Down Expand Up @@ -306,4 +356,54 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("12074.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("12075.00"),
max=Decimal("20924.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("20925.00"),
max=Decimal("45799.99"),
withhold_amount=Decimal("885.00"),
percent=12,
),
RateRow(
min=Decimal("45800.00"),
max=Decimal("64924.99"),
withhold_amount=Decimal("3870.00"),
percent=22,
),
RateRow(
min=Decimal("64925.00"),
max=Decimal("112949.99"),
withhold_amount=Decimal("8077.50"),
percent=24,
),
RateRow(
min=Decimal("112950.00"),
max=Decimal("140174.99"),
withhold_amount=Decimal("19603.50"),
percent=32,
),
RateRow(
min=Decimal("140175.00"),
max=Decimal("332374.99"),
withhold_amount=Decimal("28315.50"),
percent=35,
),
RateRow(
min=Decimal("332375.00"),
max=MAX,
withhold_amount=Decimal("95585.50"),
percent=37,
),
],
}
110 changes: 105 additions & 5 deletions src/python_taxes/federal/income/tables/percentage/automated/married.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,31 +112,31 @@
),
RateRow(
min=Decimal("17100.00"),
max=Decimal("40949.9"),
max=Decimal("40949.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("40950.00"),
max=Decimal("114049.9"),
max=Decimal("114049.99"),
withhold_amount=Decimal("2385.00"),
percent=12,
),
RateRow(
min=Decimal("114050.00"),
max=Decimal("223799.9"),
max=Decimal("223799.99"),
withhold_amount=Decimal("11157.00"),
percent=22,
),
RateRow(
min=Decimal("223800.00"),
max=Decimal("411699.9"),
max=Decimal("411699.99"),
withhold_amount=Decimal("35302.00"),
percent=24,
),
RateRow(
min=Decimal("411700.00"),
max=Decimal("518149.9"),
max=Decimal("518149.99"),
withhold_amount=Decimal("80398.00"),
percent=32,
),
Expand All @@ -153,6 +153,56 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("19299.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("19300.00"),
max=Decimal("44099.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("44100.00"),
max=Decimal("120099.99"),
withhold_amount=Decimal("2480.00"),
percent=12,
),
RateRow(
min=Decimal("120100.00"),
max=Decimal("230699.99"),
withhold_amount=Decimal("11600.00"),
percent=22,
),
RateRow(
min=Decimal("230700.00"),
max=Decimal("422849.99"),
withhold_amount=Decimal("35932.00"),
percent=24,
),
RateRow(
min=Decimal("422850.00"),
max=Decimal("531749.99"),
withhold_amount=Decimal("82048.00"),
percent=32,
),
RateRow(
min=Decimal("531750.00"),
max=Decimal("787999.99"),
withhold_amount=Decimal("116896.00"),
percent=35,
),
RateRow(
min=Decimal("788000.00"),
max=MAX,
withhold_amount=Decimal("206583.50"),
percent=37,
),
],
}

multiple_jobs = {
Expand Down Expand Up @@ -306,4 +356,54 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("16099.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("16100.00"),
max=Decimal("28499.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("28500.00"),
max=Decimal("66499.99"),
withhold_amount=Decimal("1240.00"),
percent=12,
),
RateRow(
min=Decimal("66500.00"),
max=Decimal("121799.99"),
withhold_amount=Decimal("5800.00"),
percent=22,
),
RateRow(
min=Decimal("121800.00"),
max=Decimal("217874.99"),
withhold_amount=Decimal("17966.00"),
percent=24,
),
RateRow(
min=Decimal("217875.00"),
max=Decimal("272324.99"),
withhold_amount=Decimal("41024.00"),
percent=32,
),
RateRow(
min=Decimal("272325.00"),
max=Decimal("400449.99"),
withhold_amount=Decimal("58448.00"),
percent=35,
),
RateRow(
min=Decimal("400450.00"),
max=MAX,
withhold_amount=Decimal("103291.75"),
percent=37,
),
],
}
100 changes: 100 additions & 0 deletions src/python_taxes/federal/income/tables/percentage/automated/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,56 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("7499.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("7500.00"),
max=Decimal("19899.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("19900.00"),
max=Decimal("57899.99"),
withhold_amount=Decimal("1240.00"),
percent=12,
),
RateRow(
min=Decimal("57900.00"),
max=Decimal("113199.99"),
withhold_amount=Decimal("5800.00"),
percent=22,
),
RateRow(
min=Decimal("113200.00"),
max=Decimal("209274.99"),
withhold_amount=Decimal("17966.00"),
percent=24,
),
RateRow(
min=Decimal("209275.00"),
max=Decimal("263724.99"),
withhold_amount=Decimal("41024.00"),
percent=32,
),
RateRow(
min=Decimal("263725.00"),
max=Decimal("648099.99"),
withhold_amount=Decimal("58448.00"),
percent=35,
),
RateRow(
min=Decimal("648100.00"),
max=MAX,
withhold_amount=Decimal("192979.25"),
percent=37,
),
],
}

multiple_jobs = {
Expand Down Expand Up @@ -306,4 +356,54 @@
percent=37,
),
],
2026: [
RateRow(
min=Decimal("0.00"),
max=Decimal("8049.99"),
withhold_amount=Decimal("0.00"),
percent=0,
),
RateRow(
min=Decimal("8050.00"),
max=Decimal("14249.99"),
withhold_amount=Decimal("0.00"),
percent=10,
),
RateRow(
min=Decimal("14250.00"),
max=Decimal("33249.99"),
withhold_amount=Decimal("620.00"),
percent=12,
),
RateRow(
min=Decimal("33250.00"),
max=Decimal("60899.99"),
withhold_amount=Decimal("2900.00"),
percent=22,
),
RateRow(
min=Decimal("60900.00"),
max=Decimal("108937.99"),
withhold_amount=Decimal("8983.00"),
percent=24,
),
RateRow(
min=Decimal("108938.00"),
max=Decimal("136162.99"),
withhold_amount=Decimal("20512.00"),
percent=32,
),
RateRow(
min=Decimal("136163.00"),
max=Decimal("328349.99"),
withhold_amount=Decimal("29224.00"),
percent=35,
),
RateRow(
min=Decimal("328350.00"),
max=MAX,
withhold_amount=Decimal("96489.63"),
percent=37,
),
],
}
Loading