Two chapters most patients never hear about decide how your medication is made and how long it lasts.
Key takeaways
USP General Chapters 795 and 797 are the published standards for pharmaceutical compounding. Chapter 795 covers nonsterile preparations such as capsules, creams, and oral liquids. Chapter 797 covers sterile preparations such as injections and ophthalmics. They set requirements for facilities, personnel training, documentation, quality control, and beyond-use dates, and state boards of pharmacy make them enforceable in law.
- 795 governs nonsterile compounding, 797 governs sterile compounding
- Both set standards for facilities, training, documentation, and quality control
- Beyond-use dates come from these chapters, which is why compounded medications expire sooner than manufactured drugs
- USP is a standards body, not a government agency, but state boards adopt these chapters into regulation
- In California, the operative rules are the Board of Pharmacy’s own regulations, which align with USP
There is a reason your compounded medication carries a beyond-use date measured in weeks rather than the two-year expiration on a bottle from a manufacturer. This is not arbitrary, nor is it simply the pharmacy being cautious for its own sake.
It comes from a set of published standards that most patients never encounter by name. The United States Pharmacopeia maintains General Chapter 795, covering nonsterile compounding, and General Chapter 797, covering sterile compounding. Together, they describe how compounded preparations should be made, by whom, under what conditions, with what documentation, and how long the result can reasonably be expected to remain unchanged after leaving the pharmacy.
These chapters are the quiet infrastructure of compounding safety. Understanding roughly what they require tells you a great deal about what separates a serious pharmacy from a careless one.
What USP is, and why its standards carry weight
The United States Pharmacopeia is a nonprofit scientific organization that publishes standards for medicines, ingredients, and pharmacy practice. It is not a government agency, and it does not license or inspect anyone.
Its standards matter because other bodies adopt them. State boards of pharmacy incorporate USP compounding chapters into their regulations, and once a board does that, the standards become legally enforceable requirements rather than professional recommendations. That is the mechanism that gives them teeth.
California illustrates the pattern. The California Board of Pharmacy has stated that it seeks conformity with USP where possible while reserving authority to set higher standards for public protection, and California’s own compounding regulations under Title 16 of the California Code of Regulations are what actually bind a pharmacy operating here.
The practical implication is that a pharmacy is answerable to its state board, and the state board’s rules reflect USP. Both layers matter.
What Chapter 795 covers
Chapter 795 applies to nonsterile compounding, which is most of what a community compounding pharmacy prepares: capsules, tablets, oral liquids and suspensions, topical creams and ointments, troches, and similar preparations.
Its requirements address the whole process rather than the finished product alone. That includes the compounding environment itself, the equipment and its maintenance, the components used and their documentation, personnel training and competency, documentation of what was made and how, and the quality controls applied along the way. It also addresses how beyond-use dates are assigned.
The underlying logic is that you cannot inspect quality in a finished preparation. A compounded medication cannot be meaningfully tested after the fact the way a manufactured batch can, because there is one of it, and it is going to a patient. Quality must be built into the process, which is why the standard governs it.
What Chapter 797 covers, and why it is stricter
Chapter 797 applies to sterile compounding: preparations that will be injected, infused, or used in the eye, where any microbial contamination goes directly past the body’s defenses.
The consequences of failure here are severe, which is why the requirements are substantially more demanding. Sterile compounding involves controlled air environments, specific engineering controls, gowning and aseptic technique requirements, environmental monitoring, personnel competency testing, and considerably tighter beyond-use dating.
The 2012 fungal meningitis outbreak, which killed dozens of people after contaminated steroid injections were distributed nationally, is the reference point for why these standards exist and why regulators treat sterile compounding as a category apart. It also prompted the federal restructuring that created outsourcing facilities as a separate regulatory category under Section 503B of federal law.
You cannot inspect quality into a preparation made once, for one person. It has to be built in.
Beyond-use dates and why your medication expires so soon
This is where the standards become visible to you, and it is the question patients ask most often.
A beyond-use date is not the same thing as a manufacturer’s expiration date. An expiration date on a commercial product is supported by stability testing on that exact formulation, in that exact container, under defined conditions, often over years. That testing is possible because the manufacturer makes the same thing repeatedly.
A compounded preparation has no such data. It was made once, for you. So the beyond-use date is assigned according to standards that account for the type of preparation, the water content, the storage conditions, and whether it is sterile or nonsterile. USP publishes guidance on how these dates are determined, and the resulting windows are conservative by design.
That conservatism is the point. A shorter beyond-use date is not a sign that something is lower quality. It reflects the absence of long-term stability data for a preparation that exists in a quantity of one, as well as the reasonable decision to err on the side of caution.
Two practical consequences follow. Storage instructions matter more than they do for manufactured drugs, so follow them precisely. And planning refills matters, because you cannot stockpile a compounded medication the way you might a commercial one.
What this means when choosing a pharmacy
You will not be able to audit a pharmacy’s compliance yourself, and you should not have to. But knowing what the standards address tells you what questions are reasonable.
Ask whether the pharmacy compounds sterile preparations, nonsterile, or both, since the requirements differ enormously and not every pharmacy does both. Ask about storage and handling for your specific preparation, and expect a specific answer rather than a general one. If you’re curious, ask how the pharmacy determined the beyond-use date on your medication; a pharmacy that takes this seriously will explain it.
Underneath all of that, the verifiable thing is licensure. Your state board inspects pharmacies against regulations that incorporate these standards, so an active license in good standing proves that a pharmacy has been examined. Accreditation through the National Association of Boards of Pharmacy adds a further voluntary layer.
Standards you never see, working anyway
The best outcome of standards like these is that patients never think about them. Your capsules are consistent, your cream is stable, your nasal preparation performs the same way in March as it did in January, and none of that requires your attention.
It requires continuous attention from a pharmacy, and it is worth knowing that this framework exists. When a compounded medication carries a shorter date than you expected or a storage instruction that seems fussy, that is these standards showing through.
King’s Pharmacy and Compounding Center in Irvine, CA, is licensed in California and twelve additional states and NABP accredited, and we are happy to explain how a preparation should be stored and why its beyond-use date is what it is. If you have a question about a medication we have made for you, ask us.
Contact King’s Pharmacy at 949.387.0780, or explore our ENT, women’s health, and functional medicine compounding services.
Frequently asked questions
What is the difference between USP 795 and USP 797? Chapter 795 sets standards for nonsterile compounding, such as capsules, creams, and oral liquids. Chapter 797 sets standards for sterile compounding, such as injections and ophthalmic preparations. Sterile requirements are substantially stricter because contamination bypasses the body’s normal defenses.
Are USP standards legally required? USP is a standards-setting organization, not a government agency. Its chapters become legally enforceable when state boards of pharmacy incorporate them into regulation, which states commonly do. A pharmacy is directly answerable to its state board’s rules.
Why does my compounded medication expire so much sooner than a regular prescription? Manufactured drugs carry expiration dates supported by extensive stability testing on identical batches. A compounded preparation is made once, so it has no such data. Beyond-use dates are assigned conservatively based on published standards that account for preparation type and storage conditions.
Does a shorter beyond-use date mean lower quality? No. It reflects the absence of long-term stability data for a one-off preparation and a deliberate decision to be cautious. It is a safety feature rather than a shortcoming.
How do I know a pharmacy follows these standards? State boards of pharmacy inspect pharmacies against regulations incorporating these standards, so an active license in good standing is your primary evidence. Check your state board’s public license lookup, and treat voluntary accreditation as an additional signal.




