Gain or loss on a stock trade after commissions, the SEC fee and capital gains tax
$
$
Fractional shares are fine.
$
Many US online brokers charge $0 for stock trades; enter your broker’s fee if any.
$
Brokers usually pass this small regulatory fee on to sellers.
%
Long-term: 0%, 15% or 20% depending on taxable income. Short-term: your ordinary income tax bracket (switching the holding period fills in 15% or 22% as an example). State tax not included unless you add it.
Your profit on a stock trade is what you receive when you sell minus everything it cost you to buy:
Cost basis = buy price × shares + buy commission
Net sale proceeds = sell price × shares − sell commission − SEC fee
Gain or loss = net proceeds − cost basis
Return = gain after tax ÷ cost basis
Example
You buy 100 shares at $50 and sell at $65 with a $0-commission broker. Gross proceeds are $6,500. The SEC Section 31 fee at $20.60 per million is $6,500 × 0.0000206 = about $0.13. Gain before tax: $6,500 − $0.13 − $5,000 = $1,499.87. Held longer than a year at a 15% long-term rate, the estimated federal tax is $224.98, leaving $1,274.89 — a 25.50% after-tax return. Break-even sell price: just over $50.00.
US capital gains tax in 2026
The IRS treats a stock held one year or less as a short-term gain, taxed at your ordinary income tax rate; held more than one year, it is long-term and taxed at 0%, 15% or 20%. Under Rev. Proc. 2025-32, the 2026 long-term rate thresholds are:
0% up to $49,450 of taxable income (single), $98,900 (married filing jointly), $66,200 (head of household)
15% up to $545,500 (single), $613,700 (married filing jointly), $579,600 (head of household)
20% above those amounts
High earners may also owe the Net Investment Income Tax, and most states tax capital gains as regular income — add your state rate to the tax field for a fuller estimate. For a deeper tax estimate, use the capital gains tax calculator.
Fees on US stock trades
Commissions: many online brokers now charge $0 for US-listed stocks, but some charge per trade or for broker-assisted orders.
SEC Section 31 fee: charged on sales only. The SEC set it at $20.60 per million dollars of sales from April 4, 2026 (it had been $0.00 per million before that). The rate is reset during the year, so check the latest SEC fee rate advisory.
Losses: losses offset gains; up to $3,000 of net loss a year can reduce other income, with the rest carried forward.
Bought the same stock several times at different prices? Find your average cost first with the average down calculator.
Subtract your cost basis (buy price × shares + buy fees) from your net sale proceeds (sell price × shares − sell fees). Divide the result by the cost basis to get your percentage return.
How much tax do I pay on stock profits?
Stocks held more than one year are taxed at 0%, 15% or 20% at the federal level depending on taxable income; stocks held one year or less are taxed at your ordinary income rate. State tax may apply on top.
What is the SEC fee when I sell stock?
It is the Section 31 transaction fee, charged on sales only. From April 4, 2026 the rate is $20.60 per $1 million of sale proceeds — about 21 cents on a $10,000 sale.
What is my break-even price after fees?
Break-even = (buy price × shares + buy and sell commissions) ÷ (shares × (1 − SEC fee rate)). With $0 commissions it is just a fraction of a cent above your buy price.
Can I deduct a stock loss?
Yes, in a taxable account. Capital losses offset capital gains, and up to $3,000 of net capital loss per year ($1,500 if married filing separately) can offset other income; unused losses carry forward.