The Texation Calculator

Selling investments in Pennsylvania: federal and state capital gains

Published · 2 min read

How federal and Pennsylvania state taxes apply to capital gains, with a worked example.

Key facts

PlacePennsylvania
Sales taxState sales tax
Standard rate on file6%
Multiply net price by1.06
Tax share of a gross price5.66%
CurrencyUSD

Federal treatment

Long-term gains on assets held more than a year are taxed at 0%, 15% or 20% federally depending on income, plus a possible 3.8% net investment income tax. Short-term gains are taxed as ordinary income.

Worked example

Here is the calculation with sample figures. Change any number in the Pennsylvania Capital Gains Tax Calculator to run your own.

Worked example: Pennsylvania Capital Gains Tax Calculator
Purchase price$15,000.00
Sale price$22,500.00
Costs and fees$300.00
Tax rate (%)20%
Taxable gain$7,200.00
Tax$1,440.00
Net amount$20,760.00

State treatment

Most states tax capital gains as regular income. Check whether Pennsylvania offers any exclusion; the calculator lets you combine federal and state rates into one figure.

Quick reference at 6%

Common amounts in Pennsylvania, worked both ways: adding tax to a net price, and extracting it from a price that already includes tax.

AmountTax on net amountGross (net + tax)Net if amount includes tax
$10.00$0.60$10.60$9.43
$50.00$3.00$53.00$47.17
$100.00$6.00$106.00$94.34
$250.00$15.00$265.00$235.85
$500.00$30.00$530.00$471.70
$1,000.00$60.00$1,060.00$943.40
$5,000.00$300.00$5,300.00$4,716.98

How Pennsylvania compares

Standard rates on file for other states. A difference of a few points matters most on high-value purchases and on cross-border sales.

PlaceRate on fileCompared with 6%
Ohio5.75%lower
Oklahoma4.5%lower
Oregon0%lower
Rhode Island7%higher
South Carolina6%same
South Dakota4.2%lower

Using the calculator step by step

  1. Open the Pennsylvania Capital Gains Tax Calculator.
  2. Type your figures into the numbered lines. Results update as you type.
  3. Check the rate field. It starts at 6%; change it if a reduced rate, local surcharge or exemption applies to you.
  4. Read the result on the receipt panel, and use the formula shown under it if you need to explain the figure to a client or colleague.

Key terms

Net amount
The amount before tax is added. On an invoice it is the figure the tax is calculated on.
Exempt supply
A sale that falls outside the tax entirely. No tax is charged and input tax usually cannot be reclaimed.
Withholding
Tax deducted at source, by an employer or payer, before the money reaches you.
Reduced rate
A lower rate that applies to specific categories, often essentials such as food, medicine or books.
Deduction
An amount subtracted from taxable income. It saves tax equal to the deduction times your marginal rate.

Common mistakes to avoid

Run your own numbers. The Pennsylvania Capital Gains Tax Calculator updates as you type and shows the formula it uses.

Frequently asked questions

What is the federal long-term capital gains rate?

0%, 15% or 20% depending on taxable income, plus possibly 3.8% NIIT.

Does Pennsylvania tax capital gains?

Many states do as ordinary income; confirm current Pennsylvania rules.

This article is general information for planning, not tax advice. Rates and rules change; confirm with your tax authority or a qualified adviser.

Calculators for this topic

Related reading