Income Tax Example: A $5,000 Loss, Then the Tax Bill

This guide has 3 parts
In This Part

This is part 3 of 3 of our guide to How Personal Income Tax Actually Works. It picks up where Self-Employment Tax Explained: A $50,000 Example leaves off, and it is written to stand on its own: the key ideas are restated where you need them.

Worked Example — A $5,000 Loss, Then the Bill

An investor in the 22% bracket bought fund A for $20,000; it is now worth $15,000. They have also realized $1,000 of long-term gains this year, taxed at 15%. They sell A for a $5,000 loss and buy $15,000 of fund B, which is similar but not substantially identical.

  • Year 1: $1,000 of loss cancels the gain: $1,000 × 15% = $150. The next $3,000 offsets salary: $3,000 × 22% = $660. Carried forward: $5,000 − $1,000 − $3,000 = $1,000.
  • Year 2: the $1,000 offsets salary: $1,000 × 22% = $220. Total saved: $150 + $660 + $220 = $1,030.
  • The later bill: fund B is eventually sold for $25,000. The gain is $25,000 − $15,000 = $10,000, against $5,000 had A been kept, and the extra $5,000 costs $5,000 × 15% = $750.

Net saving: $1,030 − $750 = $280, which is the $4,000 that offset salary times the 7-point gap between 22% and 15%, plus the use of the money meanwhile.

The wash-sale rule. The loss is disallowed if, within 30 days before or after the sale, you buy substantially identical stock or securities, acquire them in a taxable trade, acquire an option to buy them, or buy them in your IRA or Roth IRA. A purchase by your spouse counts too. A disallowed loss is normally added to the new shares’ basis, so it is postponed, not lost, except when the IRA made the purchase: then it is gone for good. A dividend automatically reinvested in the fund you sold counts as a purchase.

Within 30 Days You Buy…Wash Sale?
The same stock or fund, in any of your accounts or your spouse’sYes
The same holding in your IRAYes, and the loss is lost permanently
Another company’s stock in the same industryOrdinarily no, says the IRS
Another provider’s fund tracking the same indexUnsettled: Publication 550 doesn’t address it and there is no ruling
A fund tracking a different index (total market instead of S&P 500)Less likely, but still a facts-and-circumstances judgment
Rules as of Oct 2026: IRS Publication 550 (wash sales; substantially identical property); IRS Topic 409 ($3,000 limit and carryover); 26 U.S.C. §1091. Fund prices in the example are illustrative; state tax is ignored.

Gain harvesting is the reverse. For 2026, long-term gains are taxed at 0% while taxable income, gains included, stays at or below $49,450 for a single filer (7.6). Someone with $40,000 of taxable income can realize $49,450 − $40,000 = $9,450 of gains tax-free and buy the fund straight back; the wash-sale rule covers only losses, so the basis resets higher. The running household, at $52,363 of taxable income (9.1: How Personal Income Tax Actually Works — Brackets and Marginal Rates), is already past that line, and the extra AGI can cost a credit or subsidy (9.1: How Personal Income Tax Actually Works — Brackets and Marginal Rates).

When it isn’t worth it: inside a 401(k) or IRA, where gains and losses aren’t taxed or deductible; for small losses that trading costs and spreads would eat; and in a low bracket now, when the lower basis may be taxed at a higher rate later.

When This Breaks

“Harvest every loss” assumes your rate when you finally sell will be no higher than today’s, and that you will obey the wash-sale rule across every account, reinvested dividend and spouse’s trade. It breaks when income rises into the 20% capital-gains bracket, or when a robo-adviser (7.9) harvests in your taxable account while your IRA buys the same fund. Count the tax saved net of the later bill, not the size of the loss.

Everything above this section is federal. State income tax adds a separate layer that varies enormously. For 2026, eight states levy no individual income tax at all: Alaska, Florida, Nevada, New Hampshire (which repealed its tax on interest and dividends as of 2025), South Dakota, Tennessee, Texas and Wyoming. A ninth, Washington, taxes capital gains but not wages. Fifteen states, Illinois and Pennsylvania among them, use a single flat rate. The other 26, plus the District of Columbia, use graduated brackets like the federal system; California’s top rate is 13.3%.

The state line is not the whole bill. In 16 states (by the Tax Foundation’s count), cities, counties or school districts add their own income tax: New York City, Pennsylvania’s local earned-income taxes, and Ohio’s municipal taxes are the best-known examples. A state that skips the income tax must raise revenue some other way, usually through sales, property or business taxes, so compare total tax, not one line.

As of Oct 2026. Source: Tax Foundation, State Individual Income Tax Rates and Brackets, 2026 (Feb 2026). Rates change most Januaries; check your state revenue department.

Where state tax meets the federal return. State and local income (or sales) taxes and property taxes are deductible on the federal return only if you itemize, and only up to the SALT cap — $40,400 for 2026, shrinking by 30% of MAGI above $505,000 until it reaches the $10,000 floor at $505,000 + $30,400 ÷ 0.30 ≈ $606,333 (9.2). For most households the cap never binds, because itemizing doesn’t win. If the running household lived in a state with a flat 5% income tax on the same wages as its federal return, it would pay about 5% × $67,900 = $3,395; as a renter it pays no property tax directly. That is far below the $16,100 standard deduction, so the state tax buys no federal deduction at all. The higher cap matters mainly to homeowners in high-tax states with large property-tax bills — such as the year-eight household weighing itemizing for the first time (Part 14.3).

SALT cap figures for 2026 as of Oct 2026: 26 U.S.C. §164(b)(6)–(7). The 5% state rate is illustrative; state tax bases differ from the federal one.
Worked Example — Same Salary, Two States

Part 1.6 built the running household’s paycheck in a state with no wage tax: $2,163.60 net every two weeks. The assumed flat 5% tax above, $3,395 a year, takes $3,395 ÷ 26 = $130.58 from each check, leaving $2,163.60 − $130.58 = $2,033.02. Over ten years: $3,395 × 10 = $33,950.

Moving to save it works only if living costs match. If rent in the no-tax state were $150 a month higher, the saving would fall to $3,395 − $150 × 12 = $1,595 a year. Higher sales or property taxes would cut it further. Compare the whole budget (1.3), not the tax rate alone.

Moving, remote work and residency. A state generally taxes its residents on all their income, wherever it is earned, and nonresidents only on income earned there. Residency usually turns on domicile: the one permanent home you intend to return to, which a long temporary stay elsewhere doesn’t change. The “183-day rule” is not a universal safe harbor. In New York, for example, you are a resident if your domicile is there, however few days you spend in the state. You are also a resident if you keep a permanent home there for substantially all of the year and spend 184 days or more in the state. A remote worker can also owe tax to the state where the office is. New York generally counts a nonresident’s work-from-home days as New York days when the employer’s primary office is in New York, unless the employer has a bona fide office at the home location. If you move, change your license, voter registration and addresses at once, keep a log of your days, and expect part-year returns in both states.

Conformity. States don’t always adopt federal tax rules. California, for example, does not allow the HSA deduction and taxes employer HSA contributions, so the triple tax advantage in Part 6.6 applies to federal tax only. New federal deductions such as the tips and overtime deductions (9.2) may not reduce your state tax at all.

As of Oct 2026. New York residency and telecommuting rules: New York State Department of Taxation and Finance. California HSA non-conformity: FTB, 2025 Schedule CA (540) instructions. Residency tests differ by state; this is education, not tax advice.
Decision Rule

Rule: Each October, and after any change in job, marriage, children or side income, project the year’s return with the IRS Tax Withholding Estimator, then:

  • Balance due of $1,000 or more and payments short of both 90% of this year’s tax and 100% of last year’s (110% above $150,000 of AGI): add (shortfall ÷ remaining paychecks) in W-4 Step 4(c) (9.3).
  • Refund larger than one paycheck’s withholding ($234.92 for the running household): cut withholding by about (refund ÷ remaining paychecks) a check and move the same amount to savings automatically.
  • In between: leave the W-4 alone.
  • Each January: reset any Step 4(c) figure you set this way. A $3,000 shortfall spread over six remaining paychecks is $500 a check; left in place, it withholds $500 × 26 = $13,000 the next year.

It assumes steady wages and that freed cash is saved. Ignore it when income is volatile or mostly self-employment (pay quarterly estimates of 100% or 110% of last year’s tax instead), or if extra pay would be spent: then keep the refund and save it on arrival.

The Costliest Mistake

Not filing because you owe no tax. Refundable credits are paid only to people who file. A single parent of two qualifying children with $20,000 of 2026 wages owes no income tax as head of household ($20,000 is below the $24,150 standard deduction) but qualifies for the maximum earned income credit, $7,316, plus a refundable Child Tax Credit of 15% × ($20,000 − $2,500) = $2,625, under the 2 × $1,700 limit. Not filing forfeits $7,316 + $2,625 = $9,941 for the year. About one in five eligible workers miss the earned income credit (IRS estimate), and in March 2026 the IRS warned that $1.2 billion of 2022 refunds (median $686) would be lost to people who had not filed within three years.

How to avoid it: file every year you have earned income, even when no tax is due, and file any missed years still inside the three-year window.

As of Oct 2026: Rev. Proc. 2025-32 (2026 earned income credit); IRS, EITC Awareness Day (Jan 23, 2026); IRS, IR-2026-37 (Mar 20, 2026). The parent is illustrative.
Frequently Asked Questions

What is the difference between a marginal and an effective tax rate?

The marginal rate is the tax on your next dollar of taxable income; the effective rate is total tax divided by income. The running household’s marginal federal rate is 22%, but its $6,235 of tax is only 9.1% of its $68,463 AGI. Use the marginal rate to value a raise or a deduction, and the effective rate to compare overall burdens (9.1: How Personal Income Tax Actually Works — Brackets and Marginal Rates).

Will a raise put me in a higher bracket and lower my take-home pay?

No, not through the brackets: only dollars above a bracket line are taxed at the higher rate. Ignoring state tax and retirement deferrals, a $5,000 raise for the running household adds $5,000 × (22% + 7.65%) = $1,482.50 of income and payroll tax and leaves $3,517.50 more pay. The exceptions are benefit cliffs and phase-outs, such as the premium tax credit’s limit at 400% of the poverty line (9.1: How Personal Income Tax Actually Works — Brackets and Marginal Rates).

Why do I owe taxes this year when I got a refund last year?

Usually because less was withheld, not because the tax rose. Common causes: a second job or working spouse (each employer withholds as if its job were the only one), untaxed interest or freelance pay, a new Form W-4, or a lost credit. A balance under $1,000 carries no penalty; fix the cause with W-4 Step 2 or Step 4 (9.3).

When are estimated tax payments due?

For 2026 income: April 15, June 15 and September 15, 2026, and January 15, 2027, moved to the next business day when a date falls on a weekend or holiday. You generally need them if you expect to owe $1,000 or more after withholding and refundable credits. Paying 100% of last year’s tax (110% if last year’s AGI exceeded $150,000) in four on-time installments avoids the penalty even if this year’s tax is higher (9.3).

Slabs and rebate as of Oct 2026 for tax year 2026-27 (unchanged by Budget 2026). Source: Income-tax Act, 2025 and Income-tax Department (incometaxindia.gov.in). Arithmetic re-checked by script.

Parts 6 and 7 built the accounts and the investing discipline. This Part answers the question all of that was ultimately in service of: how much is actually needed, how to turn a portfolio into a paycheck that has to last decades, and how Social Security — a live policy question in 2026 — fits into the picture.

India Lens

The Income-tax Act, 2025 replaced the 1961 Act on April 1, 2026. It drops “assessment year” and “previous year” for a single tax year (April–March) and renumbers almost every section — 80C is now Section 123, 80D Section 126, 80E Section 129, the 87A rebate Section 156 and the new regime Section 202 — so check the section number before filing. The default new regime taxes income above ₹4 lakh at 5%, 10%, 15%, 20% and 25% in ₹4 lakh steps and 30% above ₹24 lakh, with a ₹75,000 standard deduction and a rebate of up to ₹60,000 that makes income up to ₹12 lakh tax-free (₹12.75 lakh of salary). The old regime keeps 5%/20%/30% slabs starting at ₹2.5 lakh, ₹5 lakh and ₹10 lakh, a ₹50,000 standard deduction, and the deductions: 80C up to ₹1.5 lakh, 80D, and up to ₹2 lakh of home-loan interest. Both add 4% cess.

Worked example — ₹15 lakh salary, ₹1.5 lakh of 80C, ₹25,000 of 80D, ₹2 lakh of home-loan interest:

StepOld regimeNew regime
Gross salary₹15,00,000₹15,00,000
Standard deduction−₹50,000−₹75,000
80C, 80D, home-loan interest−₹1,50,000, −₹25,000, −₹2,00,000Not allowed
Taxable income₹10,75,000₹14,25,000
Tax by slab5% × 2,50,000 = 12,500; 20% × 5,00,000 = 1,00,000; 30% × 75,000 = 22,500 → ₹1,35,0005% × 4,00,000 = 20,000; 10% × 4,00,000 = 40,000; 15% × 2,25,000 = 33,750 → ₹93,750
Cess at 4%₹5,400₹3,750
Total tax₹1,40,400₹97,500

The new regime saves ₹1,40,400 − ₹97,500 = ₹42,900 here despite ₹4.25 lakh of deductions. At this salary the old regime wins only if total deductions, including its ₹50,000 standard deduction, exceed about ₹5.94 lakh. The example ignores professional tax, employer NPS and surcharge (which starts above ₹50 lakh).

✓ Section Recap

The federal income tax is progressive: each 2026 bracket taxes only the slice of income inside it, so crossing into a higher bracket never raises the tax on the dollars below the line, though benefit cliffs and phase-outs can push the real cost of a raise above the bracket rate. The return runs from total income through adjustments to AGI, then deductions ($16,100 standard for a single filer in 2026) to taxable income, tax, credits and payments, which is why a deduction is worth only your marginal rate while a credit cuts the bill dollar for dollar. Nothing is withheld from 1099 income, so the self-employed owe 15.3% self-employment tax on 92.35% of net earnings and must pay enough to meet a safe harbor: 90% of this year’s tax or 100% of last year’s (110% above $150,000 of AGI). Tax-loss harvesting mostly defers tax, and a purchase within 30 days in any of your accounts, including an IRA, can void the loss. State tax runs from zero in eight states to California’s 13.3% top rate, so compare a move on the whole budget, never on the rate alone.

✎ Check Yourself

Three questions on this chapter. Decide on your answer first, then click “Reveal Answer.”

1. Last year your AGI was $180,000 and your tax was $30,000. This year you expect $40,000 of tax. What is the smallest total of withholding and estimated payments that meets a safe harbor?

  1. $30,000
  2. $36,000
  3. $33,000
  4. $40,000
Reveal Answer

Answer: C. The safe harbor is the lesser of 90% of this year’s tax ($36,000) or 110% of last year’s ($33,000), because last year’s AGI exceeded $150,000. Using 100% of last year’s tax ($30,000) misses the higher-income rule. (Part 9.3)

2. On Nov 10 you sell an S&P 500 index fund in your taxable account at a $4,000 loss. On Nov 24 your IRA buys the same fund. What happens to the loss?

  1. It stands, because more than ten days passed before the repurchase
  2. It stands, because the purchase happened in a separate retirement account
  3. It is postponed by adding it to the basis of the IRA’s shares
  4. It is disallowed and lost for good, because the IRA made the purchase
Reveal Answer

Answer: D. Buying substantially identical securities within 30 days, in any account including an IRA, is a wash sale. An ordinary disallowed loss is added to the new shares’ basis, but when the IRA buys, the loss is gone permanently. (Part 9.5)

3. Your domicile remains New York, but in 2026 you spend 200 days working remotely from a rented apartment in Florida. Under New York’s rules, how is your residency treated?

  1. You become a Florida resident by spending more than 183 days there
  2. New York taxes the income from days spent in the state
  3. You remain a New York resident, because your domicile is there
  4. You file as a part-year resident of New York and Florida for 2026
Reveal Answer

Answer: C. In New York, domicile generally makes you a resident regardless of the days you spend elsewhere (narrow exceptions apply only if you keep no home in New York); the 183-day rule is not a universal safe harbor. Changing domicile takes a real move, with license, voter registration and addresses. (Part 9.6)

Sources