Accounting & COGS

Pharma Inventory Valuation and COGS: The Records Behind the Report

How pharmaceutical distributors can calculate accurate inventory values, understand the cost of goods sold, track batch-wise costs, and maintain reliable accounting records.

By Maya Nexus Technologies · Published · 13 min read

On this page
  1. Introduction: Is Your Profit Correct?
  2. 1. What Is Inventory Valuation?
  3. 2. What Is COGS in Pharmaceutical Accounting?
  4. 3. How Is COGS Calculated?
  5. 4. Pharmaceutical Costing Challenges
  6. 5. FIFO vs Weighted Average Cost
  7. 6. FIFO vs FEFO: Operational Difference
  8. 7. Accurate Batch-Wise Valuation
  9. 8. Purchase Schemes and Free Goods
  10. 9. Purchase Returns Effect on Inventory
  11. 10. Sales Returns Effect on COGS
  12. 11. Expired Medicines and Stock Write-Offs
  13. 12. Reconcile Stock Quantity and Value
  14. 13. Connection to the General Ledger
  15. 14. Reconcile Inventory with General Ledger
  16. 15. Why Backdated Transactions Change COGS
  17. 16. Supporting Records for a Reliable COGS Report
  18. 17. Common Inventory Valuation Mistakes
  19. 18. How Maya ERP Connects Inventory & Accounting
  20. 19. Inventory and COGS Audit Checklist
  21. Frequently Asked Questions
  22. Conclusion: Accurate Profit Begins with Records
  23. Official References and Disclaimer
Pharma Inventory Valuation and COGS: The Records Behind the Report - Maya ERP guide

Introduction: Your Stock Report May Look Correct, But Is Your Profit Correct?

Imagine a pharmaceutical distributor reviewing the monthly Profit and Loss Statement. The business generated ₹15 lakh in sales during the month. The ERP shows available stock worth ₹8 lakh, and the owner expects a healthy profit.

But there is an important question: How did the software calculate the value of the medicines sold?

  • Was the cost based on the latest purchase rate?
  • Did it use the original purchase cost of each batch?
  • Were free scheme quantities accounted for?
  • What happened to products returned by retailers?
  • Were expired medicines incorrectly included in saleable stock?

These questions lead to two of the most critical concepts in pharmaceutical accounting: Inventory Valuation and Cost of Goods Sold (COGS).

For pharmaceutical distributors, accurate stock quantities alone are not enough. A business must also know the correct cost of its available stock and the cost associated with the products already sold. This information affects gross profit, inventory valuation, financial reporting, pricing decisions, and overall business performance.

In this guide, we explain pharmaceutical inventory valuation and COGS using practical examples, accounting principles, and real-world distribution workflows. We also explore how an integrated ERP system such as Maya ERP helps connect sales, purchases, batch-wise inventory, and accounting records.

1. What Is Inventory Valuation in Pharmaceutical Distribution?

Inventory valuation is the process of determining the monetary value of the medicines and other goods a business still holds at a particular reporting date.

For pharmaceutical distributors, inventory may include products stored in multiple batches, purchased at different prices, and held across different warehouse zones:

Medicine Available Quantity Unit Cost Inventory Value
Sample Tablet A100 strips₹80₹8,000
Sample Tablet B200 strips₹45₹9,000
Sample Syrup C50 bottles₹110₹5,500
Total350 units—₹22,500

In this simplified example, the inventory value is ₹22,500. However, real pharmaceutical inventory valuation is more complex because the same medicine may have been purchased multiple times at different costs. There may also be discounts, freight charges, purchase returns, free scheme quantities, or inventory write-downs.

Under applicable accounting standards, inventories are generally measured at the lower of cost and net realisable value (NRV). This principle is addressed in Indian Accounting Standard Ind AS 2 and Accounting Standard AS 2, as applicable to the reporting entity.

Why Inventory Valuation Matters

Accurate inventory valuation helps businesses understand:

  • The recorded value of medicines available for sale.
  • The cost associated with sold products.
  • Gross profit and operating performance.
  • Inventory losses and write-downs.
  • The value of closing stock reported in financial statements.

An incorrect inventory value directly distorts both the Balance Sheet (stock assets) and the Profit and Loss Statement (gross margin).

2. What Is COGS in Pharmaceutical Accounting?

COGS stands for Cost of Goods Sold. It represents the inventory cost attributable to products sold during a particular accounting period.

In pharmaceutical distribution, COGS is not necessarily the same as the product's latest purchase price. It depends on the inventory cost records and the accounting cost formula used by the business.

Simple Example

A pharmaceutical distributor purchases a medicine strip for ₹80. The strip is later sold to a retailer for ₹110, excluding GST:

Particulars Amount
Net sales revenue₹110
Cost of goods sold₹80
Gross profit₹30

Gross profit is calculated as: Gross Profit = Net Sales Revenue − COGS (₹110 − ₹80 = ₹30). Gross profit is not the business's final net profit; operating expenses, salaries, warehouse rent, finance costs, and other administrative expenses must also be deducted.

Why COGS Is Important

A pharmaceutical distributor might generate substantial sales revenue while operating on relatively slim margins. If COGS is understated, the Profit and Loss Statement overstates gross profit, leading to false confidence and unexpected tax liabilities. If COGS is overstated, the business appears less profitable than it actually is. Accurate COGS is therefore essential for reliable financial reporting.

3. How Is COGS Calculated?

For a trading business using periodic inventory accounting, the universal reconciliation formula is:

Opening Inventory + Net Purchases + Directly Attributable Inventory Costs − Closing Inventory = Total Inventory Cost Recognised (COGS)

Where there are no separate inventory losses or adjustments, this produces the Cost of Goods Sold.

Practical Monthly Example

Suppose a pharmaceutical distributor has the following monthly records:

Particulars Amount
Opening inventory₹2,00,000
Net purchases₹5,00,000
Directly attributable purchase costs (inward freight)₹10,000
Closing inventory₹2,50,000
Calculated COGS₹4,60,000

Calculation: ₹2,00,000 + ₹5,00,000 + ₹10,000 − ₹2,50,000 = ₹4,60,000.

If net sales revenue for the month is ₹6,00,000, gross profit would be: ₹6,00,000 − ₹4,60,000 = ₹1,40,000.

In actual pharmaceutical accounting, separate stock write-offs, near-expiry adjustments, or supplier debit notes must be classified and reconciled separately rather than hidden inside aggregate purchases.

4. Why Pharmaceutical Inventory Costing Is More Complicated Than Ordinary Retail

Pharmaceutical distributors face several unique inventory costing challenges:

  • The same medicine is purchased from manufacturers at different rates over time.
  • Suppliers offer trade quantity schemes (such as 10+1 free).
  • Products are returned by medical stores with varied expiry windows.
  • Some medicines become damaged, break, or expire before sale.
  • Trade discounts, cash discounts, and rebates alter net acquisition costs.

Example: The Same Medicine Purchased at Different Prices

Purchase Inward Quantity Cost per Strip Total Cost
First purchase100 strips₹80₹8,000
Second purchase50 strips₹90₹4,500
Total150 strips—₹12,500

The distributor now holds 150 strips of the exact same medicine, but acquired at two different costs. If the distributor sells 120 strips, what cost should be recorded? The answer depends on the selected inventory costing method: FIFO or Weighted Average Cost.

5. FIFO vs Weighted Average Cost: Which Method Should Pharma Distributors Understand?

Two widely recognized inventory cost formulas under accounting standards (AS 2 / Ind AS 2 / IAS 2) for interchangeable items are FIFO and Weighted Average Cost.

FIFO (First In, First Out)

Under FIFO accounting, the earliest inventory costs are assigned to the goods sold first:

  • From first purchase: 100 strips × ₹80 = ₹8,000
  • From second purchase: 20 strips × ₹90 = ₹1,800
  • Total COGS = ₹9,800
  • Remaining closing stock: 30 strips × ₹90 = ₹2,700

Weighted Average Cost

Under the weighted average method, a single weighted average unit cost is computed across total available quantity:

  • Total purchase cost = ₹12,500
  • Total quantity = 150 strips
  • Weighted average cost per strip = ₹12,500 ÷ 150 = ₹83.333...
  • For 120 strips sold: COGS = 120 × ₹83.333 = ₹10,000
  • Remaining closing stock: 30 strips × ₹83.333 = ₹2,500

FIFO vs Weighted Average Comparison

Particulars FIFO Method Weighted Average Method
Total available stock150 strips150 strips
Quantity sold120 strips120 strips
COGS₹9,800₹10,000
Closing stock value₹2,700₹2,500
Net sales (at ₹120 per strip)₹14,400₹14,400
Gross profit₹4,600₹4,400

Both methods utilize the exact same purchases and sales, yet produce different COGS, closing stock valuations, and reported gross profits. Businesses should apply a consistent inventory accounting policy in consultation with their tax and accounting professional.

6. FIFO vs FEFO: An Important Difference in Pharma Inventory

In pharmaceutical distribution, FIFO and FEFO are frequently conflated, but they serve two distinct purposes:

  • FIFO (First In, First Out): An accounting cost assumption used to allocate monetary costs between COGS and ending inventory.
  • FEFO (First Expiry, First Out): A physical warehouse operational principle that prioritizes stock with earlier expiry dates for customer dispatch.
Batch Purchase Receipt Date Expiry Date Physical Dispatch Priority
Batch AJanuary 2026December 2027Second (Later expiry)
Batch BMarch 2026June 2027First (FEFO Priority)

Batch A was purchased earlier, but Batch B expires earlier. A warehouse following FEFO will dispatch Batch B first to prevent medicine expiry losses. Meanwhile, accounting COGS can still follow the entity's adopted costing method. Physical batch allocation and financial cost allocation must never be confused.

7. What Information Is Needed for Accurate Batch-Wise Inventory Valuation?

Pharmaceutical distributors routinely manage several batches of the same product. Each batch carries its own purchase rate, expiry date, manufacturer, and inward transaction reference:

Medicine Batch Quantity Recorded Cost Batch Value
Sample Tablet 500 mgA101100 strips₹75₹7,500
Sample Tablet 500 mgA102150 strips₹82₹12,300
Sample Tablet 500 mgA103200 strips₹78₹15,600
Total—450 strips—₹35,400

The business holds 450 strips with a combined recorded purchase cost of ₹35,400. Maintaining batch-level cost history allows distributors to trace margins, verify supplier billing accuracy, and manage supplier return claims.

Critical Records to Maintain

  • Product identity and formulation strength.
  • Batch number and manufacturer identity.
  • Receipt date and linked supplier purchase invoice.
  • Physical storage location (rack/bin).
  • Attributable cost per unit and scheme allocations.
  • Current stock status (Active, Near-Expiry, Quarantine, Expired).

8. How Do Purchase Discounts and Free Schemes Affect Inventory Cost?

Trade schemes are standard practice in pharmaceutical wholesale. Consider a common offer: Buy 10 strips, get 1 free.

A distributor purchases 100 billed strips at ₹100 each and receives 10 free strips under the scheme. The business receives 110 strips in total physical stock.

Assuming total purchase cost excluding recoverable tax is ₹10,000, the effective average acquisition cost across all 110 strips is: ₹10,000 ÷ 110 = ₹90.91 per strip.

If an ERP records the 10 free strips as ₹0 cost while leaving the 100 strips at ₹100, selling the "free" strips first would record ₹0 COGS (100% false gross profit), followed later by artificially depressed margins when the ₹100 strips are sold. Proper scheme handling calculates the effective weighted acquisition cost.

What About GST?

GST Treatment: GST that is recoverable as Input Tax Credit (ITC) is strictly excluded from inventory cost. Only non-recoverable taxes and duties form part of acquisition cost. If medicines cost ₹10,000 with 5% recoverable GST (₹500), inventory cost is recorded as ₹10,000, not ₹10,500.

9. How Do Purchase Returns Affect Inventory Valuation?

Distributors frequently return stock to suppliers due to near-expiry agreements, transport damage, or billing discrepancies.

Suppose a distributor returns 20 eligible strips originally received from a supplier. The ERP must process two adjustments:

  1. Physical Stock Deduction: 20 strips deducted from the specific batch inventory.
  2. Financial Valuation Reversal: The supplier payable balance is reduced via a debit note, and inventory asset valuation is reduced at the appropriate acquisition cost.

Returning 20 strips is not always equivalent to multiplying returned units by the supplier's current catalog price. If the batch was acquired under a scheme or discount, the inventory reduction must reflect the original effective cost. Otherwise, inventory ledgers diverge from physical reality.

10. How Do Sales Returns Affect COGS and Gross Profit?

A customer return from a medical store is not merely a reduction in sales revenue; it requires a corresponding reversal in Cost of Goods Sold:

Particulars Original Sale After Return (10 Strips Returned)
Net sales revenue₹1,200 (10 strips × ₹120)₹0 (Reversed via credit note)
COGS recognised₹800 (10 strips × ₹80)₹0 (Reversed back into inventory)
Gross profit₹400₹0

If returned medicines are intact and suitable for resale, restoring ₹800 to inventory asset accompanied by a ₹800 COGS credit keeps financial statements accurate.

Caution: If the returned medicines are broken, expired, or tampered with, they must NOT be returned to active saleable stock. They should be moved to a quarantine/damage ledger and evaluated for supplier claim or write-off.

11. How Should Expired Medicines Affect Stock Valuation?

Expired medicines cannot be legally sold. Continuing to carry expired stock at original purchase cost on the Balance Sheet artificially inflates current assets.

Under Indian Accounting Standard (Ind AS 2 / AS 2), inventory must be written down to Net Realisable Value (NRV):

Particulars Amount
Recorded cost of expired stock₹25,000
Recoverable value (Assumed scrap/credit)₹0
Inventory write-off expense₹25,000

This write-off must be recognized as an expense in the Profit & Loss Statement during the period the expiry occurs.

Statutory GST Warning: Under Section 17(5)(h) of the CGST Act, Input Tax Credit must be reversed for goods destroyed, written off, or disposed of. Expired stock cannot simply be deleted from software without accounting and GST reversal documentation.

12. Why Stock Quantity and Inventory Value Must Be Reconciled

A physical stock count report and an inventory valuation report answer two different questions:

  • Quantity Report: Explains how many units are physically present in the warehouse.
  • Valuation Report: Explains the financial monetary value assigned to those units.

Consider this reconciliation formula:

Opening Quantity (1,000) + Inward Purchases (500) − Sales Dispatches (700) − Purchase Returns (50) + Sales Returns (20) = Closing Quantity (770 strips)

Even when physical stock matches 770 strips, inventory valuation may still be inaccurate if incorrect purchase rates, mixed scheme units, or backdated entries were applied. Reconciliations must verify both quantity and valuation.

13. The Connection Between Inventory, COGS, and the General Ledger

In a modern perpetual inventory accounting ERP, every completed sale automatically triggers two sets of double-entry ledger postings:

1. Revenue Posting

Account Debit Credit
Customer / Debtor Receivable₹10,000—
Sales Revenue Account—₹10,000

2. Cost of Goods Sold Posting

Account Debit Credit
Cost of Goods Sold (Expense)₹7,000—
Inventory Asset Account—₹7,000

The second entry transfers the asset value into operational cost. If an ERP records billing but fails to post the COGS entry, revenue is recognized without cost, leading to gross margin overstatement and corrupted balance sheet figures.

14. How to Reconcile the Inventory Ledger With the General Ledger

At month-end, the stock valuation sub-ledger must reconcile with the General Ledger Inventory control balance:

Inventory Movement Amount
Opening inventory balance₹30,000
Purchases entered₹50,000
Purchase returns issued−₹5,000
Cost of goods sold−₹60,000
Damaged / expired stock written off−₹2,000
Expected General Ledger Inventory Balance₹13,000

If the General Ledger balance reads ₹13,000 but the detailed stock valuation report sums to ₹15,000, the ₹2,000 difference must be investigated. Common culprits include manual journal entries bypassing inventory, unlinked return credit notes, or cutoff timing errors.

15. Why Backdated Transactions Can Change COGS

Backdated entries are common in busy wholesale agencies. An employee enters a sales invoice on October 10. Three days later, another employee enters a delayed supplier purchase invoice dated October 5.

If the earlier purchase was acquired at a different rate, the recalculated cost layers for all subsequent transactions change. A reliable ERP recalculates cost sequences systematically while maintaining an audit trail and enforcing financial accounting period locks to prevent unintended historical adjustments.

16. What Records Should Support a Reliable COGS Report?

A reliable COGS report is backed by verifiable source records:

Source Document / Record Operational and Accounting Role
Purchase InvoicesEstablish verified quantities, batch numbers, and purchase costs
Purchase Returns (Debit Notes)Record physical return of stock and reversal of supplier credit
Sales InvoicesEstablish medicines dispatched, revenue earned, and cost layer consumed
Sales Returns (Credit Notes)Document accepted customer returns and inventory reinstatement
Batch Movement LedgersProvide complete traceability from receipt through dispatch
Stock Adjustment JournalsRecord breakages, sample issues, and verified physical count variances
General Ledger AccountsEnsures balance sheet asset accounts reconcile with valuation reports
Financial Period ControlsEnforces strict cutoff dates for monthly and annual audit integrity

17. Common Pharma Inventory Valuation Mistakes

  1. Using MRP as Inventory Cost: MRP is a statutory consumer price cap, not your acquisition cost. Carrying stock at MRP drastically overstates assets.
  2. Using Latest Purchase Rate for Historical Sales: Revaluing past dispatches against current inflation rates distorts historical profit.
  3. Ignoring Scheme Quantities: Failing to spread acquisition cost over paid and free units distorts unit margins.
  4. Treating Damaged Returns as Saleable Stock: Damaged medicines returned from retailers must be quarantined immediately.
  5. Ignoring Expired Stock on Books: Failing to write off unsaleable expired stock creates fictitious balance sheet assets.
  6. Unreconciled Backdated Purchases: Inserting past purchase bills without checking impact on subsequent FIFO cost layers.
  7. Assuming Quantity Match Proves Valuation Match: Matching strip counts does not guarantee that cost records are correct.

18. How Maya ERP Connects Inventory and Accounting

Maya ERP, developed by Maya Nexus Technologies, is designed specifically for pharmaceutical wholesale distributors, stockists, and agencies. Rather than treating billing, inventory, and accounting as disconnected silos, Maya ERP unifies them in a responsive, browser-accessible local application.

  • Automated Cost Layer Tracking: Every purchase bill registers batch numbers, trade schemes (10+1), and effective net cost automatically.
  • Real-Time COGS Recognition: When sales invoices are generated, inventory is deducted at the correct cost layer, updating COGS in real time.
  • Return Reconciliations: Sales returns and supplier returns prompt batch verification, ensuring returns restore stock at original cost.
  • Connected Financial Reports: Trial Balance, Profit and Loss, and Balance Sheet update directly from operational transactions.
  • High-Speed LAN Architecture: Host Maya ERP on a local PC server; all counters, purchase desks, and accounts bill over Gigabit LAN with sub-millisecond latency and zero internet dependence.

19. A Practical Inventory and COGS Audit Checklist

Use this operational audit checklist during month-end accounts closing:

Verification Area Audit Standard & Expected Outcome
Opening StockMatches audited closing stock from previous accounting period
Purchase InwardsAll received medicines entered with correct rates and schemes
Purchase ReturnsDebit notes issued and verified against original supplier rates
Sales BillingDispatches billed under correct batch numbers with deducted stock
Calculated COGSReflects adopted costing policy (FIFO or Weighted Average)
Customer ReturnsCredit notes verified; inspected stock returned to correct status
Batch Stock LedgersSum of all batch quantities equals total product catalog stock
Expired MedicinesSegregated to quarantine and written down to Net Realisable Value
Stock Valuation ReportSub-ledger valuation matches General Ledger Inventory Control balance
Trial BalanceTotal debit entries equal total credit entries across all accounts
Profit & LossGross profit reflects: Net Sales − Verified COGS
Backdated TransactionsAudit trail verified and accounting period cutoff locked
Physical Stock CountDiscrepancies investigated, explained, and adjusted via documented journals

Frequently Asked Questions

What is COGS in pharmaceutical distribution?

COGS, or Cost of Goods Sold, represents the inventory cost attributable to medicines and other products sold during an accounting period. It is used to calculate gross profit and supports inventory accounting.

How is pharmaceutical inventory valuation calculated?

Inventory valuation uses appropriate cost records and the business's adopted accounting policy, subject to lower-of-cost-and-net-realisable-value requirements. Depending on the circumstances, FIFO or weighted average cost may be used.

What is the difference between FIFO and weighted average costing?

FIFO assigns the earliest inventory costs to goods sold first. Weighted average costing uses an average of relevant inventory costs. The methods can produce different COGS and closing stock values.

Is FIFO the same as FEFO in pharmaceutical inventory?

No. FIFO is commonly used as an inventory costing formula, while FEFO is a physical stock rotation principle that prioritizes products with earlier expiry dates.

Does GST form part of inventory cost?

Recoverable GST is generally excluded from inventory cost. Non-recoverable taxes may form part of inventory acquisition cost where appropriate.

Do free schemes affect inventory valuation?

Yes. Purchase schemes can affect stock quantity and effective acquisition cost. Their precise treatment depends on the underlying commercial arrangement and applicable accounting policy.

How do sales returns affect COGS?

A sales return may require a reversal or adjustment of the cost previously recognized for the returned goods. The inventory treatment also depends on whether the returned products are suitable for sale.

Should expired medicine stock remain in inventory valuation?

Expired or unsaleable medicines should be assessed for appropriate write-down or write-off treatment. Applicable accounting, legal, and GST requirements must also be considered.

Can stock quantity be correct while COGS is wrong?

Yes. Stock quantity can reconcile even when incorrect purchase costs, valuation methods, returns, or posting entries cause COGS errors.

Can backdated purchase invoices change historical COGS?

Yes. Depending on the costing method and transaction chronology, backdated purchases or corrections may affect historical inventory costs and associated financial records.

Why should the inventory valuation report match the General Ledger?

The inventory valuation report provides supporting detail for inventory balances, while the General Ledger contains the relevant financial control accounts. Differences should be explained through reconciliations, cutoff adjustments, or appropriate accounting entries.

How does Maya ERP help pharmaceutical distributors manage inventory and accounting?

Maya ERP connects pharmaceutical billing, purchasing, batch-oriented inventory, and financial accounting workflows within a common business application. Its local-server architecture also supports access from connected workstations over an office LAN.

Conclusion: Accurate Profit Begins With Accurate Inventory Records

A pharmaceutical distributor's financial performance cannot be evaluated from sales turnover alone. The business must also know what its sold products actually cost, how remaining stock is valued, and whether returns, schemes, and inventory losses have been accounted for accurately.

FIFO and weighted average costing produce different financial outcomes. Batch movements and expiry dates introduce additional operational constraints. Backdated transactions and return adjustments can alter historical figures. And even when stock quantities reconcile, cost records may still require adjustment.

This is why inventory valuation and COGS should be treated as connected accounting processes supported by detailed, traceable transaction records.

Manage Pharmaceutical Inventory and Accounting With Maya ERP

Looking for a modern ERP system for your pharmaceutical wholesale or distribution business? Discover Maya ERP's approach to connected billing, batch-based inventory, purchase management, and accounting.

Explore Maya ERP Pharmaceutical Wholesale ERP

Official References and Disclaimer

Disclaimer: The numerical examples are illustrative and exclude certain taxes or adjustments for clarity. Inventory valuation and financial reporting requirements depend on the accounting framework applicable to the business. Consult a qualified accountant or tax adviser for business-specific treatment. Maya ERP functionality and calculations should be verified against the version and configuration in use.

See it with your own workflow

Bring your own purchase, sales, return and reporting scenarios and see them end to end.

Request a free demoWhatsApp +91 94121 78336

Chat on WhatsApp