Unit Price Calculation Methods
Unit price refers to the cost of one unit of a material. In Material Management, receipt transactions carry the unit price entered by the user, while the unit price of issue transactions (consumption, returns to vendor, scrap, sales issues, inventory shortages, outbound transfers and single-step transfers) is calculated automatically from the stock of the exit warehouse using the Material Cost Calculation Method selected in the settings.
The Material Cost Calculation Method is selected in the Material Transactions panel of the Material Management > Definitions > Settings page (see Material Infrastructure Definitions). The default is Last Purchase Cost. Once any material transaction exists in the system, the method can no longer be changed.
For every material and warehouse the system keeps the Last Cost, Average Cost (simple average), Weighted Average Cost and Moving Weighted Average Cost up to date as receipt transactions are closed. These values are visible on the material's summary pages. Before any calculation:
- Quantities and unit prices are converted to the material's base unit using the unit conversions.
- Unit prices are converted to the material's Tracking Currency Unit at the exchange rate of the transaction date.
- When the setting In material consumption, additional costs incurred during stock entry will be included in the material unit price is enabled, the extra cost distributed to each receipt row is added to its unit price.
Which receipt kinds update which values is listed in the summary table of Transaction Types.
The following methods can be selected:
Last Purchase Cost
The unit cost of the most recent receipt that updates the last cost (purchase receipts, receipts from blocked stock, other material receipts and stock openings) is used for issue transactions.
Simple Average Cost
The average of the unit prices of the closed receipt transactions of the material in the warehouse during the current calendar year. Every receipt counts once, regardless of its quantity.
Simple Average Cost = Sum of Unit Prices / Number of Receipt Rows
Example
The material receipt transactions are as follows:
| Date | Quantity | Unit Price | Total Amount |
|---|---|---|---|
| February 1 | 3 Units | 700 | 2,100 |
| March 2 | 4 Units | 600 | 2,400 |
| April 3 | 8 Units | 500 | 4,000 |
Using the Simple Average Cost method:
(700 + 600 + 500) / 3 = 600
Weighted Average Cost
This method considers the quantities of the receipts: the total amount of all closed receipt transactions of the material in the warehouse is divided by their total quantity.
Weighted Average Cost = Sum of Total Amounts / Sum of Quantities
Example
With the same receipts as above:
Weighted Average Cost = (2,100 + 2,400 + 4,000) / (3 + 4 + 8) = 8,500 / 15 = 566.67
Moving Weighted Average Cost
In this method, a new average cost is calculated after every receipt from the stock on hand and the received quantity. Issues use the most recently calculated average and do not change it.
New Average = ((Current Average × Available Quantity) + (Receipt Unit Price × Receipt Quantity)) / (Available Quantity + Receipt Quantity)
Example
| Date | Description | Incoming Qty | Incoming Unit Price | Incoming Total | Outgoing Qty | Outgoing Unit Price | Outgoing Total | Remaining Qty | Remaining Unit Price | Remaining Total |
|---|---|---|---|---|---|---|---|---|---|---|
| - | Stock Balance | - | - | - | - | - | - | 100 | 100.00 | 10,000 |
| February 1 | Inflow | 400 | 120 | 48,000 | - | - | - | 500 | 116.00 | 58,000 |
| March 3 | Outflow | - | - | - | 300 | 116.00 | 34,800 | 200 | 116.00 | 23,200 |
| May 5 | Inflow | 200 | 125 | 25,000 | - | - | - | 400 | 120.50 | 48,200 |
| June 7 | Inflow | 100 | 130 | 13,000 | - | - | - | 500 | 122.40 | 61,200 |
| September 9 | Outflow | - | - | - | 400 | 122.40 | 48,960 | 100 | 122.40 | 12,240 |
| October 11 | Inflow | 200 | 135 | 27,000 | - | - | - | 300 | 130.80 | 39,240 |
- Before the first outgoing transaction, the stock is 500 Units with a total cost of 58,000, so the unit cost is 58,000 / 500 = 116.00.
- The outgoing transaction of 300 Units on March 3 is valued at 116.00.
- After the receipt of 200 Units on May 5, the stock is 400 Units with a total cost of 48,200: 48,200 / 400 = 120.50.
- After the receipt of 100 Units on June 7, the stock is 500 Units with a total cost of 61,200: 61,200 / 500 = 122.40.
- The outgoing transaction of 400 Units on September 9 is valued at 122.40 (48,960).
- After the receipt of 200 Units on October 11, the stock is 300 Units with a total cost of 39,240: 39,240 / 300 = 130.80.
FIFO (First In, First Out)
This method assumes materials are used in the order they are received. Each receipt in the warehouse forms a cost layer; an issue consumes the oldest remaining layers first, and its unit price is the total cost of the consumed layers divided by the issued quantity. The layers used by each issue are recorded, so a later Return from work order puts the returned quantity back into the layers it came from. If the remaining layers do not cover the issued quantity, the transaction cannot be closed.
Example:
| Date | Material Transaction Type | Quantity | Unit Price | Amount |
|---|---|---|---|---|
| February 1 | Opening Stock | 200 Units | 120.00 | 24,000.00 |
| March 3 | Inflow | 100 Units | 100.00 | 10,000.00 |
| May 5 | Outflow | 250 Units | 116.00 | 29,000.00 |
| June 7 | Inflow | 300 Units | 150.00 | 45,000.00 |
| September 9 | Outflow | 200 Units | 137.50 | 27,500.00 |
- The first outflow of 250 units uses 200 units from the opening stock on February 1 and 50 units from the inflow on March 3.
- The Outflow Cost on May 5 is (200 × 120) + (50 × 100) = 29,000, so the Unit Cost is 29,000 / 250 = 116.00.
- Before the next outflow, 50 units remain from March 3 and 300 units from June 7.
- The second outflow of 200 units uses 50 units from March 3 and 150 units from June 7.
- The Outflow Cost on September 9 is (50 × 100) + (150 × 150) = 27,500, so the Unit Cost is 27,500 / 200 = 137.50.
LIFO (Last In, First Out)
This method assumes materials are consumed starting from the most recent receipts. An issue consumes the newest remaining layers first.
Example: The same receipts as in the FIFO example:
| Date | Material Transaction Type | Quantity | Unit Price | Amount |
|---|---|---|---|---|
| February 1 | Opening Stock | 200 Units | 120.00 | 24,000.00 |
| March 3 | Inflow | 100 Units | 100.00 | 10,000.00 |
| May 5 | Outflow | 250 Units | 112.00 | 28,000.00 |
| June 7 | Inflow | 300 Units | 150.00 | 45,000.00 |
| September 9 | Outflow | 200 Units | 150.00 | 30,000.00 |
- The first outflow of 250 units uses 100 units from the inflow on March 3 and 150 units from the opening stock on February 1.
- The Outflow Cost on May 5 is (100 × 100) + (150 × 120) = 28,000, so the Unit Cost is 28,000 / 250 = 112.00.
- Before the next outflow, 50 units remain from February 1 and 300 units from June 7.
- The second outflow of 200 units uses 200 units from the inflow on June 7.
- The Outflow Cost on September 9 is 200 × 150 = 30,000, so the Unit Cost is 30,000 / 200 = 150.00.