Skip to content
UniKit

Average cost after adding

Calculate the weighted average cost after adding a position; all amounts use the same currency unit and quantities must be positive integers.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Position JSON

Calculation

Amounts use one currency unit and quantities use units.

Enter position JSON to calculate

: 0 · : 0 · : 0 · : 0

What this tool does

  • Estimate the average cost after adding shares or units.
  • Compare how an added price and quantity change cost basis.

Example

Input

{"currentPrice":100,"currentQuantity":10,"addPrice":80,"addQuantity":10}

Output

Current average / 原持仓均价: 100.00
Added position / 补仓金额: 800.00
Final average / 补仓后均价: 90.00
Total quantity / 总数量: 20
Total cost / 总成本: 1800.00

Prices are currency per unit and quantities are units; fees are excluded from the weighted average.

Frequently asked questions

How is the new average calculated?

The combined cost is divided by the combined quantity. Fees and taxes are excluded.

Can quantity be fractional?

No. Quantities must be positive integers for this tool.

Can a price be zero?

No. Each price must be positive.

Keywords:补仓均价摊薄成本加仓average costposition sizingfinance

Related tools