Browse the manualInventory

Recalculate item costs

Use Recalculate Cost to bring item costs and the cost recorded on sales, transfers and write-offs up to date for a period, for example after entering a late purchase or changing a cost. Explains what the recalculation changes for each cost method and how to fix costs that show 0 or look wrong.

Open in MitoniUpdated 7 October 2026
On this page

Every sale, transfer and write-off stores the item's cost at the moment it is saved. When a cost changes later, for example because a purchase was entered late, those documents keep the old cost. Recalculate Cost goes back over a period and updates them.

When to recalculate item costs

Run a recalculation after any of these:

  • You enter or edit a purchase, opening stock or additional cost dated before sales you already recorded.
  • You change an item's manual cost with an effective date in the past.
  • Sales or write-offs show a cost of 0 or a cost that looks wrong.
  • Profit in reports doesn't match what you expect for a period.

Saving a purchase updates the item's cost from the purchase date on, and with Average Purchase Cost or Last Purchase Cost it also updates productions and disassemblies that use the item. It doesn't change the cost on sales, returns, transfers and write-offs already saved. Only Recalculate Cost does that.

Before you start

Important: A recalculation can change historical item costs, stock values and the profit shown in reports and on past sales. Check reports you have already shared, for example a closed month, before running it over that period.

Run a recalculation

The Recalculate Item Costs window with the Period fields, the All Items or Selected Items choice and the Recalculate button highlighted and numbered to match the steps.

  1. Go to Inventory → Recalculate Cost. The Recalculate Item Costs window opens.
  2. Set the Period: pick the start and end dates, or choose a preset. The period starts as today. Start it on the date of the earliest purchase, opening stock or cost change that matters, not on the date of the first sale.
  3. Under Items, choose All Items, or Selected Items and pick the items and ingredients to recalculate. Selected Items with nothing picked recalculates all items.
  4. Select Recalculate.

While it runs, Mitoni shows how many purchase operations (or sale operations, with Manual Cost) it is processing, and the window can't be closed. When it finishes, you see Recalculation Complete and "Recalculated Costs for N items". Select Close. The window remembers the period and items you chose the next time you open it.

Which items a recalculation includes

  • Selected Items: every item you picked is recalculated.
  • All Items with Average Purchase Cost or Last Purchase Cost: only items that have a purchase, opening stock, production output, or an additional cost on a purchase dated in the period. Items that only have sales in the period are skipped.
  • With Manual Cost: every sale, return, transfer and write-off in the period gets the cost that was valid on its date, for items that have a cost.

What a recalculation changes for each cost method

What happens depends on Item Cost Calculation Method in Settings → Advanced Settings.

Method What Recalculate Cost does in the period
Manual Cost Re-applies the manual cost that was valid on each document's date to the sales, sales returns, purchase returns, transfers and write-offs. Manual costs themselves aren't changed. Productions and disassemblies aren't touched.
Average Purchase Cost Rebuilds the item's cost from the purchases, opening stock and additional costs, then updates the cost on the sales, returns, transfers, write-offs, productions and disassemblies after them.
Last Purchase Cost The same as Average Purchase Cost, but each purchase sets the cost to its own unit price instead of an average. Additional costs are still spread over all stock on hand.

With Average Purchase Cost and Last Purchase Cost, items made from the recalculated items are recalculated too. Recalculating coffee beans also updates the cost of a cold brew produced from them.

For how each method works out the cost, see How item cost is calculated.

Changing the cost method

When you switch Item Cost Calculation Method to Average Purchase Cost or Last Purchase Cost, including a switch between those two, Mitoni recalculates the costs of all items over your whole history straight away, sales included. Switching to Manual Cost keeps the current costs as they are, and you maintain them by hand from then on.

New companies start with Average Purchase Cost for a retail business, and Last Purchase Cost for a fast food or restaurant business.

Troubleshooting cost recalculation

Sales show a cost of 0 and you use Manual Cost. The item had no cost on the sale date. Set the item's cost with Set Cost and an Effective Date/Time before the first sale, then recalculate the period.

Sales show a cost of 0 and you use Average Purchase Cost. The item was sold before any purchase or opening stock was recorded for it. Enter the purchase or opening stock with the right date. Then recalculate with the period starting on that purchase or opening stock date, or choose Selected Items and pick the item. With All Items, a period that starts after the purchase skips the item.

Sales made before a late purchase still show the old cost. Saving a purchase doesn't update sales already recorded. Recalculate from the purchase date.

An item wasn't recalculated. With All Items, items without a purchase, opening stock, production or additional cost in the period are skipped. Start the period earlier, or use Selected Items.

The cost of a produced item is wrong. The ingredients' costs changed after the production was saved. With Average Purchase Cost or Last Purchase Cost, recalculate the ingredients for the period. Produced items are included.

After stock went below zero, the next purchase set the cost to that purchase's price. With Average Purchase Cost, if the item's stock went below zero at any point since the previous purchase or opening stock, the next purchase, opening stock, production or disassembly isn't averaged with the old cost. It sets the cost to its own unit cost. Record purchases before selling the stock to keep a true average.

"Period is required." Set both a start and an end date.

"Period start must be before period end." The start date is after the end date. Swap them.

The recalculation stopped with an error. The recalculation didn't finish and nothing was changed. Read the message, try a shorter period or fewer items, and try again.

The window can't be closed. It can't be closed while a recalculation is running. Wait for it to finish.