How to use this calculator
Calculate a fee-inclusive weighted average entry price across share purchases; this is not a tax-basis method.
- Enter Lot 1 shares, Lot 1 price per share ($), Lot 1 purchase fee ($), Lot 2 shares, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How this calculation works
When purchases differ in size and price, averaging the quoted prices directly gives the wrong result. Add the cost of each purchase lot, include its entered transaction fee, and divide total acquisition cost by total shares.
Inputs and units
shares1— Lot 1 shares- Number of shares in the first purchase lot.
price1— Lot 1 price per share ($)- Purchase price per share for lot 1.
fee1— Lot 1 purchase fee ($)- Commission or fee paid for lot 1.
shares2— Lot 2 shares- Number of shares in the second purchase lot; enter zero if unused.
price2— Lot 2 price per share ($)- Purchase price per share for lot 2.
fee2— Lot 2 purchase fee ($)- Commission or fee paid for lot 2.
shares3— Lot 3 shares- Number of shares in the third purchase lot; enter zero if unused.
price3— Lot 3 price per share ($)- Purchase price per share for lot 3.
fee3— Lot 3 purchase fee ($)- Commission or fee paid for lot 3.
Formula
Average purchase price = Σᵢ (sharesᵢ × priceᵢ + feeᵢ) ÷ Σᵢ sharesᵢ.
Method
For each included lot, purchase cost equals shares multiplied by price per share plus the lot’s fee. The weighted average uses total shares as the denominator. Lots with zero shares are ignored.
Worked example
Buying 10 shares at $100 with a $1 fee, 5 at $120 with a $1 fee, and 10 at $80 costs $2,402 for 25 shares, or $96.08 per share on average.
Assumptions and limits
This is a simple acquisition-cost average for the entered lots, not a determination of tax basis or reportable gain. Corporate actions, reinvested distributions, specific share identification, fund rules, and account records can change tax treatment. Keep broker records and consult official tax guidance.
Frequently asked questions
How is the average weighted?
Each lot contributes its share count times its price plus the entered purchase fee; total cost is divided by total shares.
Is this my tax cost basis?
Not necessarily. Tax basis and share-identification rules depend on account, security, and transaction history. This simple average is for planning and should not replace tax records.
Are purchase fees included?
Yes. The entered fee for each lot is added to that lot’s purchase cost before calculating the average.
What if one lot was not used?
Enter zero shares for that lot. It will not affect the totals.
How do I use the Average Share Purchase Price Calculator?
Enter Lot 1 shares, Lot 1 price per share ($), Lot 1 purchase fee ($), Lot 2 shares, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
Reference: IRS stock-basis FAQ on purchase costs, fees, and limits on average basis per share. See our calculation methodology.