Skip to content

Know what the goods you sold cost you this month.

Your AI reads the ERP's stock at the start and end of the month, the purchases and the sales, and saves each category's COGS, with the source of every number.

Drag to move the window. With the keyboard, use the arrow keys; Enter puts the window back.

Calculate September's COGS.

SiglataSeptember COGS11 of 11 records
categoriafaturamentoinicial
"Beverages"5230018400
"Dry grocery"6180026900
"Deli and dairy"416009800
"Produce"274003200
"Bakery"249001600
"Meat"442005400
"Wine"2670022500
"Coffee and tea"179006700
"Cleaning"119007300
"Personal care"103005900
"Total"319000107700
Using Siglata · saving COGS and COGS %Used Siglata · saved COGS and COGS % in 11 records

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.

CMV_2026.xlsxv8 to v9SavedPrevious version kept
Siglata
In SiglataSeptember COGS11 records
—0
The September COGS table in Siglata, 11 records.
RowCategoryOpening stockPurchasesClosing stockCOGSRevenueCOGS %
1Beverages18,40032,60016,800—34,20052,300—65.4%
2Dry grocery26,90041,20027,500—40,60061,800—65.7%
3Deli and dairy9,80028,4008,900—29,30041,600—70.4%
4Produce3,20019,6002,700—20,10027,400—73.4%
5Bakery1,60012,3001,400—12,50024,900—50.2%
6Meat5,40030,8004,900—31,30044,200—70.8%
7Wine22,50014,80021,300—16,00026,700—59.9%
8Coffee and tea6,7009,4006,200—9,90017,900—55.3%
9Cleaning7,3008,6007,800—8,10011,900—68.1%
10Personal care5,9007,1006,000—7,00010,300—68.0%
11Total107,700204,800103,500—209,000319,000—65.5%
TodayCMV 2026 (cópia de agosto).xlsxCompatibility modeSaved 3 days ago
J7fx
ABCDEFG1CMV 2026 (cópia de agosto).xlsx2Illustrative data.3CategoryOpening stockPurchasesClosing stockCOGSRevenueCOGS %4Beverages18.4kR$326001680052,3005Dry grocery 26900R$41,20027,500R$61,8006 Deli and dairy9,80028,400.00R$8,900R$416007produceR$3,20019.6kR$2700R$27,4008BakeryR$160012300R$1,40024,900.009MEATR$5,40030,8004,900.0044.2k10Wine22,500.00R$14,80021.3k2670011Coffee and tea6.7kR$9400620017,90012Cleaning 7300R$8,6007,800R$11,90013 Personal care5,9007,100.00R$6,000R$1030014totalR$107,700204.8kR$103500R$319,00015161718192021
Sheet1Sheet2 (2)copy of Sheet1DO NOT USE

Illustrative data. Drag the divider to compare.

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.

ABCDEFG1CMV 2026 (cópia de agosto).xlsx2Illustrative data.3CategoryOpening stockPurchasesClosing stockCOGSRevenueCOGS %4Beverages18.4kR$326001680052,3005Dry grocery 26900R$41,20027,500R$61,8006 Deli and dairy9,80028,400.00R$8,900R$416007produceR$3,20019.6kR$2700R$27,4008BakeryR$160012300R$1,40024,900.009MEATR$5,40030,8004,900.0044.2k10Wine22,500.00R$14,80021.3k2670011Coffee and tea6.7kR$9400620017,90012Cleaning 7300R$8,6007,800R$11,90013 Personal care5,9007,100.00R$6,000R$1030014totalR$107,700204.8kR$103500R$319,00015161718192021

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.

ChatGPT

Calculate September's COGS.

SiglataSeptember COGS11 of 11 records
categoriafaturamentoinicial
"Beverages"5230018400
"Dry grocery"6180026900
"Deli and dairy"416009800
"Produce"274003200
"Bakery"249001600
"Meat"442005400
"Wine"2670022500
"Coffee and tea"179006700
"Cleaning"119007300
"Personal care"103005900
"Total"319000107700
Using Siglata · saving COGS and COGS %Used Siglata · saved COGS and COGS % in 11 records

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.

CMV_2026.xlsxv8 to v9SavedPrevious version kept
Ask anythingSiglata
The September COGS table in Siglata, 11 records.
RowCategoryOpening stockPurchasesClosing stockCOGSRevenueCOGS %
1Beverages18,40032,60016,800—34,20052,300—65.4%
2Dry grocery26,90041,20027,500—40,60061,800—65.7%
3Deli and dairy9,80028,4008,900—29,30041,600—70.4%
4Produce3,20019,6002,700—20,10027,400—73.4%
5Bakery1,60012,3001,400—12,50024,900—50.2%
6Meat5,40030,8004,900—31,30044,200—70.8%
7Wine22,50014,80021,300—16,00026,700—59.9%
8Coffee and tea6,7009,4006,200—9,90017,900—55.3%
9Cleaning7,3008,6007,800—8,10011,900—68.1%
10Personal care5,9007,1006,000—7,00010,300—68.0%
11Total107,700204,800103,500—209,000319,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.

The September COGS table in Siglata, 11 records.
RowCategoryOpening stockPurchasesClosing stockCOGSRevenueCOGS %
1Beverages18,40032,60016,800—34,20052,300—65.4%
2Dry grocery26,90041,20027,500—40,60061,800—65.7%
3Deli and dairy9,80028,4008,900—29,30041,600—70.4%
4Produce3,20019,6002,700—20,10027,400—73.4%
5Bakery1,60012,3001,400—12,50024,900—50.2%
6Meat5,40030,8004,900—31,30044,200—70.8%
7Wine22,50014,80021,300—16,00026,700—59.9%
8Coffee and tea6,7009,4006,200—9,90017,900—55.3%
9Cleaning7,3008,6007,800—8,10011,900—68.1%
10Personal care5,9007,1006,000—7,00010,300—68.0%
11Total107,700204,800103,500—209,000319,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 %
    CategoryOpening + Purchases − Closing = COGSCOGS ÷ Revenue = COGS %
    Beverages18,400 + 32,600 − 16,800 = 34,20034,200 ÷ 52,300 = 65.4%
    Dry grocery26,900 + 41,200 − 27,500 = 40,60040,600 ÷ 61,800 = 65.7%
    Deli and dairy9,800 + 28,400 − 8,900 = 29,30029,300 ÷ 41,600 = 70.4%
    Produce3,200 + 19,600 − 2,700 = 20,10020,100 ÷ 27,400 = 73.4%
    Bakery1,600 + 12,300 − 1,400 = 12,50012,500 ÷ 24,900 = 50.2%
    Meat5,400 + 30,800 − 4,900 = 31,30031,300 ÷ 44,200 = 70.8%
    Wine22,500 + 14,800 − 21,300 = 16,00016,000 ÷ 26,700 = 59.9%
    Coffee and tea6,700 + 9,400 − 6,200 = 9,9009,900 ÷ 17,900 = 55.3%
    Cleaning7,300 + 8,600 − 7,800 = 8,1008,100 ÷ 11,900 = 68.1%
    Personal care5,900 + 7,100 − 6,000 = 7,0007,000 ÷ 10,300 = 68.0%
    Total107,700 + 204,800 − 103,500 = 209,000209,000 ÷ 319,000 = 65.5%
    Download the example (.xlsx)

    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

    RowPersonInventoryPurchasingFinance
    1You AdminCan editCan editCan edit
    2Marcos Purchasing
    3Renata Finance
    4Rodrigo 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
    1. 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%.

    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.