Average Cost Basis

Enter Total bought, Total units and Units sold to get Cost of sold units — or leave any field blank to solve for it.

The result is —

Inputs

Results

Cost of sold units ($) —

Fill in enough known values and the rest are solved automatically.

Quick answer: With Total bought = 40,000 $, Total units = 2.5 and Units sold = 1, Cost of sold units is 16,000 $.

How to use this calculator

  1. Enter Total bought ($)。
  2. Enter Total units。
  3. Enter Units sold。

Leave any field blank and the calculator solves for it from the remaining values — every quantity is reversible.

The calculator then returns: Cost of sold units。

What is it

Average Cost Basis — Enter Total bought, Total units and Units sold to get Cost of sold units — or leave any field blank to solve for it. Tax calculators apply rates, deductions and depreciation rules to your figures to estimate tax due or after-tax outcomes. The core question it answers is: Cost of sold units. With Total bought = 40,000 $, Total units = 2.5 and Units sold = 1, Cost of sold units is 16,000 $.

Formula

VariableInputsUnit
fillAmountsTotal bought$
fillUnitsTotal units
soldUnitsUnits sold
avgCostCost of sold units$
Cost of sold unitsfillAmounts / fillUnits * soldUnits

The relationship is solved in every direction, so any one unknown field can be derived.

Worked example

Using the default inputs:

Formula used: fillAmounts / fillUnits * soldUnits

Answer:

Example 1 (default inputs):Suppose Total bought = 40,000 $, Total units = 2.5, Units sold = 1; then giving Cost of sold units = 16,000 $.

Example 2 (one input changed):If you change Total bought to 60,000,giving Cost of sold units = 24,000 $.

Additional information

Assumptions and limitations

Back to category:Tax

FAQ

How accurate is this calculator?

The number is the exact solution of the standard formula for your inputs, with no error beyond rounding. How well it matches reality depends on the model's assumptions. Tax systems are highly local and change often: allowances, brackets, social contributions and surtaxes differ by jurisdiction. These calculators return a mechanical result from your inputs — for filings, rely on your tax authority and a professional.

Can I calculate it backwards?

Yes. This is a multi-directional calculator: fill in every field except one, and the blank one — whether Cost of sold units — is solved automatically.

When should I not use it?

using it as the sole basis for a decision, or for official filings, contract pricing and legal documents — those need a full model with your actual clauses and local rules.

What is Average Cost Basis?

With Total bought = 40,000 $, Total units = 2.5 and Units sold = 1, Cost of sold units is 16,000 $.

How do I use the Average Cost Basis?

Enter values for Total bought, Total units, Units sold; the tool instantly computes Cost of sold units.

When should I use the Average Cost Basis?

Enter Total bought, Total units and Units sold to get Cost of sold units — or leave any field blank to solve for it. Use it whenever you need a quick estimate for planning or comparing options. Results are for reference only.