Pain under the right rib cage when inhaling, the deeper the inhalation, the more pain, may be trauma, intercostal neuralgia, pleurisy, cholecystitis and other diseases. Patients are advised to seek timely medical treatment to avoid delaying their condition.