State Income Tax Calculator
:root {
–primary-blue: #004a99;
–success-green: #28a745;
–light-background: #f8f9fa;
–border-color: #dee2e6;
–text-color: #212529;
–label-color: #495057;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(–light-background);
color: var(–text-color);
line-height: 1.6;
margin: 0;
padding: 20px;
}
.loan-calc-container {
max-width: 900px;
margin: 40px auto;
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
border: 1px solid var(–border-color);
}
h1, h2 {
color: var(–primary-blue);
text-align: center;
margin-bottom: 25px;
}
.input-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(–label-color);
}
.input-group input[type="number"],
.input-group select {
width: 100%;
padding: 12px;
border: 1px solid var(–border-color);
border-radius: 4px;
box-sizing: border-box;
font-size: 1rem;
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.input-group input[type="number"]:focus,
.input-group select:focus {
border-color: var(–primary-blue);
box-shadow: 0 0 0 0.2rem rgba(0, 74, 153, 0.25);
outline: none;
}
button {
width: 100%;
padding: 12px 20px;
background-color: var(–primary-blue);
color: white;
border: none;
border-radius: 4px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.1s ease;
margin-top: 10px;
}
button:hover {
background-color: #003366;
transform: translateY(-1px);
}
button:active {
transform: translateY(0);
}
#result {
margin-top: 30px;
padding: 20px;
background-color: var(–success-green);
color: white;
text-align: center;
border-radius: 4px;
font-size: 1.8rem;
font-weight: bold;
box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}
#result span {
font-size: 1.2rem;
font-weight: normal;
display: block;
margin-top: 5px;
}
.article-content {
margin-top: 40px;
padding: 25px;
background-color: #ffffff;
border: 1px solid var(–border-color);
border-radius: 8px;
}
.article-content h2 {
text-align: left;
margin-bottom: 15px;
color: var(–primary-blue);
}
.article-content p,
.article-content ul,
.article-content li {
margin-bottom: 15px;
color: var(–label-color);
}
.article-content ul {
padding-left: 20px;
}
.article-content strong {
color: var(–text-color);
}
/* Responsive Adjustments */
@media (min-width: 768px) {
.input-group {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.input-group label {
flex-basis: 40%; /* Adjust label width */
margin-bottom: 0;
}
.input-group input[type="number"],
.input-group select {
flex-basis: 55%; /* Adjust input width */
}
}
@media (max-width: 480px) {
.loan-calc-container {
padding: 20px;
}
h1 {
font-size: 1.8rem;
}
button {
font-size: 1rem;
}
#result {
font-size: 1.5rem;
}
}
State Income Tax Calculator
Annual Income ($):
Filing Status:
Single
Married Filing Jointly
Married Filing Separately
Head of Household
Estimated Taxable Deductions ($):
State:
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
Calculate Tax
—
Understanding How to Calculate State Income Tax
Calculating state income tax can seem complex due to varying state laws, tax brackets, deductions, and credits. However, the fundamental process involves determining your taxable income and then applying the relevant tax rates. This calculator provides an estimated state income tax liability based on common factors, but always consult official state tax resources or a tax professional for precise figures.
The Core Calculation Process:
The general formula for calculating state income tax liability is as follows:
Determine Gross Income: This is all the income you received from all sources throughout the year before any deductions. This typically includes wages, salaries, tips, investment income, retirement distributions, and other forms of income.
Subtract Above-the-Line Deductions: These are specific deductions that reduce your gross income to arrive at your Adjusted Gross Income (AGI). Common examples include contributions to traditional IRAs, student loan interest, and health savings account (HSA) contributions. For simplicity, our calculator uses "Estimated Taxable Deductions" which broadly covers these and below-the-line deductions to arrive at taxable income.
Calculate Taxable Income: This is your Adjusted Gross Income (AGI) minus any applicable itemized deductions or the standard deduction allowed by the state. For this calculator, we approximate this by subtracting your "Estimated Taxable Deductions" from your "Annual Income".
Taxable Income = Annual Income - Estimated Taxable Deductions
Apply Tax Rates: States use different tax systems:
Progressive Tax Systems: Most states with income tax use progressive tax brackets. This means higher income levels are taxed at higher rates. You'll need to know the tax brackets for your specific state and filing status. The tax is calculated on the portion of income within each bracket.
Flat Tax Systems: A few states have a flat tax rate, meaning all income is taxed at the same percentage, regardless of the amount.
No Income Tax: Several states (like Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming) do not have a state income tax.
Subtract Tax Credits: Tax credits directly reduce the amount of tax you owe, dollar for dollar. They are more valuable than deductions, which only reduce your taxable income. Common credits include child tax credits, education credits, and credits for low-income taxpayers. These are not factored into this simplified calculator.
How This Calculator Works (Simplified):
This calculator uses a simplified approach. It first calculates your Taxable Income by subtracting your estimated deductions from your annual income. Then, it applies a placeholder tax rate based on the state selected.
Note: State tax rates are highly variable and often depend on progressive brackets. For accuracy, the calculator uses a simplified estimation.
For states with no income tax , the result will be $0.
For states with a flat tax , a single rate is applied to the taxable income.
For states with progressive tax brackets , a representative average rate or a simplified progressive calculation is applied. This calculator does NOT implement complex bracket systems for all states due to the vast number of variations. It serves as a general estimation tool.
Example Calculation:
Let's say you have an Annual Income of $80,000 , Estimated Taxable Deductions of $15,000 , and you file as Single in Colorado .
Taxable Income = $80,000 – $15,000 = $65,000
Colorado has a flat tax rate (as of recent knowledge, check current rates). If the flat rate is 4.55%, then:
Estimated State Income Tax = $65,000 * 0.0455 = $2,957.50
If you selected Florida , which has no state income tax, your estimated tax would be $0 .
Important Considerations:
State Variations: Tax laws differ significantly. Some states have higher standard deductions, more generous credits, or entirely different tax structures (e.g., income tax on retirement benefits).
Local Taxes: Some cities and counties also impose their own income taxes, which are not included here.
Tax Brackets: For accurate calculations in progressive tax states, you must identify the correct tax brackets for your filing status and income level.
Tax Law Changes: Tax laws are subject to change annually. Always refer to your state's official Department of Revenue website for the most current information.
function calculateStateTax() {
var annualIncome = parseFloat(document.getElementById("annualIncome").value);
var filingStatus = document.getElementById("filingStatus").value;
var taxableDeductions = parseFloat(document.getElementById("taxableDeductions").value);
var state = document.getElementById("state").value;
var resultDiv = document.getElementById("result");
// Input validation
if (isNaN(annualIncome) || isNaN(taxableDeductions) || annualIncome < 0 || taxableDeductions annualIncome) {
taxableDeductions = annualIncome;
}
var taxableIncome = annualIncome – taxableDeductions;
var estimatedTax = 0;
// Simplified tax rates and logic for common states.
// This is a highly simplified model. Real calculations involve progressive brackets,
// specific deductions, and credits that vary wildly by state.
// Refer to official state tax websites for precise calculations.
switch (state) {
// States with no income tax
case "AK": // Alaska
case "FL": // Florida
case "NV": // Nevada
case "NH": // New Hampshire (taxes only dividend/interest income)
case "SD": // South Dakota
case "TN": // Tennessee (taxes only interest/dividend income, phasing out)
case "TX": // Texas
case "WA": // Washington
case "WY": // Wyoming
estimatedTax = 0;
break;
// States with simplified flat tax approximation or low progressive rates
// These are approximations and may not reflect exact bracket calculations for all income levels.
case "AL": // Alabama – progressive, ~2% to 5%
if (taxableIncome < 500) estimatedTax = taxableIncome * 0.02;
else if (taxableIncome 25000) estimatedTax = taxableIncome * 0.035; // Approximation
if (taxableIncome > 150000) estimatedTax = taxableIncome * 0.045; // Approximation
break;
case "AR": // Arkansas – progressive, ~0% to 4.9%
if (taxableIncome < 5000) estimatedTax = taxableIncome * 0.00;
else if (taxableIncome < 10000) estimatedTax = (taxableIncome – 5000) * 0.024;
else if (taxableIncome < 15000) estimatedTax = (5000 * 0.024) + ((taxableIncome – 10000) * 0.049);
else estimatedTax = (5000 * 0.024) + (5000 * 0.049) + ((taxableIncome – 15000) * 0.049); // simplified max rate
break;
case "CO": // Colorado – flat tax, 4.40% (as of recent data)
estimatedTax = taxableIncome * 0.0440;
break;
case "IL": // Illinois – flat tax, 4.95% (as of recent data)
estimatedTax = taxableIncome * 0.0495;
break;
case "IN": // Indiana – flat tax, 3.23% (as of recent data)
estimatedTax = taxableIncome * 0.0323;
break;
case "IA": // Iowa – progressive, ~0.33% to 6.4%
if (taxableIncome < 1321) estimatedTax = taxableIncome * 0.0033;
else if (taxableIncome < 3175) estimatedTax = (1321 * 0.0033) + ((taxableIncome – 1321) * 0.0135);
else estimatedTax = (1321 * 0.0033) + ((3175 – 1321) * 0.0135) + ((taxableIncome – 3175) * 0.040); // Simplified
break;
case "KS": // Kansas – progressive, ~0% to 5.7%
if (taxableIncome < 2800) estimatedTax = 0;
else if (taxableIncome < 7000) estimatedTax = (taxableIncome – 2800) * 0.031;
else estimatedTax = (4200 * 0.031) + ((taxableIncome – 7000) * 0.057); // Simplified
break;
case "KY": // Kentucky – progressive, ~2% to 5%
if (taxableIncome <= 3000) estimatedTax = taxableIncome * 0.02;
else if (taxableIncome <= 4000) estimatedTax = (3000 * 0.02) + ((taxableIncome – 3000) * 0.03);
else if (taxableIncome <= 5000) estimatedTax = (3000 * 0.02) + (1000 * 0.03) + ((taxableIncome – 4000) * 0.04);
else estimatedTax = (3000 * 0.02) + (1000 * 0.03) + (1000 * 0.04) + ((taxableIncome – 5000) * 0.05);
break;
case "LA": // Louisiana – progressive, ~2% to 6%
if (taxableIncome <= 12700) estimatedTax = taxableIncome * 0.02;
else if (taxableIncome <= 25400) estimatedTax = (12700 * 0.02) + ((taxableIncome – 12700) * 0.04);
else estimatedTax = (12700 * 0.02) + (12700 * 0.04) + ((taxableIncome – 25400) * 0.06);
break;
case "ME": // Maine – progressive, ~1% to 8.95%
if (taxableIncome <= 10375) estimatedTax = taxableIncome * 0.01;
else if (taxableIncome <= 20750) estimatedTax = (10375 * 0.01) + ((taxableIncome – 10375) * 0.065);
else estimatedTax = (10375 * 0.01) + (10375 * 0.065) + ((taxableIncome – 20750) * 0.0895);
break;
case "MD": // Maryland – progressive, ~2% to 5.75%
if (taxableIncome <= 1000) estimatedTax = taxableIncome * 0.02;
else if (taxableIncome <= 2000) estimatedTax = (1000 * 0.02) + ((taxableIncome – 1000) * 0.03);
else if (taxableIncome <= 3000) estimatedTax = (1000 * 0.02) + (1000 * 0.03) + ((taxableIncome – 2000) * 0.0475);
else estimatedTax = (1000 * 0.02) + (1000 * 0.03) + (1000 * 0.0475) + ((taxableIncome – 3000) * 0.0575);
break;
case "MA": // Massachusetts – flat tax, 5.00%
estimatedTax = taxableIncome * 0.0500;
break;
case "MI": // Michigan – flat tax, 4.25%
estimatedTax = taxableIncome * 0.0425;
break;
case "MN": // Minnesota – progressive, ~5.35% to 9.85%
if (taxableIncome <= 14660) estimatedTax = taxableIncome * 0.0535;
else if (taxableIncome <= 35480) estimatedTax = (14660 * 0.0535) + ((taxableIncome – 14660) * 0.0675);
else if (taxableIncome <= 190950) estimatedTax = (14660 * 0.0535) + (20820 * 0.0675) + ((taxableIncome – 35480) * 0.0785);
else estimatedTax = (14660 * 0.0535) + (20820 * 0.0675) + (155470 * 0.0785) + ((taxableIncome – 190950) * 0.0985);
break;
case "MS": // Mississippi – progressive, ~0% to 4.75%
if (taxableIncome <= 1000) estimatedTax = taxableIncome * 0.00;
else if (taxableIncome <= 5000) estimatedTax = (taxableIncome – 1000) * 0.03;
else if (taxableIncome <= 10000) estimatedTax = (4000 * 0.03) + ((taxableIncome – 5000) * 0.04);
else estimatedTax = (4000 * 0.03) + (5000 * 0.04) + ((taxableIncome – 10000) * 0.0475);
break;
case "MO": // Missouri – progressive, ~2% to 4.95%
if (taxableIncome <= 1090) estimatedTax = taxableIncome * 0.015;
else if (taxableIncome <= 2180) estimatedTax = (1090 * 0.015) + ((taxableIncome – 1090) * 0.02);
else if (taxableIncome <= 3270) estimatedTax = (1090 * 0.015) + (1090 * 0.02) + ((taxableIncome – 2180) * 0.025);
else if (taxableIncome <= 4360) estimatedTax = (1090 * 0.015) + (1090 * 0.02) + (1090 * 0.025) + ((taxableIncome – 3270) * 0.03);
else if (taxableIncome <= 5450) estimatedTax = (1090 * 0.015) + (1090 * 0.02) + (1090 * 0.025) + (1090 * 0.03) + ((taxableIncome – 4360) * 0.035);
else estimatedTax = (1090 * 0.015) + (1090 * 0.02) + (1090 * 0.025) + (1090 * 0.03) + (1090 * 0.035) + ((taxableIncome – 5450) * 0.0495);
break;
case "MT": // Montana – progressive, ~1% to 6.75%
if (taxableIncome <= 2914) estimatedTax = taxableIncome * 0.01;
else if (taxableIncome <= 5828) estimatedTax = (2914 * 0.01) + ((taxableIncome – 2914) * 0.02);
else if (taxableIncome <= 8742) estimatedTax = (2914 * 0.01) + (2914 * 0.02) + ((taxableIncome – 5828) * 0.03);
else if (taxableIncome <= 11656) estimatedTax = (2914 * 0.01) + (2914 * 0.02) + (2914 * 0.03) + ((taxableIncome – 8742) * 0.04);
else if (taxableIncome <= 14570) estimatedTax = (2914 * 0.01) + (2914 * 0.02) + (2914 * 0.03) + (2914 * 0.04) + ((taxableIncome – 11656) * 0.05);
else if (taxableIncome <= 17484) estimatedTax = (2914 * 0.01) + (2914 * 0.02) + (2914 * 0.03) + (2914 * 0.04) + (2914 * 0.05) + ((taxableIncome – 14570) * 0.06);
else estimatedTax = (2914 * 0.01) + (2914 * 0.02) + (2914 * 0.03) + (2914 * 0.04) + (2914 * 0.05) + (2914 * 0.06) + ((taxableIncome – 17484) * 0.0675);
break;
case "NE": // Nebraska – progressive, ~2.46% to 6.64%
if (taxableIncome <= 3103) estimatedTax = taxableIncome * 0.0246;
else if (taxableIncome <= 6206) estimatedTax = (3103 * 0.0246) + ((taxableIncome – 3103) * 0.0369);
else estimatedTax = (3103 * 0.0246) + (3103 * 0.0369) + ((taxableIncome – 6206) * 0.0584); // Simplified
break;
case "NJ": // New Jersey – progressive, ~1.4% to 10.75%
if (taxableIncome <= 20400) estimatedTax = taxableIncome * 0.014;
else if (taxableIncome <= 35200) estimatedTax = (20400 * 0.014) + ((taxableIncome – 20400) * 0.0175);
else if (taxableIncome <= 49900) estimatedTax = (20400 * 0.014) + (14800 * 0.0175) + ((taxableIncome – 35200) * 0.035);
else if (taxableIncome <= 70100) estimatedTax = (20400 * 0.014) + (14800 * 0.0175) + (14700 * 0.035) + ((taxableIncome – 49900) * 0.0545);
else if (taxableIncome <= 85900) estimatedTax = (20400 * 0.014) + (14800 * 0.0175) + (14700 * 0.035) + (20200 * 0.0545) + ((taxableIncome – 70100) * 0.0637);
else estimatedTax = (20400 * 0.014) + (14800 * 0.0175) + (14700 * 0.035) + (20200 * 0.0545) + (15800 * 0.0637) + ((taxableIncome – 85900) * 0.0897); // simplified higher bracket
break;
case "NY": // New York – progressive, ~4% to 10.9%
if (taxableIncome <= 11000) estimatedTax = taxableIncome * 0.04;
else if (taxableIncome <= 27000) estimatedTax = (11000 * 0.04) + ((taxableIncome – 11000) * 0.045);
else if (taxableIncome <= 107650) estimatedTax = (11000 * 0.04) + (16000 * 0.045) + ((taxableIncome – 27000) * 0.06);
else estimatedTax = (11000 * 0.04) + (16000 * 0.045) + (80650 * 0.06) + ((taxableIncome – 107650) * 0.0685); // Simplified higher bracket
break;
case "NC": // North Carolina – flat tax, 4.75%
estimatedTax = taxableIncome * 0.0475;
break;
case "ND": // North Dakota – progressive, ~1.1% to 5.55%
if (taxableIncome <= 41691) estimatedTax = taxableIncome * 0.011;
else if (taxableIncome <= 100292) estimatedTax = (41691 * 0.011) + ((taxableIncome – 41691) * 0.0264);
else estimatedTax = (41691 * 0.011) + (58501 * 0.0264) + ((taxableIncome – 100292) * 0.0555);
break;
case "OH": // Ohio – progressive, ~0% to 4.797%
if (taxableIncome <= 5500) estimatedTax = 0; // approximate bracket
else if (taxableIncome <= 11000) estimatedTax = (taxableIncome – 5500) * 0.0399;
else if (taxableIncome <= 16500) estimatedTax = (5500 * 0.0399) + ((taxableIncome – 11000) * 0.04797);
else estimatedTax = (5500 * 0.0399) + (5500 * 0.04797) + ((taxableIncome – 16500) * 0.04797); // Simplified
break;
case "OK": // Oklahoma – progressive, ~0.5% to 5.0%
if (taxableIncome <= 1000) estimatedTax = taxableIncome * 0.005;
else if (taxableIncome <= 11000) estimatedTax = (1000 * 0.005) + ((taxableIncome – 1000) * 0.01);
else if (taxableIncome <= 22000) estimatedTax = (1000 * 0.005) + (10000 * 0.01) + ((taxableIncome – 11000) * 0.02);
else if (taxableIncome <= 33000) estimatedTax = (1000 * 0.005) + (10000 * 0.01) + (11000 * 0.02) + ((taxableIncome – 22000) * 0.045);
else estimatedTax = (1000 * 0.005) + (10000 * 0.01) + (11000 * 0.02) + (11000 * 0.045) + ((taxableIncome – 33000) * 0.05);
break;
case "OR": // Oregon – progressive, ~4.75% to 9.9%
if (taxableIncome <= 3765) estimatedTax = taxableIncome * 0.0475;
else if (taxableIncome <= 9100) estimatedTax = (3765 * 0.0475) + ((taxableIncome – 3765) * 0.0675);
else if (taxableIncome <= 20550) estimatedTax = (3765 * 0.0475) + (5335 * 0.0675) + ((taxableIncome – 9100) * 0.0875);
else estimatedTax = (3765 * 0.0475) + (5335 * 0.0675) + (11450 * 0.0875) + ((taxableIncome – 20550) * 0.099);
break;
case "PA": // Pennsylvania – flat tax, 3.07%
estimatedTax = taxableIncome * 0.0307;
break;
case "RI": // Rhode Island – progressive, ~3.75% to 5.99%
if (taxableIncome <= 17490) estimatedTax = taxableIncome * 0.0375;
else if (taxableIncome <= 70060) estimatedTax = (17490 * 0.0375) + ((taxableIncome – 17490) * 0.0475);
else estimatedTax = (17490 * 0.0375) + (52570 * 0.0475) + ((taxableIncome – 70060) * 0.0599);
break;
case "SC": // South Carolina – progressive, ~0% to 7%
if (taxableIncome <= 2570) estimatedTax = taxableIncome * 0.00;
else if (taxableIncome <= 5140) estimatedTax = (taxableIncome – 2570) * 0.0213;
else if (taxableIncome <= 7710) estimatedTax = (2570 * 0.0213) + ((taxableIncome – 5140) * 0.0319);
else if (taxableIncome <= 10280) estimatedTax = (2570 * 0.0213) + (2570 * 0.0319) + ((taxableIncome – 7710) * 0.0425);
else if (taxableIncome 9450) estimatedTax = taxableIncome * 0.0535; // Approximation of higher bracket
break;
case "VT": // Vermont – progressive, ~3.35% to 8.75%
if (taxableIncome <= 4100) estimatedTax = taxableIncome * 0.0335;
else if (taxableIncome <= 9200) estimatedTax = (4100 * 0.0335) + ((taxableIncome – 4100) * 0.041);
else if (taxableIncome <= 17550) estimatedTax = (4100 * 0.0335) + (5100 * 0.041) + ((taxableIncome – 9200) * 0.0595);
else if (taxableIncome <= 34150) estimatedTax = (4100 * 0.0335) + (5100 * 0.041) + (8350 * 0.0595) + ((taxableIncome – 17550) * 0.075);
else estimatedTax = (4100 * 0.0335) + (5100 * 0.041) + (8350 * 0.0595) + (16600 * 0.075) + ((taxableIncome – 34150) * 0.0875);
break;
case "VA": // Virginia – progressive, ~2% to 5.75%
if (taxableIncome <= 3000) estimatedTax = taxableIncome * 0.02;
else if (taxableIncome <= 5000) estimatedTax = (3000 * 0.02) + ((taxableIncome – 3000) * 0.03);
else if (taxableIncome <= 17000) estimatedTax = (3000 * 0.02) + (2000 * 0.03) + ((taxableIncome – 5000) * 0.05);
else estimatedTax = (3000 * 0.02) + (2000 * 0.03) + (12000 * 0.05) + ((taxableIncome – 17000) * 0.0575);
break;
case "WV": // West Virginia – progressive, ~1.25% to 6.5%
if (taxableIncome <= 1000) estimatedTax = taxableIncome * 0.0125;
else if (taxableIncome <= 2500) estimatedTax = (1000 * 0.0125) + ((taxableIncome – 1000) * 0.025);
else if (taxableIncome <= 4000) estimatedTax = (1000 * 0.0125) + (1500 * 0.025) + ((taxableIncome – 2500) * 0.035);
else if (taxableIncome <= 5500) estimatedTax = (1000 * 0.0125) + (1500 * 0.025) + (1500 * 0.035) + ((taxableIncome – 4000) * 0.04);
else if (taxableIncome <= 7000) estimatedTax = (1000 * 0.0125) + (1500 * 0.025) + (1500 * 0.035) + (1500 * 0.04) + ((taxableIncome – 5500) * 0.045);
else if (taxableIncome <= 10000) estimatedTax = (1000 * 0.0125) + (1500 * 0.025) + (1500 * 0.035) + (1500 * 0.04) + (1500 * 0.045) + ((taxableIncome – 7000) * 0.065);
else estimatedTax = (1000 * 0.0125) + (1500 * 0.025) + (1500 * 0.035) + (1500 * 0.04) + (1500 * 0.045) + (3000 * 0.065) + ((taxableIncome – 10000) * 0.065); // simplified max rate
break;
case "WI": // Wisconsin – progressive, ~3.54% to 7.65%
if (taxableIncome <= 16960) estimatedTax = taxableIncome * 0.0354;
else if (taxableIncome <= 28270) estimatedTax = (16960 * 0.0354) + ((taxableIncome – 16960) * 0.0465);
else if (taxableIncome <= 158940) estimatedTax = (16960 * 0.0354) + (11310 * 0.0465) + ((taxableIncome – 28270) * 0.0627);
else estimatedTax = (16960 * 0.0354) + (11310 * 0.0465) + (130670 * 0.0627) + ((taxableIncome – 158940) * 0.0765);
break;
case "CT": // Connecticut – progressive, ~3% to 6.99%
if (taxableIncome <= 10400) estimatedTax = taxableIncome * 0.03;
else if (taxableIncome <= 15600) estimatedTax = (10400 * 0.03) + ((taxableIncome – 10400) * 0.05);
else if (taxableIncome <= 19200) estimatedTax = (10400 * 0.03) + (5200 * 0.05) + ((taxableIncome – 15600) * 0.055);
else if (taxableIncome <= 52400) estimatedTax = (10400 * 0.03) + (5200 * 0.05) + (3600 * 0.055) + ((taxableIncome – 19200) * 0.06);
else estimatedTax = (10400 * 0.03) + (5200 * 0.05) + (3600 * 0.055) + (33200 * 0.06) + ((taxableIncome – 52400) * 0.0699);
break;
case "DE": // Delaware – progressive, ~2.2% to 6.6%
if (taxableIncome <= 2000) estimatedTax = taxableIncome * 0.022;
else if (taxableIncome <= 3000) estimatedTax = (2000 * 0.022) + ((taxableIncome – 2000) * 0.039);
else if (taxableIncome <= 4000) estimatedTax = (2000 * 0.022) + (1000 * 0.039) + ((taxableIncome – 3000) * 0.048);
else if (taxableIncome <= 5000) estimatedTax = (2000 * 0.022) + (1000 * 0.039) + (1000 * 0.048) + ((taxableIncome – 4000) * 0.055);
else if (taxableIncome <= 6000) estimatedTax = (2000 * 0.022) + (1000 * 0.039) + (1000 * 0.048) + (1000 * 0.055) + ((taxableIncome – 5000) * 0.062);
else estimatedTax = (2000 * 0.022) + (1000 * 0.039) + (1000 * 0.048) + (1000 * 0.055) + (1000 * 0.062) + ((taxableIncome – 6000) * 0.066);
break;
case "GA": // Georgia – progressive, ~1% to 5.75%
if (taxableIncome <= 6000) estimatedTax = taxableIncome * 0.01;
else if (taxableIncome <= 7000) estimatedTax = (6000 * 0.01) + ((taxableIncome – 6000) * 0.02);
else if (taxableIncome <= 8000) estimatedTax = (6000 * 0.01) + (1000 * 0.02) + ((taxableIncome – 7000) * 0.03);
else if (taxableIncome <= 10000) estimatedTax = (6000 * 0.01) + (1000 * 0.02) + (1000 * 0.03) + ((taxableIncome – 8000) * 0.04);
else if (taxableIncome <= 12000) estimatedTax = (6000 * 0.01) + (1000 * 0.02) + (1000 * 0.03) + (2000 * 0.04) + ((taxableIncome – 10000) * 0.05);
else estimatedTax = (6000 * 0.01) + (1000 * 0.02) + (1000 * 0.03) + (2000 * 0.04) + (2000 * 0.05) + ((taxableIncome – 12000) * 0.0575);
break;
case "HI": // Hawaii – progressive, ~1.4% to 11%
if (taxableIncome <= 10999) estimatedTax = taxableIncome * 0.014;
else if (taxableIncome <= 40999) estimatedTax = (10999 * 0.014) + ((taxableIncome – 10999) * 0.035);
else if (taxableIncome <= 149999) estimatedTax = (10999 * 0.014) + (30000 * 0.035) + ((taxableIncome – 40999) * 0.07);
else estimatedTax = (10999 * 0.014) + (30000 * 0.035) + (109000 * 0.07) + ((taxableIncome – 149999) * 0.11);
break;
case "ID": // Idaho – progressive, ~1% to 6%
if (taxableIncome <= 1567) estimatedTax = taxableIncome * 0.01;
else if (taxableIncome <= 3134) estimatedTax = (1567 * 0.01) + ((taxableIncome – 1567) * 0.016);
else if (taxableIncome <= 4701) estimatedTax = (1567 * 0.01) + (1567 * 0.016) + ((taxableIncome – 3134) * 0.0304);
else if (taxableIncome <= 6268) estimatedTax = (1567 * 0.01) + (1567 * 0.016) + (1567 * 0.0304) + ((taxableIncome – 4701) * 0.0413);
else if (taxableIncome <= 7835) estimatedTax = (1567 * 0.01) + (1567 * 0.016) + (1567 * 0.0304) + (1567 * 0.0413) + ((taxableIncome – 6268) * 0.0522);
else estimatedTax = (1567 * 0.01) + (1567 * 0.016) + (1567 * 0.0304) + (1567 * 0.0413) + (1567 * 0.0522) + ((taxableIncome – 7835) * 0.06);
break;
case "CA": // California – progressive, ~1% to 13.3%
if (taxableIncome <= 9325) estimatedTax = taxableIncome * 0.01;
else if (taxableIncome <= 22107) estimatedTax = (9325 * 0.01) + ((taxableIncome – 9325) * 0.02);
else if (taxableIncome <= 34889) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + ((taxableIncome – 22107) * 0.04);
else if (taxableIncome <= 48474) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + ((taxableIncome – 34889) * 0.06);
else if (taxableIncome <= 61246) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + ((taxableIncome – 48474) * 0.08);
else if (taxableIncome <= 312686) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + (12772 * 0.08) + ((taxableIncome – 61246) * 0.093);
else if (taxableIncome <= 375225) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + (12772 * 0.08) + (251440 * 0.093) + ((taxableIncome – 312686) * 0.103);
else if (taxableIncome <= 625371) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + (12772 * 0.08) + (251440 * 0.093) + (62539 * 0.103) + ((taxableIncome – 375225) * 0.113);
else if (taxableIncome <= 750346) estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + (12772 * 0.08) + (251440 * 0.093) + (62539 * 0.103) + (250146 * 0.113) + ((taxableIncome – 625371) * 0.123);
else estimatedTax = (9325 * 0.01) + (12782 * 0.02) + (12782 * 0.04) + (13585 * 0.06) + (12772 * 0.08) + (251440 * 0.093) + (62539 * 0.103) + (250146 * 0.113) + (125025 * 0.123) + ((taxableIncome – 750346) * 0.133);
break;
// Add more states and their tax logic here…
default:
estimatedTax = NaN; // Indicate state not found or calculation not implemented
break;
}
if (!isNaN(estimatedTax)) {
var formattedTax = estimatedTax.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
resultDiv.innerHTML = formattedTax + "
Estimated State Income Tax ";
} else {
resultDiv.innerHTML = "Calculation not available for this state or input.";
}
}