2026 state guide
How Montana taxes capital gains
Short-term gains are taxed at Montana’s ordinary income tax rates. The gain is stacked on top of your other taxable income, so each slice of it is taxed at the rate of the bracket it lands in.
| Rate | Taxable income |
|---|---|
| 4.7% | Up to $47,500 |
| 5.65% | Over $47,500 |
| Rate | Taxable income |
|---|---|
| 4.7% | Up to $95,000 |
| 5.65% | Over $95,000 |
Long-term gains get their own, lower schedule, topping out at 4.1%:
| Rate | Taxable income |
|---|---|
| 3% | Up to $47,500 |
| 4.1% | Over $47,500 |
| Rate | Taxable income |
|---|---|
| 3% | Up to $95,000 |
| 4.1% | Over $95,000 |
This calculator applies the single schedule to married-filing-separately and head-of-household filers. Montana taxes dividends as ordinary income at up to 5.65%, without the special rules it applies to long-term capital gains.
Official source: Montana state tax agency. Federal rates come from IRS Rev. Proc. 2025-32 and IRC §1411.
Montana capital gains tax: worked examples
Each example below is calculated with the same 2026 engine as the calculator, using federal long-term rates, the 3.8% NIIT and Montana’s rules. Example 1 matches the calculator's starting inputs; Examples 2 and 3 show larger, long-term sales.
Example 1: $50,000 stock gain, long-term vs. short-term
A single filer earning $100,000 of taxable income sells shares for a $50,000 gain ($50,000 cost basis, $100,000 sale price). What they pay in Montana if they held the shares more than a year versus one year or less:
| Line item | Long-termheld > 1 yr | Short-termheld ≤ 1 yr |
|---|---|---|
| Federal tax | $7,500 | $11,886 |
| Net Investment Income Tax (3.8%) | $0 | $0 |
| Montana tax | $2,050 | $2,825 |
| Total tax | $9,550 | $14,711 |
| Net take-home profit | $40,450 | $35,289 |
- Long-term: the $50,000 gain is stacked on $100,000 of taxable income and taxed at federal long-term rates (15% on $50,000).
- Short-term: the same gain is taxed like wages at federal ordinary rates (22% on $5,700 and 24% on $44,300).
- No NIIT: income plus gain ($150,000) is below the $200,000 single-filer threshold.
- Effective state rate on the gain: 4.10% long-term vs. 5.65% short-term.
- Holding past one year saves $5,161 in total tax.
Example 2: $250,000 long-term gain, married filing jointly
A married couple filing jointly with $150,000 of other taxable income sells long-held shares for a $250,000 profit ($100,000 cost basis, $350,000 sale price).
| Federal capital gains tax | $37,500 |
|---|---|
| Net Investment Income Tax (3.8%) | $5,700 |
| Montana tax | $10,250 |
| Total tax | $53,450 |
| Effective total rate | 21.38% |
| Effective state rate on the gain | 4.10% |
| After-tax profit | $196,550 |
- Federal: the $250,000 gain is stacked on $150,000 of taxable income and taxed at long-term rates (15% on $250,000), for $37,500.
- NIIT: income plus gain is $400,000, above the $250,000 married filing jointly threshold, so 3.8% applies to $150,000: $5,700.
- Montana: taxed 4.1% on $250,000, for $10,250.
- Sold short-term instead, the same gain would cost $78,597 in total tax ($14,125 of it state tax), so holding past one year saves $25,147.
Example 3: $1.5 million long-term gain, married filing jointly
A married couple filing jointly with $200,000 of other taxable income sells a concentrated, long-held stock position for a $1,500,000 profit ($500,000 cost basis, $2,000,000 sale price).
| Federal capital gains tax | $279,315 |
|---|---|
| Net Investment Income Tax (3.8%) | $55,100 |
| Montana tax | $61,500 |
| Total tax | $395,915 |
| Effective total rate | 26.39% |
| Effective state rate on the gain | 4.10% |
| After-tax profit | $1,104,085 |
- Federal: the $1,500,000 gain is stacked on $200,000 of taxable income and taxed at long-term rates (15% on $413,700 and 20% on $1,086,300), for $279,315.
- NIIT: income plus gain is $1,700,000, above the $250,000 married filing jointly threshold, so 3.8% applies to $1,450,000: $55,100.
- Montana: taxed 4.1% on $1,500,000, for $61,500.
- Sold short-term instead, the same gain would cost $657,591 in total tax ($84,750 of it state tax), so holding past one year saves $261,676.
Montana vs. neighboring states
How Montana compares with the states it borders, using the same worked examples.
| State | Treatment | Top long-term rate | State tax: $50K gain, single | State tax: $1.5M gain, joint |
|---|---|---|---|---|
| Montana (this page) | Preferential Long-Term Rate | 4.1% | $2,050 | $61,500 |
| Idaho | Flat Income Tax | 5.3% | $2,650 | $79,500 |
| North Dakota | Ordinary Income with Long-Term Exclusion | 1.5% | $585 | $21,923 |
| South Dakota | No Capital Gains Tax | 0% | $0 | $0 |
| Wyoming | No Capital Gains Tax | 0% | $0 | $0 |
On a $50,000 long-term gain for a single filer with $100,000 of other taxable income (Example 1), North Dakota, South Dakota, and Wyoming would take less in state tax than Montana. State tax is owed to the state where you live when you sell, so the comparison matters only if you are actually changing residency. See capital gains tax rates for all 50 states + DC.
Montana capital gains tax FAQ
Does Montana tax long-term stock capital gains in 2026 and 2027?
Yes. Montana taxes long-term gains at 3% (4.1% above $47,500 single / $95,000 joint) and short-term gains as ordinary income at up to 5.65%. Long-term gains get a break: the top rate is 4.1%, versus 5.65% for short-term gains. In 2026, a $50,000 long-term gain for a single filer with $100,000 of other taxable income owes $2,050 in Montana tax. For 2027: Montana's top ordinary rate drops from 5.65% to 5.4% and its brackets widen to $65,000 single / $130,000 joint (HB 337 of 2025); long-term gain rates stay at 3% and 4.1%. With 2027 federal brackets, a $50,000 long-term gain for a single filer with $100,000 of other taxable income would owe $2,050 in Montana tax.
What is the combined federal and Montana capital gains tax rate?
Adding the top marginal rates, long-term gains face up to 27.9% (20% federal + 3.8% NIIT + 4.1% Montana) and short-term gains up to 46.45% (37% + 3.8% + 5.65%). Most investors pay far less than the top rates: on a $50,000 long-term gain for a single filer with $100,000 of other taxable income, the combined effective rate is 19.10% ($7,500 federal, $0 NIIT and $2,050 Montana tax).
Are short-term and long-term gains taxed differently in Montana?
Yes. Montana gives long-term gains a break (top rate 4.1% vs. 5.65% for short-term). On a $50,000 long-term gain for a single filer with $100,000 of other taxable income, state tax is $2,050 long-term vs. $2,825 short-term.
How much Montana tax would I owe on a $50,000 stock gain?
For a single filer with $100,000 of other taxable income and a $50,000 long-term gain, Montana tax is $2,050 (4.10% of the gain). Adding $7,500 federal tax and $0 NIIT brings the total to $9,550, leaving $40,450 after tax.
How can Montana investors legally reduce taxes on stock sales?
Hold shares for more than a year: long-term gains get federal rates of 0%, 15% or 20% instead of up to 37%, and Montana taxes them at a lower rate too. Harvest losses: realized losses offset gains dollar for dollar, and up to $3,000 of excess loss a year reduces other income on your federal return (see our tax-loss harvesting simulator). Trade inside tax-advantaged accounts such as a 401(k), traditional IRA or Roth IRA, where sales are not taxed when they happen. Donate appreciated long-term shares to charity instead of cash to avoid capital gains tax on the appreciation.
Does Montana tax dividends?
Montana taxes dividends as ordinary income at up to 5.65%, without the special rules it applies to long-term capital gains.
For the full federal picture (bracket stacking, the NIIT and ways to reduce the tax), read the 2026 stock capital gains tax guide.