Cost Accruals and COGS
Automatic cost of goods sold posting, inventory costing methods, and expense accruals
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#
- Matching Principle -- Costs are matched to revenue in the same period (GAAP requirement)
- Accurate Profitability -- Gross profit reflects the true cost of sales
- Inventory Valuation -- Inventory asset values remain accurate on the balance sheet
- Period Close -- All incurred costs are captured before closing the books
- 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:
- Checks the item configuration -- Does the item have a standard cost and COGS account?
- Calculates the cost -- Quantity multiplied by the item's cost
- Creates the journal entry -- Debits COGS, credits Inventory
- 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:
- Product cost -- Direct manufacturing or purchase cost
- Freight-in -- Shipping costs to receive inventory
- Customs and duties -- Import fees
- Direct labor -- Manufacturing labor
- 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 widgets | COGS = $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:
| Purchase | Units | Cost |
|---|---|---|
| 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:
| Purchase | Units | Total |
|---|---|---|
| Purchase 1 | 100 | $5,000 ($50 each) |
| Purchase 2 | 200 | $12,000 ($60 each) |
| Average | 300 | $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:
| Item | Cost |
|---|---|
| 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:
| Field | Purpose |
|---|---|
| Standard cost | Predetermined cost used for COGS posting |
| Average cost | Weighted average (calculated automatically) |
| Last cost | Most recent purchase price |
| Cost method | Standard, average, FIFO, or specific identification |
| Is inventory item | Whether the item tracks inventory |
| Default COGS account | GL 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:
| Line | Item | Qty | Cost | COGS |
|---|---|---|---|---|
| 1 | Widget A | 10 | $60 | $600 |
| 2 | Widget B | 5 | $80 | $400 |
| 3 | Widget C | 20 | $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#
| Category | Example |
|---|---|
| Utilities | Month's usage not yet billed |
| Rent | Month's occupancy, paid next month |
| Salaries | Days worked but not yet paid |
| Interest | Loan interest accrued |
| Taxes | Tax 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:
| Expense | Estimated 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.