A paycheck comes with two numbers: what was earned and what arrived. Investing works the same way. A person who sells shares for a gain wants to know how much of it stays, and a person who sells at a loss wants to know whether the loss counts for anything. Most people would like to keep more of what they earn and lose less of it. Nobody can promise either, and taxes are only one of several costs that sit between a result and a bank balance. They do follow rules, and the rules can be read.
This article looks at one tax: the U.S. federal income tax on individuals. The IRS, the Internal Revenue Service, is the federal agency that collects it. Its Publication 505 opens with a short statement: “The federal income tax is a pay-as-you-go tax.” The article follows the money in that order: how wages are counted, how the rates apply in steps, and how interest, dividends and gains from selling investments fit in.
It does not say how any one person’s income is taxed. That depends on facts about the person, and a tax professional is the right place to ask. State and local taxes are outside its scope. The rules and the dollar figures also change from year to year, so every number below carries its year.
The tax itself began as a wartime measure, and the history explains why it works the way it does.
From a War Measure to the Paycheck
An IRS information sheet on the history of U.S. taxes says Congress passed “the first federal income tax law” in 1862, in the middle of the Civil War. The IRS’s own history timeline says Congress established the Office of the Commissioner of Internal Revenue in 1862, and that George S. Boutwell became its first commissioner on July 17 of that year.
The tax did not last. The same information sheet says it was repealed in 1872. Congress passed a new one in 1894 at a flat 2 percent, and in 1895 the Supreme Court ruled it unconstitutional, because the Constitution requires direct taxes to be divided among the states by population.
The Sixteenth Amendment settled that problem. The history timeline says it became part of the Constitution on February 25, 1913, and that the Treasury Department unveiled the four-page form for the new income tax, later numbered Form 1040, on January 5, 1914. Another IRS page, a lesson on the IRS yesterday and today, says that “in 1943, the ‘pay-as-you-go’ system of tax withholding began,” and that a 1953 reorganization turned the Bureau of Internal Revenue into the Internal Revenue Service.

So the modern tax has three parts: a way to count income, rates that apply in steps, and a way to collect during the year. The first question is which part of a person’s income gets taxed at all.
Counting Income and Stacking Layers
Not every dollar earned is taxed. The IRS describes the standard deduction as a specific dollar amount that reduces the income on which a person is taxed. A person can take it or itemize deductions instead, but not both. What is left is called taxable income, and the rates apply to that figure.
The rates apply in steps. The IRS page on rates and brackets says tax is figured “in layers called tax brackets.” When income rises into a higher bracket, the higher rate applies “only on the part that’s in the new tax bracket.” Nothing already earned is retaxed at the higher rate.
The IRS publishes new bracket figures each year. For 2026, the figures in Revenue Procedure 2025-32 for a single person look like this.
| Rate | Part of taxable income taxed at that rate (single, tax year 2026) |
|---|---|
| 10% | Up to $12,400 |
| 12% | Over $12,400 up to $50,400 |
| 22% | Over $50,400 up to $105,700 |
| 24% | Over $105,700 up to $201,775 |
| 32% | Over $201,775 up to $256,225 |
| 35% | Over $256,225 up to $640,600 |
| 37% | Over $640,600 |
The same document sets the 2026 standard deduction at $16,100 for a single person and $32,200 for a married couple filing jointly. Married couples filing jointly have their own bracket table, in which the 10 percent layer runs up to $24,800.
Here is an invented example. A single person earns $65,000 in wages in 2026 and takes the standard deduction. That leaves $48,900 of taxable income. The first $12,400 sits in the 10 percent layer and produces $1,240. The other $36,500 sits in the 12 percent layer and produces $4,380. The total is $5,620. That is about 11.5 percent of the taxable income and about 8.6 percent of the wages. The example leaves out credits, other deductions and every tax except the federal income tax. It is an illustration, not a calculation for any real person.

Now suppose the same person earns $2,000 more, so taxable income is $50,900. The first $50,400 is taxed as before, with $1,240 in the 10 percent layer and $4,560 in the 12 percent layer. Only the last $500 reaches the 22 percent layer and adds $110. The total is $5,910, which is $290 more than before. The extra $2,000 was not all taxed at 22 percent. A raise can push a person into a new layer without changing the tax on the layers below.
Income is taxed all year long, not once at the end, and that is the next piece.
Paid as the Money Comes In
The pay-as-you-go idea from the opening has a practical meaning. Publication 505 says an employee’s employer “probably withholds income tax” from pay. It says a person who is self-employed generally pays in a different way, through estimated tax, and that a person with income such as dividends, interest, capital gains, rents or royalties may have to pay estimated tax too.
This is why the first number on a paycheck is larger than the second. The amount held back is a payment toward the year’s tax. The IRS history dates this system to 1943. Whether the amount held back matches the tax actually owed is a separate question that depends on the person’s whole year.
Wages are the simplest income to follow. Investing adds several kinds of income, and each is counted in its own way.
When the Money Comes From Investing
The IRS page on interest received says most interest is taxable “in the year it becomes available.” Interest that is exempt from tax is still reported, and the page says reporting it does not turn it into taxable interest. The page says a person should receive Form 1099-INT, the statement the payer sends, when interest of $10 or more was paid. For dividends, the IRS dividends page names Form 1099-DIV and the same $10 line, and it adds that significant dividend income can also bring the net investment income tax and estimated tax payments, which later sections cover.
Dividends are the share of a company’s profit that it pays to its stockholders. The IRS page on dividends says taxable dividends count as ordinary income, which is taxed at the graduated rates described above. A subset called qualified dividends is taxed at lower capital gain rates, and the company that pays the dividend reports which are which.
Gains from selling are counted differently. The IRS page on capital gains and losses says almost everything a person owns for personal or investment use is a capital asset. The gain or loss is “the difference between the adjusted basis” and the amount realized from the sale. Basis, in the words of the IRS page on basis of assets, is generally the amount paid, plus costs such as commissions for stocks and bonds.
How long the asset was held decides which rules apply. A gain or loss is long-term if the asset was held more than one year, and short-term if it was held one year or less. The count starts on the day after the asset was acquired and runs up to and including the day it was sold. Take invented dates. Shares bought on March 10, 2025 and sold on March 10, 2026 have been held exactly one year, so the result is short-term. The same shares sold on March 11, 2026 have been held more than one year, so the result is long-term. The count runs by calendar day, so the category depends on the exact dates. The same page says net short-term gains are taxed as ordinary income “at graduated tax rates,” which means the layers above. Net long-term gains have their own rates of 0, 15 or 20 percent. For 2026, Revenue Procedure 2025-32 says the 0 percent rate covers taxable income up to $49,450 for a single person, and the 15 percent rate runs up to $545,500. Above that, 20 percent applies.
Another invented example shows the difference. A single person with $60,000 of taxable income before the sale buys 100 shares at $50, a basis of $5,000, and sells them at $70 for $7,000, a gain of $2,000. Commissions are left out. The two cases look like this.
| Case | How the $2,000 gain is taxed | Federal tax on the gain |
|---|---|---|
| Held one year or less | As ordinary income, in the 22% layer | $440 |
| Held more than one year | At the 15% long-term rate | $300 |
The $140 gap comes from the holding period alone. The numbers are made up, the share price is not a quote or a forecast, and the example leaves out credits and other taxes. It also shows only the gain side, and the next section shows the other.
When an Investment Loses
The same page covers losses. If capital losses are larger than capital gains, the IRS says the amount of the excess loss that can be claimed to lower income is the lesser of $3,000 ($1,500 if married filing separately) or the total net loss. A loss above that limit can be carried forward to later years.
Take the same invented shares sold at $40 instead of $70. The sale is a loss of $1,000. With no gains in the year to set it against, the loss can lower income by $1,000, which is under the $3,000 limit. For a person in the 22 percent layer, that is worth $220 in tax. The figures are made up and leave out other taxes and other income. The $1,000 that was actually lost is still lost, and the tax saving covers only part of it.
Both cases start from basis. The IRS basis page says the adjusted basis has to be worked out before any gain or loss can be figured.
What Else Can Apply, and What Changes
Investment income can bring one more tax. The IRS page on the net investment income tax describes “a 3.8 percent net investment income tax” that applies when income is above certain levels. The page lists $200,000 for a single person and $250,000 for married couples filing jointly. Interest, dividends and gains from selling stocks, bonds and mutual funds are among the items it counts as investment income, and wages are not.
The figures also move. The 10 percent layer for a single person ended at $11,925 in 2025, according to the IRS rates page, and at $12,400 in 2026. The IRS pages quoted here show review dates from July to November 2026, and any of them can change after that. A figure from this article is a figure for a particular year, and the IRS page for the current year is the place to check it.
Back to the Paycheck
The paycheck that arrives smaller than the salary has a plain explanation. Part of the pay is held back toward a tax that applies in layers, on income left after a deduction, and is settled once a year. Investing adds interest, dividends and sale gains to that picture. Most interest is taxable in the year it becomes available, ordinary dividends are taxed at the same graduated rates as wages, and gains from selling follow their own rules, which depend on how long the asset was held. Losses count for something, but only within a limit.
None of this tells anyone how much to earn, what to buy or when to sell. It describes how a federal rule counts what happened, after it has happened. The result of the investment itself remains uncertain, and the tax comes after.
Sources
- IRS: Publication 505, Tax Withholding and Estimated Tax (2026).
https://www.irs.gov/pub/irs-pdf/p505.pdf - IRS, Understanding Taxes: Info Sheet 1, Timeline of Events 1861 to 1913.
https://apps.irs.gov/app/understandingTaxes/whys/thm02/les03/media/is1_thm02_les03.pdf - IRS: IRS History Timeline (March 2019).
https://www.irs.gov/pub/newsroom/irs-history-timeline_march-2019.pdf - IRS, Understanding Taxes: The IRS Yesterday and Today.
https://apps.irs.gov/app/understandingTaxes/student/whys_thm06_les01.jsp - IRS: Topic no. 551, Standard deduction.
https://www.irs.gov/taxtopics/tc551 - IRS: Federal income tax rates and brackets.
https://www.irs.gov/filing/federal-income-tax-rates-and-brackets - IRS: Revenue Procedure 2025-32 (tax year 2026 inflation adjustments).
https://www.irs.gov/pub/irs-drop/rp-25-32.pdf - IRS: Topic no. 403, Interest received.
https://www.irs.gov/taxtopics/tc403 - IRS: Topic no. 404, Dividends and other corporate distributions.
https://www.irs.gov/taxtopics/tc404 - IRS: Topic no. 409, Capital gains and losses.
https://www.irs.gov/taxtopics/tc409 - IRS: Topic no. 703, Basis of assets.
https://www.irs.gov/taxtopics/tc703 - IRS: Topic no. 559, Net investment income tax.
https://www.irs.gov/taxtopics/tc559
