Know what the goods you sold cost you this month.
Calculate September's COGS.
| categoria | faturamento | inicial |
|---|---|---|
| "Beverages" | 52300 | 18400 |
| "Dry grocery" | 61800 | 26900 |
| "Deli and dairy" | 41600 | 9800 |
| "Produce" | 27400 | 3200 |
| "Bakery" | 24900 | 1600 |
| "Meat" | 44200 | 5400 |
| "Wine" | 26700 | 22500 |
| "Coffee and tea" | 17900 | 6700 |
| "Cleaning" | 11900 | 7300 |
| "Personal care" | 10300 | 5900 |
| "Total" | 319000 | 107700 |
September's COGS was R$209,000.00, 65.5% of R$319,000.00 in revenue. Produce has the highest, 73.4%. I filled in the September sheet and saved v9 of the COGS spreadsheet.
Connected apps
| Row | Category | Opening stock | Purchases | Closing stock | COGS | Revenue | COGS % |
|---|---|---|---|---|---|---|---|
| 1 | Beverages | 18,400 | 32,600 | 16,800 | —34,200 | 52,300 | —65.4% |
| 2 | Dry grocery | 26,900 | 41,200 | 27,500 | —40,600 | 61,800 | —65.7% |
| 3 | Deli and dairy | 9,800 | 28,400 | 8,900 | —29,300 | 41,600 | —70.4% |
| 4 | Produce | 3,200 | 19,600 | 2,700 | —20,100 | 27,400 | —73.4% |
| 5 | Bakery | 1,600 | 12,300 | 1,400 | —12,500 | 24,900 | —50.2% |
| 6 | Meat | 5,400 | 30,800 | 4,900 | —31,300 | 44,200 | —70.8% |
| 7 | Wine | 22,500 | 14,800 | 21,300 | —16,000 | 26,700 | —59.9% |
| 8 | Coffee and tea | 6,700 | 9,400 | 6,200 | —9,900 | 17,900 | —55.3% |
| 9 | Cleaning | 7,300 | 8,600 | 7,800 | —8,100 | 11,900 | —68.1% |
| 10 | Personal care | 5,900 | 7,100 | 6,000 | —7,000 | 10,300 | —68.0% |
| 11 | Total | 107,700 | 204,800 | 103,500 | —209,000 | 319,000 | —65.5% |
—0
Illustrative data. Drag the divider to compare.
| Row | Category | Opening stock | Purchases | Closing stock | COGS | Revenue | COGS % |
|---|---|---|---|---|---|---|---|
| 1 | Beverages | 18,400 | 32,600 | 16,800 | —34,200 | 52,300 | —65.4% |
| 2 | Dry grocery | 26,900 | 41,200 | 27,500 | —40,600 | 61,800 | —65.7% |
| 3 | Deli and dairy | 9,800 | 28,400 | 8,900 | —29,300 | 41,600 | —70.4% |
| 4 | Produce | 3,200 | 19,600 | 2,700 | —20,100 | 27,400 | —73.4% |
| 5 | Bakery | 1,600 | 12,300 | 1,400 | —12,500 | 24,900 | —50.2% |
| 6 | Meat | 5,400 | 30,800 | 4,900 | —31,300 | 44,200 | —70.8% |
| 7 | Wine | 22,500 | 14,800 | 21,300 | —16,000 | 26,700 | —59.9% |
| 8 | Coffee and tea | 6,700 | 9,400 | 6,200 | —9,900 | 17,900 | —55.3% |
| 9 | Cleaning | 7,300 | 8,600 | 7,800 | —8,100 | 11,900 | —68.1% |
| 10 | Personal care | 5,900 | 7,100 | 6,000 | —7,000 | 10,300 | —68.0% |
| 11 | Total | 107,700 | 204,800 | 103,500 | —209,000 | 319,000 | —65.5% |
—0
Calculate September's COGS.
| categoria | faturamento | inicial |
|---|---|---|
| "Beverages" | 52300 | 18400 |
| "Dry grocery" | 61800 | 26900 |
| "Deli and dairy" | 41600 | 9800 |
| "Produce" | 27400 | 3200 |
| "Bakery" | 24900 | 1600 |
| "Meat" | 44200 | 5400 |
| "Wine" | 26700 | 22500 |
| "Coffee and tea" | 17900 | 6700 |
| "Cleaning" | 11900 | 7300 |
| "Personal care" | 10300 | 5900 |
| "Total" | 319000 | 107700 |
September's COGS was R$209,000.00, 65.5% of R$319,000.00 in revenue. Produce has the highest, 73.4%. I filled in the September sheet and saved v9 of the COGS spreadsheet.
- Opening stock
- 18,400
- COGS
- 34,200
- COGS %
- 65.4%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 26,900
- COGS
- 40,600
- COGS %
- 65.7%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 9,800
- COGS
- 29,300
- COGS %
- 70.4%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 3,200
- COGS
- 20,100
- COGS %
- 73.4%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 1,600
- COGS
- 12,500
- COGS %
- 50.2%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 5,400
- COGS
- 31,300
- COGS %
- 70.8%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 22,500
- COGS
- 16,000
- COGS %
- 59.9%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 6,700
- COGS
- 9,900
- COGS %
- 55.3%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 7,300
- COGS
- 8,100
- COGS %
- 68.1%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 5,900
- COGS
- 7,000
- COGS %
- 68.0%
History
ChatGPT changed COGS and COGS % · 07:05
- Opening stock
- 107,700
- COGS
- 209,000
- COGS %
- 65.5%
History
ChatGPT changed COGS and COGS % · 07:05
Every month start, three exports and one sum
Stock comes out of the ERP on two dates, purchases come from the incoming invoices, and someone adds it up category by category in a spreadsheet copied from last month. When the closing stock is missing, the sum stops halfway.
One question, each category's COGS
You ask for September's COGS. Your AI adds each category's opening stock and purchases, subtracts the closing stock, divides by revenue and saves the month as a new version of the COGS spreadsheet, with the previous one kept.
Calculate September's COGS.
| categoria | faturamento | inicial |
|---|---|---|
| "Beverages" | 52300 | 18400 |
| "Dry grocery" | 61800 | 26900 |
| "Deli and dairy" | 41600 | 9800 |
| "Produce" | 27400 | 3200 |
| "Bakery" | 24900 | 1600 |
| "Meat" | 44200 | 5400 |
| "Wine" | 26700 | 22500 |
| "Coffee and tea" | 17900 | 6700 |
| "Cleaning" | 11900 | 7300 |
| "Personal care" | 10300 | 5900 |
| "Total" | 319000 | 107700 |
September's COGS was R$209,000.00, 65.5% of R$319,000.00 in revenue. Produce has the highest, 73.4%. I filled in the September sheet and saved v9 of the COGS spreadsheet.
| Row | Category | Opening stock | Purchases | Closing stock | COGS | Revenue | COGS % |
|---|---|---|---|---|---|---|---|
| 1 | Beverages | 18,400 | 32,600 | 16,800 | —34,200 | 52,300 | —65.4% |
| 2 | Dry grocery | 26,900 | 41,200 | 27,500 | —40,600 | 61,800 | —65.7% |
| 3 | Deli and dairy | 9,800 | 28,400 | 8,900 | —29,300 | 41,600 | —70.4% |
| 4 | Produce | 3,200 | 19,600 | 2,700 | —20,100 | 27,400 | —73.4% |
| 5 | Bakery | 1,600 | 12,300 | 1,400 | —12,500 | 24,900 | —50.2% |
| 6 | Meat | 5,400 | 30,800 | 4,900 | —31,300 | 44,200 | —70.8% |
| 7 | Wine | 22,500 | 14,800 | 21,300 | —16,000 | 26,700 | —59.9% |
| 8 | Coffee and tea | 6,700 | 9,400 | 6,200 | —9,900 | 17,900 | —55.3% |
| 9 | Cleaning | 7,300 | 8,600 | 7,800 | —8,100 | 11,900 | —68.1% |
| 10 | Personal care | 5,900 | 7,100 | 6,000 | —7,000 | 10,300 | —68.0% |
| 11 | Total | 107,700 | 204,800 | 103,500 | —209,000 | 319,000 | —65.5% |
Every number with its source
Tap a COGS amount to see the math, the file behind each part and the company's rule.
| Row | Category | Opening stock | Purchases | Closing stock | COGS | Revenue | COGS % |
|---|---|---|---|---|---|---|---|
| 1 | Beverages | 18,400 | 32,600 | 16,800 | —34,200 | 52,300 | —65.4% |
| 2 | Dry grocery | 26,900 | 41,200 | 27,500 | —40,600 | 61,800 | —65.7% |
| 3 | Deli and dairy | 9,800 | 28,400 | 8,900 | —29,300 | 41,600 | —70.4% |
| 4 | Produce | 3,200 | 19,600 | 2,700 | —20,100 | 27,400 | —73.4% |
| 5 | Bakery | 1,600 | 12,300 | 1,400 | —12,500 | 24,900 | —50.2% |
| 6 | Meat | 5,400 | 30,800 | 4,900 | —31,300 | 44,200 | —70.8% |
| 7 | Wine | 22,500 | 14,800 | 21,300 | —16,000 | 26,700 | —59.9% |
| 8 | Coffee and tea | 6,700 | 9,400 | 6,200 | —9,900 | 17,900 | —55.3% |
| 9 | Cleaning | 7,300 | 8,600 | 7,800 | —8,100 | 11,900 | —68.1% |
| 10 | Personal care | 5,900 | 7,100 | 6,000 | —7,000 | 10,300 | —68.0% |
| 11 | Total | 107,700 | 204,800 | 103,500 | —209,000 | 319,000 | —65.5% |
Total · COGS R$209,000.00
- Opening stock on Aug 31: R$107,700.00, the same as the closing stock on v8's August sheet.
- Purchases from Sep 1 to Sep 30: R$204,800.00.
- Closing stock on Sep 30: R$103,500.00.
- COGS: 107,700 + 204,800 − 103,500 = R$209,000.00.
- September revenue: R$319,000.00.
- COGS %: 209,000 ÷ 319,000 = 65.5%.
- Estoque_2026-08-31.xlsxv1 to · 486 rows · sum of Value at cost: R$107,700.00
- CMV_2026.xlsxv8 to · August sheet · Row 12 · Closing stock: R$107,700.00
- Compras_setembro.xlsxv1 to · 1,214 rows from 93 invoices · sum of Total value: R$204,800.00
- Estoque_2026-09-30.xlsxv1 to · 479 rows · sum of Value at cost: R$103,500.00
- Vendas_setembro.xlsxv1 to · 512 rows · sum of Amount sold: R$319,000.00
- CMV_do_mes to · (company skill) · item 1: both stocks at average cost · item 2: purchases from the incoming merchandise invoices, with the invoice's freight · item 3: the share is over the month's sales
Stock fell by R$4,200.00 over the month (107,700 − 103,500), so COGS came out above purchases: 204,800 + 4,200 = 209,000. Produce has the highest COGS, 73.4% of its revenue.
CMV_2026.xlsxv8 to v9Saved| Category | Opening + Purchases − Closing = COGS | COGS ÷ Revenue = COGS % |
|---|---|---|
| Beverages | 18,400 + 32,600 − 16,800 = 34,200 | 34,200 ÷ 52,300 = 65.4% |
| Dry grocery | 26,900 + 41,200 − 27,500 = 40,600 | 40,600 ÷ 61,800 = 65.7% |
| Deli and dairy | 9,800 + 28,400 − 8,900 = 29,300 | 29,300 ÷ 41,600 = 70.4% |
| Produce | 3,200 + 19,600 − 2,700 = 20,100 | 20,100 ÷ 27,400 = 73.4% |
| Bakery | 1,600 + 12,300 − 1,400 = 12,500 | 12,500 ÷ 24,900 = 50.2% |
| Meat | 5,400 + 30,800 − 4,900 = 31,300 | 31,300 ÷ 44,200 = 70.8% |
| Wine | 22,500 + 14,800 − 21,300 = 16,000 | 16,000 ÷ 26,700 = 59.9% |
| Coffee and tea | 6,700 + 9,400 − 6,200 = 9,900 | 9,900 ÷ 17,900 = 55.3% |
| Cleaning | 7,300 + 8,600 − 7,800 = 8,100 | 8,100 ÷ 11,900 = 68.1% |
| Personal care | 5,900 + 7,100 − 6,000 = 7,000 | 7,000 ÷ 10,300 = 68.0% |
| Total | 107,700 + 204,800 − 103,500 = 209,000 | 209,000 ÷ 319,000 = 65.5% |
Illustrative data.
The COGS rule is written down
Which cost values the stock, what counts as a purchase and which revenue the share is taken over live in a company skill. Each person works with their own access, and every change stays in the history, with the previous version kept.
Who accesses what
| Row | Person | Inventory | Purchasing | Finance |
|---|---|---|---|---|
| 1 | You Admin | Can edit | Can edit | Can edit |
| 2 | Marcos Purchasing | |||
| 3 | Renata Finance | |||
| 4 | Rodrigo Sales |
Click a level to change it. Each person's ChatGPT, Codex or Claude Code follows that person's access.
Today's activity
CMV_2026.xlsxv9 to- M
September's COGS was R$209,000.00, 65.5% of R$319,000.00 in revenue. Produce has the highest, 73.4%. I filled in the September sheet and saved v9 of the COGS spreadsheet.
Frequently asked questions
Which ChatGPT does it work in?
ChatGPT Business and Enterprise: an admin enables Siglata once for the team. On Pro, Siglata is read-only, in developer mode. On Plus and Free, it doesn't work in ChatGPT on the web. In Codex, each person connects it, on every plan that includes Codex.
Does it work with my ERP?
Two ways: with the ERP's exports, as spreadsheets or CSV, and in the ERP's own pages, like Bling: your AI signs in to the portal with the login you or the company connected, reads lists and tables, clicks, fills in and posts, without seeing the password. The stock position, the incoming invoices and sales by product come in the same way, as a spreadsheet or CSV.
How do I calculate COGS without a closing stock?
The formula can't do it. Without the closing stock, whatever is left on the shelf counts as sold. There are two ways. Count the stock on the month's last day, or export the ERP's balance on that date if the ERP tracks stock. Or add up, product by product, the quantity sold times the unit cost. That number leaves out losses and breakage. Your AI says which way it used and shows the row behind each value.
What is the COGS formula?
COGS = opening stock + purchases − closing stock, with both stocks at the same cost. As a percentage, divide COGS by the same month's revenue. In this page's example, 107,700 + 204,800 − 103,500 = R$209,000.00, and 209,000 ÷ 319,000 = 65.5%.
No question matches that term. Let’s talk.
Want to see it with your company's stock?
We'll show it with the stock position, purchases and sales exported from your ERP, in a WhatsApp conversation.