← All financial calculators
INVESTING

Weighted average share cost

Instructor subject match · Review pending

Combine two purchase lots into an average per-share cost.

Your scenario

Your results

Weighted average cost per unit$53.40
Total cost$8,010.00
Total units150.00 units

Display currency changes formatting only; it does not convert amounts.

Download this scenario as a PDF ↓
WORKED EXAMPLE

A scenario you can check.

The default example uses the inputs below. Monetary amounts use USD; exchange-rate quantities use the units shown. These public examples are readable without JavaScript.

Default inputs for Weighted average share cost
InputValue
Units in first lot100
First purchase price50
Units in second lot50
Second purchase price60
Total purchase fees10

Apply the formula below using these values; change the form inputs to explore another scenario.

Download the public example inputs and results (JSON)

How this calculator works

Average cost = (units A × price A + units B × price B + fees) / total units

Arithmetic position cost only. Tax-lot selection and legal tax basis rules are not modelled.

For monthly growth formulas: P is the initial balance, C is the month-end contribution, i is the effective monthly rate and n is the number of months. At zero interest the annuity factor is n. Values are calculated before display rounding.

These are educational scenarios. Entered rates and projections are assumptions, not forecasts or personal recommendations.

MULTI-MODEL PERSPECTIVES

32 model reviews of this calculator.

Our 30+ LLM network reviews the public formula and assumptions. These are saved explanations and cautions; models do not receive your inputs, perform the arithmetic, or certify correctness.

codegemma:2b · 2026-11-17

Weighted average share cost = (units A × price A + units B × price B + fees) / total units

codegemma:7b · 2026-11-17

> Arithmetic position cost only. Tax-lot selection and legal tax basis rules are not model

codellama:7b · 2026-11-17

Weighted average share cost formula assumes arithmetic position cost only and does not model tax-lot selection and legal

deepseek-coder:1.3b · 2026-11-17

id: average-cost, title: Weighted average share cost, formula: Average cost = (units A * price A + units B * price B +

dolphin-phi:2.7b · 2026-11-17

Average cost only considers arithmetic position cost, not tax-lot selection or legal tax basis rules.

falcon:7b · 2026-11-17

Average-cost = (units A × price A + units B × price B + fees) / total units

gemma3:1b · 2026-11-17

Weighted average cost – Arithmetic position only.

gemma:2b · 2026-11-17

id: average-cost

gemma:7b · 2026-11-17

Neglects tax-lot optimization and transaction costs.

llama2:7b · 2026-11-17

Average cost: Average cost = (units A × price A + units B × price B + fees) / total units

llama3.2:3b · 2026-11-17

Average cost formula only considers arithmetic position cost, excluding tax-lot selection and legal tax basis rules.

llava:7b · 2026-11-17

Weighted average share cost formula: Average cost = (units A × price A + units B × price B

mistral:7b · 2026-11-17

Weighted average share cost model only considers arithmetic position cost, not tax-lot selection or legal tax basis.

neural-chat:7b · 2026-11-17

Weighted average share cost considers arithmetic position cost, ignoring tax-lot selection and legal tax basis rules.

nous-hermes:7b · 2026-11-17

Average cost: Average cost = (units A × price A + units B × price B + fees) / total units

openchat:7b · 2026-11-17

Weighted average share cost does not model tax-lot selection and legal tax basis rules.

orca-mini:3b · 2026-11-17

Average cost = (units A × price A + units B × price B + fees) / total units

phi4-mini:latest · 2026-11-17

Does not account for tax basis or legal tax rules.

phi:2.7b · 2026-11-17

id_average_cost

qwen2.5:3b · 2026-11-17

Only models arithmetic position cost; does not account for tax-lot selection or legal tax basis rules.

qwen3.5:2b-q4_K_M · 2026-11-17

This formula ignores legal tax basis rules for determining actual asset cost.

qwen3.5:4b-q4_K_M · 2026-11-17

Calculation ignores tax-lot selection rules and legal basis requirements.

qwen:1.8b · 2026-11-17

Required recovery gain = Loss / (1 − loss)), Excluding cash flows, costs and taxes.

qwen:4b · 2026-11-17

Weighted average share cost calculation

solar:10.7b · 2026-11-17

Weighted average share cost calculates arithmetic position cost without tax-lot selection,

starcoder2:3b · 2026-11-17

Average cost = (units A × price A + units B × price B + fees) / total units

starling-lm:7b · 2026-11-17

limitations_and_interpretations_average_cost_sentence

tinyllama:1.1b · 2026-11-17

Weighted average share cost = (unit A ± price A) ÷ total units

vicuna:7b · 2026-11-17

Average cost calculates the weighted average share cost, considering arithmetic position costs only.

wizard-math:7b · 2026-11-17

Weighted average share cost: Average cost = (units A * price A + units B * price B + fees) / total units

yi:6b · 2026-11-17

Average cost: Arithmetic position cost only. Tax-lot selection and legal tax basis rules are not modelled.

zephyr:7b · 2026-11-17

Arithmetic position cost only.

Download model identities, opinions and public input provenance (JSON)

KEEP YOUR SCENARIO

Download your personal report.

Get a PDF with your inputs, results, formula and assumptions. Enter your details to save the request and download immediately. Your financial values stay in this browser. No email delivery is promised.

Continue learning

Explore the education library · Ask about the free introductory workshop

Financial concepts and context: Investor.gov: compound interest calculator · CFPB: mortgage payment components · Investor.gov: investment fees and expenses