How standard cost valuation works
Version 17
This feature is in ERPNext version 17, which is in development. ERPNext version 16 does not have it.
Standard cost is a valuation method that values every unit of an item at one fixed rate that you set: the standard valuation rate. With FIFO or moving average, the value of stock changes with every receipt. With standard cost, the rate changes only when you publish a new one.
The difference between what you pay and the standard rate does not go into stock value. ERPNext books it to a variance account, where you can see it.
Why use standard cost
| Concern | FIFO or moving average | Standard cost |
|---|---|---|
| Stock value | Changes with every receipt and revaluation | Fixed until you publish a new rate |
| Backdated transactions | Recalculate every later entry with a repost | Shift later quantities only; no repost |
| Speed of corrections | Slow for items with long, busy ledgers | Fast; the rate on each date is known |
| Cost of goods sold | Varies by lot or average | Always the standard rate |
| Price differences | Hidden in the stock value | Shown in a Purchase Price Variance account |
| Best for | Trading, where the actual cost of each lot matters | Manufacturing and high-volume operations that want predictable product cost |
The main benefit is speed with backdated entries. With FIFO or moving average, a transaction posted in the past changes the value of every later transaction, so ERPNext reposts all of them. With standard cost, the value of each Stock Ledger Entry is its quantity × the standard rate on its date. A backdated entry only shifts the running quantity of later entries, and their values follow from the known rate. No repost runs.
Standard cost is less suitable for pure trading, where the actual landed cost of each lot is the number that matters.
The Item Standard Cost document
You publish a standard rate with an Item Standard Cost document. It has:
| Field | Description |
|---|---|
| Item | A stock item whose valuation method is Standard Cost. |
| Company | The rate applies to one company. |
| Standard Valuation Rate | The fixed rate. It must be greater than zero. |
| Effective Date | The date from which the rate applies. It cannot be in the future. |
| Revaluation Entry | The Stock Reconciliation that revalued stock to this rate. ERPNext fills it in. |
Each item and company has a timeline of Item Standard Cost documents, with effective dates that strictly increase. The rate on a date is the rate of the latest document whose effective date is on or before that date.
Item A, Company X
ISC-2025-0001 Effective 01-01-2025 Rate 100 (used from 01-01-2025)
ISC-2026-0001 Effective 01-01-2026 Rate 130 (used from 01-01-2026)How transactions are valued
Every Stock Ledger Entry of a standard cost item uses the standard rate on its posting date, whatever the rate on the document. If you receive 10 units billed at 150 and the standard rate is 100, the stock value goes up by 1,000, not 1,500.
Purchase price variance
On a Purchase Receipt, or a Purchase Invoice with Update Stock, ERPNext books the difference between the purchase rate and the standard rate to a Purchase Price Variance Account. For example, you receive 1 unit at 200, and the standard rate is 130:
| Account | Debit | Credit |
|---|---|---|
| Stock (warehouse account) | 130 | |
| Purchase Price Variance | 70 | |
| Stock Received But Not Billed | 200 |
Manufacturing variance
In a Manufacture or Repack Stock Entry, the finished good comes in at its own standard rate, not at the cost of what you consumed. ERPNext books the difference between the consumed cost (raw materials plus additional costs) and the standard value of the finished good to a Manufacturing Variance Account.
For example, you consume raw materials worth 250 to make 1 unit with a standard rate of 200. The finished good comes in at 200, and ERPNext books an unfavourable variance of 50. If the raw materials cost 180, the variance is 20 favourable, a credit to the account.
FIFO and moving average items absorb their actual cost, so they have no variance.
Revaluation when the rate changes
When you submit a new Item Standard Cost, ERPNext creates and submits a Stock Reconciliation that revalues the stock in hand in every warehouse from the old rate to the new rate. It books the gain or loss to the Stock Adjustment Account, and links the reconciliation in Revaluation Entry. Serial and batch items are revalued too.
Rules that keep the ledger consistent
- No backdating before the latest rate. You cannot post a stock transaction of the item dated before the effective date of its latest Item Standard Cost. The revaluation recorded the quantity on that date, and a backdated entry would make it wrong. ERPNext stops the entry with the title "Backdated Entry Not Allowed". Post the entry on or after the effective date instead. Backdated entries on or after the latest effective date are allowed.
- Correct forward, not backward. Do not cancel old stock transactions to fix the past. Record a new adjustment, such as a Stock Entry or a Stock Reconciliation, dated on or after the latest effective date.
- Cancelling an Item Standard Cost. You can cancel it only when no stock transaction exists for the item on or after its effective date, other than its own revaluation. To change a rate, submit a new Item Standard Cost instead.
- No retroactive switch. You cannot change the valuation method of an item to or from Standard Cost after it has stock transactions.
Good practice
- Set the variance accounts and the Stock Adjustment Account before the first transaction, so that no receipt is stopped for a missing account.
- Review the Purchase Price Variance account regularly. A large balance means that the standard rate no longer matches what you pay. Publish a new rate.
- Plan rate changes for a clean cut-over date, such as the start of a period, after all entries of the previous period are in.
- Use the item-level variance accounts only when an item needs its variance apart from the company default.