Profession Calculators
Pharmacy & Clinical Pharmacology

Pharmacy Compounding Cost Calculator

Calculate accurate compounding prices including ingredient costs, pharmacist/technician labor, overhead allocation, supplies, profit margin, and dispensing fees for custom pharmaceutical preparations.

Share:

This calculator helps compounding pharmacies determine accurate pricing for custom preparations by accounting for ingredients, labor, overhead, and target profit margins. Prices should comply with state pharmacy regulations and be competitive with market rates.

Ingredients
Labor & Pricing

Typical range: 25-50%

Typical range: 30-50%

Capsules, vials, tubes, etc.

Embed This Calculator on Your Website

Add this free calculator to your blog, website, or CMS with a simple copy-paste embed code.

Introduction

Pharmacy compounding is a $10 billion segment of the US pharmaceutical market, and it is one of the most financially misunderstood services in healthcare. Compounding pharmacies frequently underprice their preparations because they calculate ingredient cost and add a markup, completely ignoring the labor time, equipment depreciation, beyond-use dating waste, and regulatory compliance burden that represent the true cost of compounding. According to the National Association of Pharmacy Regulatory Authorities and state board guidance, USP 795 and USP 797 compliance for non-sterile and sterile compounding respectively requires documented quality control processes that add 20% to 35% to the direct production cost of each preparation. A pharmacist who calculates that a 30-day supply of a compounded topical hormone costs $8.40 in ingredients and prices it at $25 is not running a sustainable compounding operation. The true cost before margin is likely $18 to $22 when all inputs are properly accounted.

What This Calculator Does

This calculator computes the full cost of a compounded preparation by accounting for active pharmaceutical ingredient (API) cost, base/vehicle ingredient costs, direct labor time at pharmacist and technician rates, equipment depreciation per batch, quality control testing and documentation time, packaging and labeling materials, overhead allocation per preparation, and waste/overage factor for beyond-use dating loss. It outputs total cost of goods per unit, recommended minimum price based on target gross margin, and gross profit per preparation. It supports both USP 795 (non-sterile) and USP 797 (sterile) cost profiles.

The Formula

Total Cost per Unit = (API Cost + Base Cost + Packaging) + (Pharmacist Time × Pharmacist Rate) + (Tech Time × Tech Rate) + Equipment Depreciation/Batch + QC Cost + Overhead Allocation | Minimum Price = Total Cost / (1 - Target Gross Margin %) | Waste-Adjusted Cost = Total Cost × (1 + Waste/Overage %)

The formula aggregates all direct and indirect costs associated with producing a single compounded unit. API cost is calculated from the price per gram or milliliter of bulk API multiplied by the quantity used per preparation, plus a waste factor for overage and beyond-use dating losses (typically 10% to 25%). Labor cost separates pharmacist and technician time because their fully-loaded hourly rates differ substantially ($65 to $120/hour for pharmacists versus $20 to $35/hour for technicians in 2026). Equipment depreciation spreads the cost of compounding equipment (laminar flow hoods, balances, homogenizers) across the number of preparations produced per year. Overhead allocation includes facility costs, utilities, licensing, and insurance divided by total annual preparation volume.

Step-by-Step Example

1

Calculate API and base ingredient costs per preparation

Example: Compounded progesterone 100 mg capsules, 30-count supply. API: progesterone micronized, $0.18/capsule = $5.40. Base: olive oil and gelatin capsule shells, $0.09/capsule = $2.70. Total raw material cost: $8.10 per 30-count preparation. Add 15% waste/overage factor: $8.10 × 1.15 = $9.32.

2

Add labor costs for production

Pharmacist verification and supervision: 8 minutes at $85/hour fully-loaded = $11.33. Technician compounding time: 22 minutes at $28/hour = $10.27. Total labor per preparation: $21.60. Note: for sterile preparations (USP 797), add gowning time (10 to 15 minutes) and cleanroom setup/breakdown allocation.

3

Add equipment depreciation, QC, and overhead

Equipment depreciation per preparation: $1.45 (based on $18,000 equipment cost, 10-year life, 1,250 preparations/year capacity utilization). QC documentation and labeling: 5 minutes pharmacist time = $7.08. Packaging materials: $0.85. Overhead allocation: $4.20 (facility, licensing, insurance per preparation at 1,250/year volume). Total: $13.58.

4

Calculate total cost and minimum price

Total cost per preparation: $9.32 + $21.60 + $13.58 = $44.50. Target gross margin: 40%. Minimum price = $44.50 / (1 - 0.40) = $74.17. Rounded pricing: $75.00 for a 30-day supply. Gross profit: $75.00 - $44.50 = $30.50 per preparation. A pharmacy pricing this at $25 based on ingredient cost alone was losing $19.50 per preparation.

Real-World Use Cases

Building a Sustainable Pricing Schedule for New Compounding Services

A community pharmacy adding hormone replacement therapy compounding uses the calculator to establish prices for 15 formulations before launching the service. The analysis reveals that transdermal creams are the most labor-intensive per preparation and require 45% gross margin to cover the 30-minute production time per batch. Capsule preparations are most efficient at $32 to $38 total cost. The pharmacy sets tiered pricing: $65 to $85 for creams, $55 to $70 for capsules, $90 to $120 for troches, based on actual cost structures.

Evaluating USP 797 Sterile Compounding Feasibility

A pharmacy director evaluating sterile IV admixture compounding uses the calculator to model costs including laminar flow hood certification ($1,200/year), ISO 5 cleanroom facilities ($15,000/year lease allocation), and additional pharmacist oversight time. At 800 sterile preparations per year, fixed costs add $20.25 per preparation before variable costs. The analysis shows sterile compounding requires a minimum price of $95 to $140 per preparation to be financially sustainable, which sets the minimum viable volume threshold.

Cost Audit of Existing Compounding Formulations

A compounding pharmacy audits its existing 40-formulation price list and finds 12 preparations where prices were set 3 years ago without updating for API cost inflation. Progesterone API costs increased 28% since original pricing. Vitamin D3 in coconut oil increased 19%. The calculator reveals these 12 formulations are now priced below cost. The pharmacy uses the output to present a structured price increase to prescribers, with cost documentation justifying the increases.

Comparison

Preparation TypeAvg Pharmacist TimeAvg Tech TimeTypical Total Cost RangeTypical Price Range
Capsules (non-sterile)10-15 min20-30 min$28-$45$55-$75
Topical Creams/Gels12-18 min25-35 min$32-$55$65-$95
Oral Solutions/Suspensions10-15 min20-30 min$25-$42$50-$75
Troches/Lozenges15-20 min30-45 min$38-$60$75-$110
Suppositories15-20 min30-45 min$35-$58$70-$100
Sterile IV/Injections (USP 797)20-30 min25-40 min$65-$120$120-$200

Common Mistakes to Avoid

  • Pricing based solely on ingredient cost plus a flat markup percentage. A 40% markup on $8 in ingredients yields $11.20 price, which produces a $2.90 loss per preparation when true cost is $14. Ingredient cost typically represents only 20% to 35% of the total cost of a compounded preparation. Labor is almost always the largest cost component.

  • Not including pharmacist verification time in labor cost. Every compounded preparation requires pharmacist review of the formula, ingredient verification, and final product check. This is not optional; it is a Board of Pharmacy requirement. Pharmacist oversight time is 10 to 20 minutes per preparation minimum, at $65 to $120/hour fully loaded. Excluding this cost understates true labor by 60% to 80%.

  • Ignoring beyond-use dating waste. Bulk API purchased in 100g quantities for a formulation requiring 3g per preparation creates 97g of inventory that must be used within the API's beyond-use date or discarded. High-cost APIs with short beyond-use periods (e.g., reconstituted biologics) generate significant waste costs that must be allocated across preparations made from each batch.

  • Using retail pharmacy wage rates for pharmacist cost without fully-loaded adjustment. Base hourly wage ignores employer payroll taxes (7.65% FICA), benefits (typically 20% to 30% of base salary for health, dental, 401k), and liability insurance. A pharmacist earning $62/hour base costs the pharmacy $80 to $90/hour fully-loaded. Using base wage understates true labor cost by 25% to 45%.

Frequently Asked Questions

What is a typical gross margin for compounded medications?

Sustainable compounding programs target 40% to 55% gross margin on non-sterile preparations and 45% to 60% on sterile preparations to cover the higher regulatory compliance and facility costs. Below 35% gross margin, compounding programs often cannot sustain USP compliance investments, equipment maintenance, and quality assurance staff. Gross margin below 25% is a financial warning sign that pricing was set based on ingredient cost rather than total cost of production.

How do API costs affect compounding pricing over time?

Active pharmaceutical ingredient costs are volatile and subject to supply chain disruptions, import tariffs, and manufacturing capacity constraints. Between 2022 and 2025, compounding-relevant APIs including progesterone, testosterone, and some compounded hormones increased 15% to 40% in wholesale cost due to FDA supply chain pressures and increased demand from 503B outsourcing facilities. Compounding pharmacies should audit their cost basis at minimum annually, and quarterly for high-volume formulations using price-sensitive APIs.

What is the difference between 503A and 503B compounding and how does it affect cost?

503A pharmacies compound patient-specific prescriptions in traditional pharmacy settings. 503B outsourcing facilities compound in large batches for hospital use without patient-specific prescriptions and are subject to FDA oversight similar to drug manufacturers. 503B facilities have significantly higher compliance costs (FDA registration, cGMP standards, sterility testing) but can achieve economies of scale. 503A pharmacies have lower fixed compliance costs but higher per-unit costs due to small batch sizes. The calculator is designed for 503A compounding pharmacies.

How should I calculate overhead allocation for compounding preparations?

Overhead allocation per preparation = Total Annual Overhead / Annual Preparation Volume. Annual overhead includes rent or facility allocation for compounding space, utilities, Board of Pharmacy compounding license fees, USP compliance audits, equipment calibration and maintenance, and general liability insurance specific to compounding operations. If your pharmacy compounds 1,000 preparations per year and annual overhead attributable to compounding is $24,000, overhead per preparation is $24. This must be included in cost calculations or each preparation effectively subsidizes overhead from other pharmacy revenue.

Accuracy and Disclaimer

Cost estimates generated by this calculator are based on user inputs and 2026 industry benchmarks for pharmacist and technician labor rates, equipment costs, and regulatory compliance expenses. Actual costs vary by location, preparation type, equipment investments, regulatory requirements, and operational efficiency. Pricing recommendations are for pharmacy business planning purposes only. This calculator does not provide regulatory compliance guidance. Consult your state Board of Pharmacy, USP Chapter 795/797 standards, and a pharmacy business consultant for preparation-specific compliance and pricing requirements.

Conclusion

Accurate compounding cost analysis protects the financial viability of the compounding service and ensures that the pharmacy can sustain the quality and compliance investments that patients depend on. Once you have established your cost basis, ensure your pricing structure is reviewed quarterly as API costs and labor rates change. For pharmacies also managing retail dispensing, use the Medication Adherence Rate Calculator to model how compounding services affect refill rates and patient retention, a key revenue driver that is often undervalued in compounding program ROI analysis.