Pharmaceutical formulations containing opioid components that each has a release profile. The components may provide immediate or controlled release of the opioid. The invention is also directed to methods of controlling release of one or more opioid compounds and methods of treating pain.