Contact Best Version Media

Send a message directly to the publisher

Tax on Stocks in Pennsylvania: What Investors Need to Know

Back to Articles
Share:
  • Copied!

If you own stocks in Pennsylvania, your tax when selling depends on cost basis, income, holding period, and whether the stocks are in a taxable or retirement account. Pennsylvania’s rules differ from federal rules.

How Are Stocks Taxed in Pennsylvania?

Selling stock for more than you paid creates a capital gain. Buying for $40,000 and selling for $100,000 creates a $60,000 gain, taxed by Pennsylvania at 3.07%, regardless of holding period.

$60,000 gain × 3.07% = $1,842 Pennsylvania tax

Your liability depends on your tax situation. Pennsylvania has no preferential long-term capital-gains rate.

How Does the Federal Government Tax Stock Gains?

Federally, gains on stocks held one year or less are taxed at ordinary income rates. Stocks held longer than one year may qualify for 2026 long-term capital-gains rates of 0%, 15%, or 20%, depending on income and filing status. Timing matters.

Higher-income investors may owe the 3.8% Net Investment Income Tax (NIIT) on capital gains and dividends when modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers, or $125,000 for married filing separately. Federal tax on a long-term gain can reach 23.8%, before state tax.

What About Dividends From Stocks?

Dividends can be taxable even if you do not sell stock. Qualified dividends may receive federal rates of 0%, 15%, or 20%; Pennsylvania taxes them at 3.07%.

What Happens If I Sell Stocks at a Loss?

Federally, capital losses offset gains. If losses exceed gains, you may deduct up to $3,000 of the excess against other income and carry additional losses forward. Pennsylvania disallows capital-loss carryforwards and does not follow federal wash-sale rules for state personal income tax. A transaction may therefore be treated differently on state and federal returns; coordinate tax-loss harvesting with your overall tax situation.

Are Stocks Taxed Differently in an IRA or 401(k)?

Yes. Selling stock inside a traditional IRA or 401(k) does not create capital-gains tax at the time of sale; taxation occurs when money is withdrawn, subject to account rules. Qualified Roth IRA withdrawals are tax-free. The same investment can have different tax consequences depending on where it is held, so investment management and tax planning should work together.

What About RSUs, Stock Options and ESPPs?

Restricted Stock Units (RSUs), Employee Stock Purchase Plans (ESPPs), and stock options can trigger taxes at multiple points. RSUs may be taxable when shares vest and again when sold. Treatment depends on plan rules, purchase price, and holding period, so understand the consequences before selling employer stock.

How Can Pennsylvania Investors Reduce Taxes on Stocks?

There is no magic strategy that eliminates taxes, but planning may improve after-tax results.

Consider the Tax Impact Before Selling

Before selling a large position, review your cost basis, potential gain, other gains and losses, federal tax bracket, possible NIIT, Pennsylvania tax, and investment objectives. Selling gradually may make sense in some cases; in others, paying tax is worthwhile if an investment no longer fits your plan.

Consider Tax-Loss Harvesting

Selling investments that have declined may create losses to offset gains. Coordinate the strategy carefully because state and federal rules differ.

Consider Gifting Appreciated Stock

Donating appreciated securities to a qualified charity may support a cause while avoiding capital-gains tax that could result from selling. Charitable-gifting rules apply, so consult your financial planner and tax professional.

The Biggest Mistake Pennsylvania Investors Make

A common mistake is focusing on returns without considering taxes. “I made 200% on this stock, so it was a great investment.” Maybe—but how much will you keep? Taxes, expenses, inflation, and risk affect results. The goal is not to avoid taxes at all costs, but to make informed decisions.

The Bottom Line on Tax on Stocks in Pennsylvania

Pennsylvania stock gains are subject to the state’s 3.07% personal income tax, with no separate long- term capital-gains rate. Federally, long-term gains may receive preferential rates, short-term gains are taxed as ordinary income, and higher-income investors may owe the 3.8% NIIT.

Ask: “When should I sell, how much, and what will the transaction mean for my financial plan?” If selling highly appreciated stock, receiving company stock, or changing your portfolio significantly, discuss taxes before trading.

At Menninger & Associates, we believe investment management and tax planning should work together to help you understand how taxes affect the wealth you keep.

The opinions voiced in this article are for general information only and are not intended to provide specific advice or recommendations. Consult an appropriate qualified professional before making decisions. Menninger & Associates Financial Planning and LPL Financial do not offer tax advice or services. Traditional IRA owners should consider tax consequences, withdrawal limitations, and future contribution income limits before a Roth IRA conversion. Any required minimum distribution (RMD) must be taken before converting in that year.

Securities and advisory services offered through LPL Financial, a Registered Investment Advisor, Member FINRA/SIPC.

Any content, resident submissions, guest columns, advertisements, and advertorials are not necessarily endorsed by or represent the views of Best Version Media LLC (BVM) or any municipality, homeowners associations, businesses, or organizations that this publication serves. BVM is not responsible for the reliability, suitability, or timeliness of any content submitted, inclusive of materials generated or composed through artificial intelligence (AI). All content submitted is done so at the sole discretion of the submitting party.

Contact Us