COGS (Cost of Goods Sold)

GlossaryUpdated December 4, 2026 · Reviewed by Peasy Team

COGS (cost of goods sold) is the total cost of the inventory you've sold during a period. In Peasy, that cost comes from the purchase, lot, and production data already captured in the app.

How It Works in Peasy

  • When you receive a purchase order, Peasy stores the unit cost for that inventory
  • Freight costs from bills are assigned to received items from the planned quantities of the bill-covered PO lines and shown in landed cost. By default, the recorded freight is part of the received lot's cost: its inventory value, the saved cost of new work order inputs that name the lot, and the COGS of new sales from it. You can change that preference with Include receipt freight in inventory cost in Configure > Business.
  • For lot-tracked items, the assigned lot carries the cost basis forward so the correct lot cost can be used
  • When you complete a work order, Peasy records the production cost for the finished output and updates the template's unit cost
  • Inventory history and related cost views show COGS when Peasy has the needed receiving, lot, or production-cost data
  • Manufactured items can use template and production costs in addition to received purchase costs
  • Sales-line COGS stays in sync with its source automatically: when you correct a receipt's cost, a co-manufacturer's invoice arrives to replace an expected charge, or a completed run's ingredients or quantity change, Peasy refreshes the COGS on sales lines sold from that lot — including lines already invoiced. So if a COGS figure changed since you last looked, a source cost was corrected; the number wasn't recalculated arbitrarily. If a correction leaves the cost genuinely unknown, the line shows no COGS rather than a stale or zero value

Adding Costs Beyond Raw Materials

The unit and batch cost on a template doesn't have to stop at raw materials. You can roll additional costs into your finished-goods cost in two ways:

  • Co-manufacturer or co-packer labor — Use the Co-Manufacturer Cost Basis field on the template to capture what a third-party charges per unit or per batch. Include in COGS turns on automatically when you select Made by a co-manufacturer?. Turn it off to exclude that cost from unit and batch cost. See Co-Manufacturer Cost Basis.
  • Inbound freight — Freight from bills is allocated to received lots. When the business setting is on, the lot's cost includes its allocated freight, so a work order input that names one of those lots carries it into the finished goods. An input with no lot is costed at the item's buy price, without freight. The item-level Landed Cost estimate in Buy > Items to buy is separate and does not feed this setting.
  • Packaging and overhead — Packaging components are just regular buy items added as inputs on your template. If you want to track an overhead rate, create a "buy item" that represents it (e.g., "Production overhead per batch") and add it to the template with the appropriate quantity.

Where to See Cost Roll-Ups

  • Template detail page — The unit cost and batch cost shown reflect current ingredient costs plus any included co-manufacturer cost.

  • Item detail panel — Shows current cost basis and the most recent cost from receiving or production. The Avg Cost field shows the average cost across the active buy and make variants in the item's family, shown in the family's selected Inventory Unit (so if you've picked a display unit like "case", the figure scales to that unit). It's informational — sales-order COGS still comes from the receiving and production data captured for the specific lot or work order.

  • Inventory History — Records the cost recorded at the moment of each transaction (receive, work order completion, adjustment), so you can audit how cost changed over time.

  • Cost of Goods (COGS) — On Inventory > Logs, open Reports and choose the Cost of Goods (COGS) card. Pick the period you're closing and download a CSV of what you sold and what it cost, with revenue and COGS posted on the invoice date so they land in the same period your accounting already uses. It covers issued Peasy invoices, committed orders you invoiced manually elsewhere, and Shopify orders from a store on the updated Shopify order handling (as Shopify order rows, on the date the order was placed), and you can group the rows by invoice, item, date, or customer.

    Revenue is what each sold line was priced at: its quantity times its selling unit price. Peasy takes those from the invoice line for an issued invoice, from the order line for a committed order with no Peasy invoice, and from Shopify's line price for a Shopify order (less any restocked units). For example, an invoice line of 10 cases at $24.00 each adds $240.00 of revenue. Revenue is before any discounts, including order- and invoice-level discounts, and leaves out shipping charged, so it can be higher than what the customer paid. For sales after discounts, use the Sales Report in Inventory History, which shows discounts and shipping as their own columns.

    Grouping by Item adds up every sold line of that item in the period: Qty is the total quantity, and Revenue and COGS are the totals of those lines. Each sell variant is its own item, so a case and a single bag of the same product get separate rows. Lines with no Peasy item are totaled in a No Peasy item row. With Separate, invoices, orders, and Shopify orders for the same item stay on their own rows; choose Combined for one row per item.

    Check the Posting Note column before you post from it. It tells you how each figure was arrived at — a real production or receiving cost, or an estimate taken from the recipe or list price when Peasy had nothing better to use. An estimated row is a placeholder to look into, not a measured cost, and it looks exactly like a measured one until you read that column.

    Because sales-line COGS refreshes when its source cost is corrected, re-running the report after a receipt fix or a co-manufacturer invoice arrives picks up the corrected figures — including for periods you already closed. If a re-run shows different numbers than your posted copy, a source cost was corrected in between.

Co-manufactured goods cost the ingredients plus the maker's charge

When a co-manufacturer makes a product for you, the batch costs two things: the ingredients you supplied and the fee the maker charged. Peasy adds both together to work out what the finished batch actually cost, rather than counting only the invoice.

Inventory History's Unit Cost column shows the receipt's own price — the maker's fee. To see the combined figure and its two halves, open the receipt and use the co-manufacturer cost view on the record itself.

Peasy first uses the assigned lot's recorded cost when available. A sales line with no lot of its own takes its cost from the lots it shipped from once its shipment is marked shipped, weighted by how many units came from each lot, and it updates if one of those lots' costs is later corrected. If a line has no usable lot cost, Peasy uses the current template COGS for made products or the current Items to buy price for bought products. If none is available, Unit COGS is blank; a blank does not mean free.

If Peasy cannot calculate both halves of a co-manufacturer run's cost, it never uses just one half. It uses the current template COGS when available; otherwise, Unit COGS is blank.

Refreshing Template Costs

Template unit costs update automatically when their inputs change, but if you've edited buy-item prices or building-block costs and want to force a fresh roll-up, use the Recalculate COGS button (the refresh icon next to the Unit cost column header on the Templates list, or in the Configure tab when a template is open). The list-level button recomputes every active template; the per-template button recomputes the open template along with any building blocks it depends on.

Why It Matters

Accurate COGS is essential for understanding your true profit margins. Peasy rolls those costs up from your receiving and production activity so you don't have to rebuild them in a spreadsheet.