The invention provides sublingual formulations containing buprenorphine, a pharmaceutically acceptable salt thereof, or a derivative thereof. The invention further provides sublingual formulations containing buprenorphine and naloxone, pharmaceutically acceptable salts thereof or derivatives thereof. The invention further provides a method of treating pain or opioid dependence by administering sublingual formulations containing buprenorphine, a pharmaceutically acceptable salt thereof, or a derivative thereof to a patient in need thereof.