Canonical page: https://bokeping.com/products/inventory/cost-of-goods-sold/

Markdown page: https://bokeping.com/products/inventory/cost-of-goods-sold.md

Text version of the public page. Check the canonical page for current terms and interactive features.

# Cost of goods sold tracking

Know what every sale really cost you.

Every time you sell, Bokeping posts the real cost of what left the shelf — automatically, from that item’s actual purchase history. Your margin stops being a year-end surprise.

[Start for free](<https://app.bokeping.com/auth/signup>)[See pricing](<https://bokeping.com/pricing/>)

Margins per sale, per item

Every invoice carries the real cost of what it sold, so you can see margin by item — not one blended guess at year end.

Zero manual entries

The COGS entry writes itself when the sale posts. No monthly cost journal, no spreadsheet reconciliation ritual.

Ties to your balance sheet

What leaves inventory as cost is exactly what your balance sheet gives up in value. The two numbers can’t drift apart.

Late bills

## The bill arrived late. The margin fixed itself.

You sold in June; the supplier’s invoice showed up in July, dated June, at a higher price than expected. Enter the bill with its real date and Bokeping re-reconciles the cost on the affected sales — the correction posts on its own, and the trail shows exactly what changed and why.

-   Backdated bills reconcile costs automatically
-   Corrections post as entries, never silent edits
-   Margin history updates to the true numbers
-   Locked periods stay locked — you’re told, not surprised

How it works

1

Buy stock

Bills and purchase orders record what each item actually cost you. That history is the source of truth for every cost that follows.

2

Sell it

When an invoice or receipt posts, the cost of those exact units posts as cost of goods sold — automatically, in the same moment.

3

Read your margin

Gross margin by item and overall, live all year. What you see in June is what your accountant confirms in April.

Items & PricingWarehousesStock AdjustmentsCost of Goods SoldItems & PricingWarehousesStock AdjustmentsCost of Goods Sold

FAQs

## Fair questions

### Where does the cost number come from?

From your own purchase history for that item — the bills and purchase orders you actually recorded, not a manual estimate you typed once and forgot. If you paid $12.40 a bag, that’s what posts when a bag sells.

### What if I enter a supplier bill after I’ve already sold the stock?

Enter it with its real date. Bokeping detects that sales after that date used a cost that’s now changed and posts corrections automatically, so your margins end up as if the bill had been there all along — with an audit trail of the fix.

### Do I or my accountant need to book COGS journal entries?

No. The entry posts itself with every sale, balanced, into your general ledger. Your accountant can drill from the P&L cost line down to each sale it came from — and they’ll find nothing waiting to be accrued at year end.

## Put your numbers to work

[### Free profit margin calculator Compare gross margin and markup, or estimate a selling price from a target margin. Calculations stay in your browser. Open resource](<https://bokeping.com/resources/tools/profit-margin-calculator/>)[### Understand margins by product Work through a fictional product-cost example and distinguish a partial-cost estimate from a complete accounting margin. Open resource](<https://bokeping.com/resources/blog/inventory-margins-every-product/>)

## Step-by-step guides

-   [Understand FIFO, average cost, and inventory cost scope](<https://bokeping.com/help/products-inventory/inventory-costing/>)
    
    Check how inventory cost reaches your accounts and why the valuation method may be locked.
    
-   [Run and reconcile Inventory Valuation](<https://bokeping.com/help/reports/inventory-valuation/>)
    
    Check stock quantities and carrying cost, drill into item movements, and compare with the ledger.
    

## Put the spreadsheet down

Inventory and cost of goods come with the Standard plan — stock that counts itself.

[See pricing](<https://bokeping.com/pricing/>)

More in Inventory

## It all posts to the same books

[Everything in Inventory](<https://bokeping.com/products/inventory/>)

[Items & Pricing Set up an item once — name, sell price, cost, tax — and reuse it on every invoice and purchase order. Learn more](<https://bokeping.com/products/inventory/items/>)[Warehouses Track quantities by location — store, roastery, storage unit — and still see one total. Learn more](<https://bokeping.com/products/inventory/warehouses/>)[Stock Adjustments Breakage, shrinkage, a miscount — record what actually happened and both the quantity and the dollars update together. Learn more](<https://bokeping.com/products/inventory/stock-adjustments/>)

## Ready to know your money?

Free plan, no card needed. Bring your QuickBooks or spreadsheet history, invite your accountant, and start reading your own books today.

[Start for free →](<https://app.bokeping.com/auth/signup>)
