← Back to tutorials

How to calculate average price after partial fills

Use quantity-weighted fills to calculate executed value and average price, then follow a hypothetical partial-fill and cancellation example before fees.

Worked examplesContent updated: 2026-10-05

The short answer

Average execution price is quantity-weighted: add the price × quantity of each actual fill, then divide by the total filled quantity. Do not divide by the original requested quantity or take an unweighted average of different-sized fills. With no fills there is no average execution price; a zero price would be misleading.

Executed value before fees = sum of (fill price × fill quantity)
Total filled quantity = sum of fill quantities
Average execution price = executed value ÷ total filled quantity
Use fills from this one order, in consistent units. An unfilled remainder is not part of the numerator or denominator.

This example concerns direct spot-order fill records, not portfolio NAV, investment returns or the cost of a position across multiple orders. All quantities and prices are hypothetical. The platform currently supports invitation-only US equity and crypto spot trading; A-shares are quote-only and tokenized RWA is not live. Account and instrument rules still apply.

Worked example: 3 of 5 units have filled

Imagine an order for 5 units of an unnamed crypto instrument. The recorded fills are 1 unit at 100 and 2 units at 102 quote units per asset unit. Two units remain unfilled. These teaching values exclude all fees and taxes and are not actual platform activity.

FillQuantityPriceExecuted value before fees
First1100100
Second2102204
Total filled3—304
The price rows have different quantities, so they must carry different weights.
Executed value before fees = (1 × 100) + (2 × 102) = 304
Filled quantity = 1 + 2 = 3
Average execution price = 304 ÷ 3 = 101.333… ≈ 101.33
Unfilled quantity = 5 − 3 = 2
Two-decimal rounding is for the teaching display only, not a claim about a channel's calculation or precision.
  • (100 + 102) ÷ 2 = 101 is wrong here: it gives equal weight to fills of different sizes.
  • 304 ÷ 5 = 60.8 is wrong: the requested 5 units include 2 units that have not executed.
  • An average of 101.33 does not mean there was a fill at 101.33; the recorded fill prices are still 100 and 102.

A cancellation request can race with another fill

The platform distinguishes a cancellation request from confirmed cancellation. Another fill may arrive while the request is still in flight. Cancelling the remainder does not undo existing fills.

Teaching timelineCumulative filled quantityValue before feesAverage priceWhat remains
Order submitted00—5 units unfilled
First fill: 1 at 1001100100.004 units unfilled
Second fill: 2 at 1023304101.332 units unfilled
Cancellation requested; no new fill yet3304101.332 units await an outcome
Another fill arrives: 1 at 1034407101.751 unit unfilled
Cancellation confirmed for the remainder4407101.751 unit cancelled, not filled
This is one possible teaching sequence, not a promise that any real order follows this timeline.
Value after the extra fill = 304 + (1 × 103) = 407
Filled quantity after the extra fill = 3 + 1 = 4
New average execution price = 407 ÷ 4 = 101.75
The average changes because a new fill arrived, not because cancellation was requested or confirmed.

Average price is not your complete cost or P&L

This calculation covers execution value before fees. Fees, taxes where applicable, previous position holdings and later trades are separate inputs when determining account balances, position cost or P&L. It does not calculate profit, a withdrawable amount or a portfolio valuation. Check the actual fill and fee records rather than treating the rounded example as an account balance.

Where to verify your order

  • First check cumulative filled quantity and the current status on the orders page. Calculating average execution price requires this order's individual fill prices and quantities; do not substitute the submitted price for actual fill prices. If the page does not provide the details, contact support to verify them.
  • Use cumulative filled quantity, prices and the current status; an earlier snapshot may be incomplete if another fill has since arrived.
  • For cancelling, partially filled or cancelled states, use the existing status and cancellation explanations linked below. A confirmed cancellation applies to the unfilled remainder.
  • Use the fee schedule and actual record for charges. Do not infer a fixed rate from this fee-free illustration.

Investor.gov explains why execution can differ from a displayed quote. The platform's help answers are the source for its fill and cancellation states; the arithmetic here is a hypothetical worked example. This article is educational and does not recommend an asset, order or investment strategy.

Public information and related rules

Review the public information below for related rules and risks. Current rates, available features and limits are shown on the relevant pages and confirmation screens.

Related reading