Docs/Transaction Processing/Cost Accruals and COGS

Cost Accruals and COGS

Automatic cost of goods sold posting, inventory costing methods, and expense accruals

6 min read

Overview#

Cost accruals ensure that expenses are recognized in the accounting period when they are incurred, regardless of when cash is paid. The AI-Native ERP automates cost of goods sold (COGS) posting, supports multiple inventory costing methods, and handles period-end expense accruals.

Why Cost Accruals Matter#

  1. Matching Principle -- Costs are matched to revenue in the same period (GAAP requirement)
  2. Accurate Profitability -- Gross profit reflects the true cost of sales
  3. Inventory Valuation -- Inventory asset values remain accurate on the balance sheet
  4. Period Close -- All incurred costs are captured before closing the books
  5. Compliance -- Required by both GAAP and IFRS

Cost of Goods Sold (COGS)#

What is COGS?#

COGS represents the cost of inventory sold during a period:

COGS = Beginning Inventory + Purchases - Ending Inventory

When to Record COGS#

COGS is recorded at the same time as the related revenue (the matching principle). When you sell 100 units at $50 each with a standard cost of $30 per unit:

Revenue: $5,000 (100 units at $50)
COGS: $3,000 (100 units at $30)
Gross Profit: $2,000 (40% margin)

Automatic COGS Posting#

When a customer invoice includes inventory items, the system automatically:

  1. Checks the item configuration -- Does the item have a standard cost and COGS account?
  2. Calculates the cost -- Quantity multiplied by the item's cost
  3. Creates the journal entry -- Debits COGS, credits Inventory
  4. Updates financial statements -- Income statement shows accurate gross margin
STEP 1: Sale recorded
  Accounts Receivable debited $1,000
  Revenue credited $1,000

STEP 2: COGS automatically posted
  COGS debited $600 (10 units at $60 cost)
  Inventory credited $600

RESULT:
  Income Statement: Revenue $1,000, COGS $600, Gross Profit $400 (40%)
  Balance Sheet: Inventory reduced by $600

COGS Components#

The total landed cost of inventory can include:

  1. Product cost -- Direct manufacturing or purchase cost
  2. Freight-in -- Shipping costs to receive inventory
  3. Customs and duties -- Import fees
  4. Direct labor -- Manufacturing labor
  5. Manufacturing overhead -- Factory costs

Inventory Costing Methods#

The system supports four costing methods, configured per item.

1. Standard Costing#

A predetermined cost per unit, useful for manufacturing and variance analysis.

Best for: Manufacturing with budgeted costs, stable pricing, variance analysis

Example:

Amount
Standard cost per widget$60
Sale of 10 widgetsCOGS = $600
Actual cost per widget$62
Variance (unfavorable)$20

Variances between standard and actual cost are tracked separately for analysis.

2. FIFO (First-In, First-Out)#

The oldest inventory is sold first.

Best for: Perishable goods, rising prices (results in lower COGS and higher profit)

Example:

PurchaseUnitsCost
Purchase 1 (Jan)50$55 each
Purchase 2 (Feb)50$65 each

Selling 75 units under FIFO:

  • First 50 units at $55 = $2,750
  • Next 25 units at $65 = $1,625
  • Total COGS: $4,375
  • Remaining: 25 units at $65 = $1,625

3. Weighted Average#

Average cost across all units in inventory.

Best for: Interchangeable goods, simplicity, moderate price fluctuations

Example:

PurchaseUnitsTotal
Purchase 1100$5,000 ($50 each)
Purchase 2200$12,000 ($60 each)
Average300$56.67 each

Selling 150 units: COGS = 150 x $56.67 = $8,500

4. Specific Identification#

Track the actual cost of each individual unit.

Best for: High-value items (vehicles, jewelry), unique items, serial number tracking

Example:

ItemCost
Car VIN-001$45,000
Car VIN-002$47,000
Car VIN-003$46,000

Selling VIN-002: COGS = $47,000 (actual cost of that specific car)


Item Configuration#

Each item in the system carries cost-related settings:

FieldPurpose
Standard costPredetermined cost used for COGS posting
Average costWeighted average (calculated automatically)
Last costMost recent purchase price
Cost methodStandard, average, FIFO, or specific identification
Is inventory itemWhether the item tracks inventory
Default COGS accountGL account for cost of goods sold

Inventory Items vs. Service Items#

Inventory items track physical goods with on-hand quantities, inventory valuation, and automatic COGS posting when sold.

Service items (such as consulting hours) do not track inventory. Costs are recorded as expenses when incurred, not matched to revenue through COGS.


Multi-Line Invoice COGS#

When an invoice contains multiple inventory items, each line calculates COGS independently:

LineItemQtyCostCOGS
1Widget A10$60$600
2Widget B5$80$400
3Widget C20$40$800
Total$1,800

All COGS entries are posted in a single journal entry for the invoice.


Expense Accruals#

Expense accruals capture costs incurred but not yet billed or paid, ensuring each period's income statement reflects all costs.

Common Accrued Expenses#

CategoryExample
UtilitiesMonth's usage not yet billed
RentMonth's occupancy, paid next month
SalariesDays worked but not yet paid
InterestLoan interest accrued
TaxesTax obligation incurred

Accrual and Reversal Flow#

Step 1: Accrue at period end (October 31)

Estimated utility usage for October: $2,500

Utilities Expense debited $2,500
Accrued Expenses credited $2,500

October income statement includes the $2,500 expense.

Step 2: Receive actual bill (November 15)

Actual bill: $2,450. Reverse the accrual and record the actual:

Accrued Expenses debited $2,500 (reversal)
Utilities Expense credited $2,500 (reversal)

Utilities Expense debited $2,450 (actual)
Accounts Payable credited $2,450 (actual)

The $50 difference appears in November, which is immaterial.


Month-End Expense Accrual Example#

At month-end, all outstanding costs are accrued in a single process:

ExpenseEstimated Amount
Utilities$2,500
Rent$10,000
Salaries (unbilled days)$5,000
Total accrual$17,500

This ensures the period's income statement captures all incurred costs before the books are closed.


Key Capabilities#

  • Automatic COGS posting when inventory items are sold -- no manual entries needed
  • Four costing methods: standard, FIFO, weighted average, and specific identification
  • Variance tracking between standard and actual costs
  • Multi-line support with per-item cost calculation on every invoice
  • Service item handling with appropriate expense recognition (no COGS)
  • Period-end accruals for expenses incurred but not yet billed
  • Accurate gross margins calculated in real time per transaction
  • GAAP and IFRS compliant matching of costs to revenue

Subscribe to new posts

Get notified when we publish new insights on AI-native finance.