What the cost of goods purchased formula measures
Cost of goods purchased is the total you spent acquiring inventory in a period, net of anything the supplier gave back. Per AccountingTools, it is "the total acquisition cost of merchandise bought for resale, net of purchase returns, allowances, and discounts."
Think of it as the honest sticker price of stocking your shelves. It includes the freight to get goods to you and the duties you paid at the border. It excludes the discounts and refunds that shrank the bill after the fact.
You will see this number called COGP for short. It is a building block, not an end in itself — it feeds directly into cost of goods sold and into the gross margin that decides whether a product is worth selling at all.
The formula, component by component
Here is the full formula with every line spelled out:
COGP = Purchases + Freight-in + Import duties/other acquisition costs − Purchase returns − Purchase allowances − Purchase discounts
- Purchases — the gross invoice cost of all inventory you ordered in the period.
- Freight-in — what the carrier charged to move that inventory to your warehouse or 3PL. This is inbound freight, not the shipping you charge customers.
- Import duties and other acquisition costs — tariffs, customs fees, and any direct cost of getting goods purchase-ready.
- Purchase returns — the cost of stock you sent back to the supplier.
- Purchase allowances — price reductions the supplier granted without you returning anything (say, for a damaged batch you kept).
- Purchase discounts — early-payment or volume discounts that lowered the final bill.
The first three lines add to your cost; the last three subtract from it. Miss the additions and you understate what inventory really cost you. Miss the subtractions and you overstate it — and then quietly overpay tax on inventory you never actually paid full price for.
A worked example
Say you run a print-on-demand apparel store and you are pricing out a quarter of blank garments and print runs. Your books for the period show:
- Purchases (blanks + print charges): $60,000
- Freight-in from the supplier: $2,000
- Import duty on imported blanks: $1,500
- Purchase returns (defective blanks sent back): $3,000
- Purchase discount for paying net-10: $1,200
Plug those in: $60,000 + $2,000 + $1,500 − $3,000 − $1,200 = $59,300 cost of goods purchased.
Notice how the gross $60,000 purchase line is misleading on its own. The additions push it up by $3,500, the deductions pull it down by $4,200, and the true acquisition cost lands at $59,300. That $700 net swing is real money that belongs in your inventory valuation, not in a rounding error.
Cost of goods purchased vs. cost of goods sold
This is the confusion that trips up most sellers, so it is worth being exact. Cost of goods purchased counts inventory you bought. Cost of goods sold counts inventory you sold. In any period where your stock level changes, the two numbers differ.
QuickBooks defines COGS as the direct cost of the goods "that a business has actually sold." If you bought $59,300 of blanks but only shipped part of them, the unsold blanks sit in ending inventory — they are in your COGP but not yet in your COGS.
The bridge between the two runs through inventory. Cost of goods available for sale equals beginning inventory plus cost of goods purchased, and COGS is what is left after you subtract ending inventory.
From purchases to COGS (the inventory bridge)
The full chain is:
Cost of goods available for sale = Beginning inventory + Cost of goods purchased
COGS = Cost of goods available for sale − Ending inventory
Keep the print-on-demand example going. Say you started the quarter with $10,000 of blanks on hand and ended with $14,300 still in stock:
- Cost of goods available for sale: $10,000 + $59,300 = $69,300
- COGS: $69,300 − $14,300 = $55,000
So you purchased $59,300 of inventory but only expensed $55,000 as COGS, because $4,300 of net new stock is still sitting on the shelf. Rearranged, the same identity is a handy shortcut: COGP = COGS − Beginning inventory + Ending inventory. If you know your COGS and your inventory movement, you can back into cost of goods purchased without re-adding every invoice.
Why this number decides your profit (the angle most guides skip)
Every guide gives you the formula. Almost none show you what happens next — how cost of goods purchased flows through to the profit you actually keep on an order. That is where the number earns its keep.
Once inventory becomes COGS, it sets your gross margin, and gross margin is the ceiling on everything downstream. If you want the clean breakdown of that step, the difference between net and gross margin is the first place to look. From there, shipping, payment fees, pick-and-pack, and ad spend keep eating into what is left.
Worked per-order profit
Say your average order sells for $40 and the blanks-plus-print cost baked into it is $16 — a 40% product cost, so a 60% gross margin. That is $24 of gross profit per order. Then real life happens:
- Revenue: $40.00
- − Product cost (COGS): $16.00 → gross profit $24.00
- − Carrier shipping: $5.00
- − Payment processing: $1.60
- − Pick and pack: $1.40 → contribution margin before ads $16.00
- − Ad cost allocated to the order: $10.00 → profit after ads $6.00
That $6.00 is what a $40 order is really worth to you — 15% of revenue, not the 60% the gross margin hinted at. Push the product cost from $16 to $18 and, with everything else held flat, your per-order profit drops from $6.00 to $4.00: a $2 change in cost of goods purchased erased a third of your bottom-line profit. This is why the deeper lever is understanding incremental margins — where the next dollar of cost or price actually lands.
The trouble is that this math lives in five different tools. Your product cost is in one place, your fees in Stripe, your ad spend split across Meta and Google, and your orders in Shopify. Stitching them together by hand for every order is where most sellers give up and fall back to gross margin — which is exactly the number that lies to you.
That is the gap PodVector closes. It connects Shopify, Meta Ads, Google Ads, Printify, and Printful, and computes your true per-order profit after every one of those costs — not a dashboard read of it, but the real figure. Victor, its AI operator, analyzes that live data and can act on it Shopify-side with your approval; he reads your ad data to propose moves but does not touch your ad account. When you know real per-order profit, the follow-on question — what a customer costs to acquire — gets sharper too, which is where the blended CAC formula comes in.
For the full set of formulas that connect purchases, margin, and acquisition cost, the ecommerce metrics guide ties them together against one running example.
FAQs
Is cost of goods purchased the same as COGS?
No. Cost of goods purchased is the net cost of everything you bought in a period. COGS is the cost of only what you sold. They match only when beginning inventory equals ending inventory — that is, when your stock level did not move at all. In any period where you build up or draw down inventory, the two diverge by exactly the change in inventory.
Does cost of goods purchased include freight and duties?
Yes — inbound freight (freight-in) and import duties are part of the acquisition cost, so they add to the total. What it does not include is outbound shipping to your customers; that is a fulfillment cost, not a cost of acquiring inventory. Keep the two separate or your gross margin will be wrong in both directions.
Do purchase discounts and returns lower the number?
Yes. Purchase returns, purchase allowances, and purchase discounts are all deducted. The logic is simple: cost of goods purchased is the net amount you actually owed the supplier after every reduction. Recording the gross invoice and ignoring the discounts overstates your inventory and, later, your COGS.
How do I get from cost of goods purchased to COGS?
Add beginning inventory to cost of goods purchased to get cost of goods available for sale, then subtract ending inventory. In formula form: COGS = Beginning inventory + Cost of goods purchased − Ending inventory. The unsold portion stays on your balance sheet as inventory until it sells.
Where does cost of goods purchased show up on my financials?
It does not appear as its own line on the income statement — it flows into COGS through the inventory calculation above, and the unsold remainder sits on the balance sheet as inventory. It matters most as a working number: get it wrong and your gross margin, inventory valuation, and taxable income all inherit the error.
Is a lower cost of goods purchased always better?
Not automatically. Chasing a cheaper blank can raise return rates or hurt product quality, and both cost you more than you saved. The number to watch is not COGP in isolation but the per-order profit it flows into — a slightly higher product cost that lifts your conversion or repeat rate can be the more profitable choice.