Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Average Execution Price Calculator
Stock Market Calculators

Average Execution Price Calculator

Published onJuly 21, 2025 Updated onOctober 27, 2026 1:18 pm

Average execution price is the single price that describes an order filled in pieces. Brokers rarely fill a whole order at one quote: 100 shares print at $50.00, 200 more at $52.00 as the price moves, a final 100 at $49.00 on a dip. Your statement lists three prices, but your position has one cost, and it is the quantity-weighted average of the fills, $50.75 on the order used throughout this page.

The Average Execution Price Calculator below takes each fill as its own row, price, quantity, and optional commission, and returns that weighted average with the totals behind it: shares, trade value, cost basis including commissions, and a per-fill weight table. Add a current market price and it grades the entry with an unrealized P/L figure. It is the VWAP formula turned inward, from the whole market’s trades to yours.

Average Execution Price Calculator
Quantity-weighted average of your fills, with fees and P/L
Average execution price
$50.7500
Total quantity400
Total trade value$20,300.00
Total commissions$0.00
Total cost basis (incl. commissions)$20,300.00
Average cost per share incl. commissions$50.7500
Unrealized P/L+$660.00 (+3.25%)
TradePriceQtyValueWeight

Enter each partial fill as its own row. Rows without a quantity are ignored. The headline average excludes commissions by design; the cost basis rows include them.

Quick Answer

Quick answer: Fills of 100 shares at $50.00, 200 at $52.00, and 100 at $49.00 total $20,300 across 400 shares, giving an average execution price of $50.7500. Against a market price of $52.40, the position shows an unrealized gain of +$660.00 (+3.25%). The calculator above is pre-filled with these fills and returns exactly these figures.
$50.7500
Average execution price on the worked example
400
Total shares across three fills
$20,300
Total trade value before commissions
+$660.00
Unrealized P/L at a $52.40 market price
On this page
  • Quick Answer
  • How the weighting works, fill by fill
  • Worked example: a 400-share order filled in three pieces
  • The simple-average trap
  • Commissions, cost basis, and why they stay in separate rows
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How the weighting works, fill by fill

An order that fills in pieces never has one price; it has a price per piece. The execution average rebuilds the single price that would have cost the same in total.

Average execution price = sum of (fill price x fill quantity) divided by sum of quantities. Cost basis = total trade value + total commissions. Average cost including commissions = cost basis divided by total quantity. Unrealized P/L = (market price – average cost) x total quantity.

The quantity weighting is the entire method. A 200-share fill moves the average twice as much as a 100-share fill at the same distance, which is simply the statement that money, not fill count, is what an average price should describe. This is the same construction as volume-weighted average price, VWAP, restricted to your trades: the formula the market uses to grade a whole session is the formula that grades your order, share for share. Execution desks formalize the comparison as implementation shortfall, but the household version is this page: your weighted fill price against the session VWAP or against the quote at decision time.

Worked example: a 400-share order filled in three pieces

A buyer working a 400-share order through a rising morning gets filled in three pieces. The calculator is pre-filled with this order.

FillPriceQtyValueWeight
#1$50.00100$5,000.0024.6%
#2$52.00200$10,400.0051.2%
#3$49.00100$4,900.0024.1%
Average$50.7500400$20,300.00100%

The average sits above the midpoint of the price range for a reason the weight column makes obvious: over half the money filled at $52.00. The $49.00 fill, the one the buyer will remember fondly, was a quarter of the order and pulls the average down to $1.25 below the $52.00 anchor. Add a market price of $52.40 and the same run reports the position view: 400 shares carried at $50.75 are worth $660.00 more at the current quote, a gain of 3.25 percent before any selling costs.

The simple-average trap

Simple mean of fill prices: $50.33

  • Adds $50.00 + $52.00 + $49.00 and divides by 3 fills.
  • Treats a 100-share fill and a 200-share fill as equal votes.
  • Wrong whenever fills differ in size, which is nearly always.

Quantity-weighted average: $50.75

  • Weights each price by the shares actually filled at it.
  • Reproduces the true total: $50.75 x 400 = $20,300.
  • The only average that reconciles with your broker statement.

The reconciliation test settles any argument between the two: multiply the candidate average by total quantity, and only the weighted figure returns the amount that actually left the account. The 42-cent gap in this example is $168 of imaginary cheapness on a modest order; scaled to institutional size, the same trap misstates execution quality by five figures, which is why no execution report anywhere uses the simple mean.

Commissions, cost basis, and why they stay in separate rows

Two different questions share these fills. “How well was the order executed?” is answered by the pure average price, $50.7500, against a market benchmark. “What did the position cost?” is answered by the cost basis, which adds commissions: at $0 in the worked example the two coincide at $50.7500 per share, but a $9.95 ticket charge on each of the three fills would lift the average cost to $50.8246 while the execution average stayed at $50.7500. Blending the fee into the headline would punish the execution grade for the broker’s price list, so the calculator reports both and labels each. Brokers regulated under best-execution duties, such as FINRA Rule 5310 in the US, are judged on the same separation: price obtained versus costs charged.

The same discipline applies when the position is built in instalments on purpose. A dollar cost averaging calculator plans the schedule of purchases; this tool grades what the schedule actually filled at. On the exit side, a stock sell calculator works the proceeds of a sale, and short positions get their own entry math in the shorting profit calculator. Trend context for whether to keep working an order at all is a separate judgement, the one the average directional movement index calculator supports with its one-period DMI check.

What competing calculators miss

Search this topic and the results are VWAP calculators for market data: Pineify and Switch Markets both build VWAP from interval highs, lows, closes, and volumes on a chart. That is a benchmark construction, not your fills. None of the ranking tools accepts an actual fill list with per-fill commissions, none reconciles the average against the cash that left the account, and none grades the result against a current market price.

Winning move 1: your fills, not the tape. Rows take the prices and quantities from your own broker confirmations, so the average describes your execution rather than the session’s.

Winning move 2: fees separated, not blended. Execution price and average cost including commissions are both reported, each labelled, so execution quality and tax cost basis stop contaminating each other.

Winning move 3: the weight table. Each fill’s share of total value is printed with the result, which explains every surprising average on sight and mirrors how execution desks review a worked order.

Frequently asked questions

It is the quantity-weighted average price of your own fills: multiply each fill price by its quantity, add those values, and divide by the total quantity. Fills of 100 shares at $50.00, 200 at $52.00, and 100 at $49.00 give total value $20,300 over 400 shares, an average execution price of $50.75. It is the VWAP formula applied to your executions instead of the whole market.

Because fills are rarely the same size. The simple mean of $50.00, $52.00, and $49.00 is $50.33, but twice as many shares filled at $52.00 as at either other price, so the true average cost is $50.75. Averaging prices without quantities gives small fills the same vote as large ones and understates or overstates your real entry by exactly the imbalance.

It uses the VWAP formula, but on a different data set. Market VWAP weights every trade printed on the tape in a session, usually by typical price per interval. Your average execution price weights only your fills. Institutions compare the two after trading: a buy filled below the session VWAP is graded a good execution, a buy above it a poor one.

No, and this calculator keeps them separate on purpose. The headline average is the pure execution price, $50.7500 in the worked example. Commissions are added into the cost basis figure instead: total cost basis divided by total quantity gives your average cost per share including fees, which is the number tax and P/L calculations need. Mixing fees into the headline would blur execution quality with broker pricing.

Enter the current market price and the calculator compares it with your average cost including commissions: P/L equals (market price minus average cost) times total quantity, and the percentage is that difference divided by average cost. At a market price of $52.40 against a $50.75 average cost on 400 shares, the unrealized gain is +$660.00, or +3.25 percent.

A row with a quantity but no price stops the calculation with an error, because the fill cannot be valued. A row with no quantity is ignored completely, including any commission typed into it, so spare rows never distort the average. Negative prices, quantities, or commissions are rejected per row.

Yes. The weighted average does not care about direction: enter your sell fills and the result is your average exit price. Compare it with your average entry from a separate run of the same tool and the difference, times quantity, is the gross trading result before fees. Keep buy and sell fills in separate calculations so entry and exit averages never blend.

A fill’s weight is its share of the total value traded: the $52.00 fill in the worked example is $10,400 of $20,300, a weight of 51.2 percent. Weight explains why the average sits closer to $52.00 than to $49.00. When an average surprises you, the weight column is where the explanation lives, and it is also how execution desks see which fill dominated a worked order.

Add This Calculator to Your Website

Embed the Average Execution Price Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. Investopedia, “Volume-Weighted Average Price (VWAP): Definition and Uses” – the VWAP construction and its role as the execution benchmark this calculator personalizes to your fills. Investopedia: Volume-Weighted Average Price. Accessed October 2026.
  2. Corporate Finance Institute, “Volume Weighted Average Price (VWAP)” – VWAP formula, worked construction, and institutional execution benchmarking. CFI: Volume Weighted Average Price. Accessed October 2026.
  3. FINRA, “Rule 5310: Best Execution and Interpositioning” – the regulatory duty that separates price obtained from costs charged in execution quality. FINRA: Rule 5310 Best Execution. Accessed October 2026.
  4. StockCharts ChartSchool, “Volume Weighted Average Price (VWAP)” – chart construction of VWAP from typical price and volume, the market-data counterpart of the fills method. StockCharts: VWAP. Accessed October 2026.
  5. VWAP Australia, “VWAP Calculator for ASX Listed Companies” – documents the classic error of averaging daily VWAPs instead of weighting by volume, with a two-day numerical example. VWAP.com.au: VWAP Calculation. Accessed October 2026.
  6. Investopedia, “Cost Basis: What It Is and How to Calculate It” – cost basis including commissions, the figure this calculator reports alongside the pure execution price. Investopedia: Cost Basis. Accessed October 2026.

Related calculators

Stock Market CalculatorsBeta Calculator: Measure Stock Risk & Market ExposureBeta compresses a stock's relationship with the market into a single number.Stock Market CalculatorsStock Price Change CalculatorYou bought at $50 and the stock now trades at $65.Stock Market CalculatorsStock Margin CalculatorBuying stock on margin means the broker lends you part of the purchase price, and this calculator prices that...Stock Market Calculators Shares CalculatorHow many shares does your money buy? What will a block of shares cost once the broker takes its cut?Stock Market CalculatorsMarket Cap To Price CalculatorIf you know what a whole company is worth but not what one share should cost, the conversion is a single division: market capitalization divided by shares outstanding.Stock Market CalculatorsValue Of Stock Calculator Owning 100 shares means little until you price them.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search