Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / By State / Maryland
Maryland capital gains

Capital gains tax in Maryland (2026): selling a business, real estate or farm

Short answerMaryland taxes capital gains as ordinary income at up to 6.5% (2026), adds county tax of 2.25% to 3.30%, and since 2025 charges an extra 2% on net capital gain when federal adjusted gross income exceeds $350,000, for any filing status. A large sale can therefore face about 11.8% at the margin. In the $2 million example below, Maryland takes $234,000.

The 2% capital gains surtax and its $350,000 cliff

The Budget Reconciliation and Financing Act of 2025 (Chapter 604) added Tax-General 10-105(a)(3): for tax years beginning after Dec. 31, 2024, an individual whose federal adjusted gross income exceeds $350,000 pays an additional 2% on the net capital gain included in Maryland income. Technical Bulletin 58 (Dec. 29, 2025) confirms the $350,000 line applies regardless of filing status, so a married couple gets the same threshold as a single filer, and it reaches gains passed through from partnerships, S corporations and trusts.

It works like a switch, not a bracket. Once AGI crosses $350,000, the 2% (TB-58, 2025) applies to all of the net capital gain, not just the excess. In the second and third examples, a couple's gain grows from $140,000 to $160,000 and their AGI moves from $340,000 to $360,000; Maryland tax rises by $5,140 on $20,000 more gain, most of it the surtax on the full $160,000. An installment sale or year-end timing can keep each year under it.

What is excluded from the 2% surtax

Tax-General 10-105(a)(3)(ii) and TB-58 (2025) carve out gain from:

  • A primary residence sold for less than $1,500,000 (single-family home, townhome, row home, condo or co-op, with its land and accessory unit).
  • Assets inside 401(k), 403(b), 457(b), IRA, Roth IRA and other retirement plans.
  • Cattle, horses or breeding livestock held over 12 months, if more than 50% of the year's gross income comes from farming or ranching (the 2025 statute counts the sale itself in that test).
  • Land under, or sold subject to, a conservation, agricultural or forest preservation easement.
  • Business property whose cost is deductible under IRC 179, and nonprofit-owned affordable housing.

Farmland without an easement, rental buildings, business goodwill and stock are not on the list. The easement exclusion makes agricultural conservation easements worth a look for Maryland farm sellers.

Stacking it up: state, county, surtax and federal

Maryland's top state brackets for 2025 and later are 6.25% from $600,001 to $1.2 million and 6.5% above $1.2 million of joint taxable income (Tax-General 10-105). County and Baltimore City tax applies to the same income at 2.25% to 3.30% for 2026; Allegany rose to 3.20% and Kent to 3.30% this year, and Dorchester is at 3.30% (Comptroller Tax Alert, rev. Dec. 22, 2025). With the 2% surtax, the top combined Maryland rate on a large gain is about 11.8%.

In the first example a couple selling a business or property for a $2 million gain owes $234,000 to Maryland, $407,847 in federal income tax and $76,000 of net investment income tax: $717,847 in all, an effective 35.9% of the gain. Federal rates are summarized in one line: 0%, 15% or 20%, with 20% above $613,700 of joint taxable income for 2026 (Rev. Proc. 2025-32); the capital gains guide has the rest.

Nonresident sellers and settlement withholding

When a nonresident individual sells Maryland real property, the settlement agent must withhold 8.75% of the total payment; for a nonresident entity it is 8.25% (Tax-General 10-912; Tax Alert, 2025). "Total payment" means net proceeds after paying off liens and closing costs, not the gross price. The withholding rate does not include the 2% surtax, so TB-58 tells nonresidents expecting the surtax to make an extra estimated payment, and a seller whose price exceeds $1.5 million cannot request a tentative refund before filing the year-end return.

Nonresidents do not pay county tax, but Tax-General 10-106.1 imposes a special nonresident tax at the lowest county rate. Moving away removes Maryland's claim on stock gain, not on Maryland real estate. See moving before a sale.

Depreciation, 1031 exchanges and transfer taxes

Maryland decouples from federal bonus depreciation and limits Section 179 expensing to $25,000 with a $200,000 phase-out (Tax-General 10-210.1), so Maryland basis in business equipment is often higher than federal basis and the Maryland gain at sale can be lower. A 1031 exchange that defers the federal gain also defers Maryland tax, because Maryland starts from federal adjusted gross income (TB-58, 2025); see 1031 exchange.

Deeds carry a state transfer tax of 0.5% of the consideration (Tax-Property 13-203, 2026), cut to 0.25% and paid entirely by the seller on a sale to a first-time Maryland homebuyer, plus county transfer and recordation taxes that vary by county.

Estate and inheritance taxes on Maryland property

Maryland is the only state that keeps both. The estate tax applies above a $5,000,000 exclusion (Tax-General 7-309), and the inheritance tax is 10% of the clear value passing to heirs outside the exempt group; spouses, parents, grandparents, children and their descendants, their spouses and siblings are exempt (Tax-General 7-204). Heirs still get a federal basis step-up, so holding until death can erase gain that a lifetime sale would trigger. Related pages: sale of a business, rental property, Virginia and District of Columbia.

Hans studies the tax side of Maryland sales and models the surtax line, county rate and timing together. Get the Big Sale Tax Analysis.

What to know

The engine models Maryland with the 6.5% top state rate, a 3.2% county rate and the 2% surtax; your county may be higher or lower, and for incomes below $1.2 million the state bracket is lower than modeled. Splitting a sale across years to stay under $350,000 only works for modest gains and depends on the buyer paying, so an installment note should come with a down payment, a recorded deed of trust and personal guarantees. Nonresident withholding is a prepayment that the year-end return settles.

Worked example

Maryland couple, $250,000 of other income, sells a business or investment property for a $2,000,000 long-term gain. Modeled with the 6.5% top state rate, a 3.2% county rate and the 2% surtax. Couple with $200,000 of other income and a $140,000 long-term gain: federal AGI $340,000, so no surtax. Modeled at the 6.5% state and 3.2% county rates, which overstates the state bracket at this income. Same couple with a $160,000 gain: federal AGI $360,000, so the 2% applies to the whole $160,000. Same rate assumptions as ex2.

Engine run$2M business or property gain, 2026Just under the $350,000 lineJust over the line
Filing statusMarried, jointMarried, jointMarried, joint
StateMarylandMarylandMaryland
Other income (wages, pension, interest)$250,000$200,000$200,000
Long-term capital gain$2,000,000$140,000$160,000
Federal income tax on the sale$407,847$21,000$24,000
Net investment income tax (3.8%)$76,000$3,420$4,180
State income tax on the sale$234,000$13,580$18,720
Total tax caused by the sale$717,847$38,000$46,900
Effective rate on the gain35.9%27.1%29.3%
Gain kept after these taxes$1,282,153$102,000$113,100

Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.

Run your own numbers

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.

Free PDF sheet

Long-Term vs Short-Term Capital Gains (2026)

The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

Does Maryland tax capital gains?
Yes. Maryland taxes capital gains as ordinary income at state rates up to 6.5% for 2026, plus county income tax of 2.25% to 3.30%. Since 2025, residents with federal adjusted gross income over $350,000 also pay an additional 2% on net capital gain, so the combined top rate on a big gain is about 11.8%.
What is the Maryland capital gains tax rate for 2026?
There is no single rate. Gains are taxed at Maryland's regular brackets, 6.5% above $1.2 million of joint taxable income, plus your county rate of 2.25% to 3.30%, plus 2% of net capital gain if federal AGI exceeds $350,000. A couple in a 3.20% county selling for a large gain pays roughly 11.7% to Maryland.
What is the Maryland capital gains surtax?
A 2% additional tax on net capital gain included in Maryland income, enacted in 2025 for tax years beginning after December 31, 2024. It applies only when federal adjusted gross income exceeds $350,000, with the same line for every filing status, and it then covers the whole net gain. Several asset types are excluded.
Does Maryland have capital gains tax on a primary residence?
Only on gain above the federal Section 121 exclusion of $250,000, or $500,000 for qualifying joint filers, because Maryland starts from federal income. That remaining gain is taxed at regular state and county rates. The 2% surtax does not apply to a primary residence sold for less than $1.5 million, even when AGI exceeds $350,000.
How much is capital gains tax on real estate in Maryland?
For a resident, regular state rates up to 6.5%, county tax of 2.25% to 3.30%, and the 2% surtax if federal AGI tops $350,000, in 2026. Nonresidents face 8.75% withholding on net proceeds at settlement and file a return for the actual tax. Transfer and recordation taxes apply separately.
Does Maryland tax capital gains as ordinary income?
Yes, Maryland includes capital gains in ordinary taxable income at the same rates as wages, with no long-term discount. The only capital-gains-specific rule is the 2% surtax on net capital gain above the $350,000 federal AGI line, which raises the cost of large gains rather than lowering it.
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.

Prefer email? Request the analysis by email.

Book a callCall Hans