For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Acid-base imbalance

An acid-base imbalance is when your blood becomes too acidic (acidosis) or too alkaline (alkalosis), usually because of another illness affecting the lungs, kidneys or metabolism.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Your body works best when your blood is kept within a very narrow range of acidity. This is measured as pH, a scale where lower numbers mean more acidic and higher numbers mean more alkaline (also called basic). Healthy blood is slightly alkaline, with a pH of about 7.35 to 7.45. An acid-base imbalance (doctors also call it an acid-base disorder) happens when the blood moves outside this range.

There are two main directions the balance can tip:

  • Acidosis: too much acid, or too little base, in the body. The blood pH may drop below 7.35.
  • Alkalosis: too little acid, or too much base. The blood pH may rise above 7.45.

An acid-base imbalance is almost never a disease on its own. It is a sign that something else is going on, such as a lung problem, kidney disease, uncontrolled diabetes, severe vomiting or diarrhea, a serious infection, or the effect of a medicine or poison. Mild imbalances may cause no symptoms and are found only on a blood test. Severe imbalances can be life-threatening and need hospital care.

This page gives an overview of the group. You can read more on our separate pages for acidosis and alkalosis.

How your body keeps the balance

Your body makes acid all the time as it uses food for energy. To keep the blood pH steady, three systems work together:

  • Buffers in the blood: chemicals, mainly bicarbonate, soak up extra acid or base within seconds.
  • The lungs: when you breathe out, you get rid of carbon dioxide (CO2), which forms acid in the blood. Breathing faster removes more acid; breathing slower keeps more in.
  • The kidneys: over hours to days, the kidneys remove acid in the urine and hold on to or release bicarbonate.

When one system has a problem, the others try to make up for it. This is called compensation. For example, if the kidneys cannot clear acid, you may breathe faster and deeper to blow off more CO2. Compensation helps, but it usually cannot fully fix the problem.

Main types

Doctors sort acid-base imbalances by direction (acid or alkaline) and by cause (lungs or metabolism). This gives four basic types. A person can have more than one at the same time.

Metabolic acidosis

Acid builds up, or bicarbonate is lost, because of a problem other than breathing. Common causes include:

  • Diabetic ketoacidosis (DKA), when a lack of insulin makes the body burn fat and produce acids called ketones
  • Lactic acidosis, often from severe infection (sepsis), shock or low oxygen to the tissues
  • Kidney failure, when the kidneys can no longer remove acid
  • Severe diarrhea, which washes bicarbonate out of the body
  • Some poisons, such as methanol, antifreeze (ethylene glycol) or an aspirin overdose

Respiratory acidosis

CO2 builds up because you are not breathing out enough. Causes include severe chronic obstructive pulmonary disease (COPD), a bad asthma attack, severe obesity that affects breathing (obesity hypoventilation syndrome), muscle or nerve diseases that weaken breathing, and medicines that slow breathing, such as opioids or sedatives.

Metabolic alkalosis

The body loses acid or gains too much base. Common causes are repeated vomiting or stomach drainage (which removes stomach acid), water pills (diuretics), low potassium levels, some hormone problems, and taking large amounts of antacids or baking soda.

Respiratory alkalosis

You breathe out too much CO2, usually from breathing too fast or too deeply (hyperventilation). This can happen with anxiety or panic attacks, pain, fever, pregnancy, high altitude, lung conditions such as pneumonia or a blood clot in the lung, liver disease, and early aspirin poisoning.

A note on achlorhydria

Medical classification systems sometimes list achlorhydria in this group. Achlorhydria means the stomach makes little or no stomach acid. It affects digestion and how well you absorb some nutrients, such as vitamin B12 and iron, rather than the pH of your blood. It has its own page.

Symptoms

The symptoms usually come from the illness that caused the imbalance, but the change in pH can add its own effects. Mild or slow-developing imbalances may cause no symptoms at all.

Possible signs of acidosis

  • Fast, deep breathing (with metabolic acidosis) or slow, shallow breathing (with respiratory acidosis)
  • Tiredness, weakness or feeling generally unwell
  • Headache, confusion or sleepiness
  • Nausea, vomiting or belly pain
  • A fast heartbeat
  • Fruity-smelling breath, strong thirst and passing a lot of urine, in diabetic ketoacidosis

Possible signs of alkalosis

  • Tingling or numbness around the mouth, hands or feet
  • Muscle twitching, cramps or spasms in the hands and feet
  • Light-headedness or feeling faint
  • Confusion
  • An irregular heartbeat, especially if potassium is also low

Severe imbalances in either direction can lead to drowsiness, seizures, dangerous heart rhythms, coma or death if not treated.

Risk factors

You are more likely to develop an acid-base imbalance if you have:

  • Diabetes, especially type 1 diabetes
  • Long-term kidney disease
  • Lung disease such as COPD, or a condition that weakens the breathing muscles
  • Liver disease or heart failure
  • A serious infection, injury or recent major surgery
  • Prolonged vomiting or diarrhea, or an eating disorder
  • Heavy alcohol use
  • Medicines that affect breathing, the kidneys or salt levels, such as opioids, sedatives, diuretics and some diabetes medicines

Older adults, babies and young children can become unwell more quickly when they lose fluids or become sick.

Diagnosis

Your doctor will ask about your symptoms, health conditions and any medicines or substances you have taken, and examine you. Tests help confirm the imbalance and find its cause.

  • Blood gas test: a small blood sample, usually from an artery in the wrist (arterial blood gas) or sometimes from a vein, measures the pH, CO2, oxygen and bicarbonate. This is the key test.
  • Electrolyte panel: measures sodium, potassium, chloride and bicarbonate. Doctors use these numbers to calculate the anion gap, which helps narrow down the cause of metabolic acidosis.
  • Blood sugar and ketone tests, to check for diabetic ketoacidosis
  • Kidney and liver tests
  • Lactate level, to check for lactic acidosis
  • Urine tests, which can show how the kidneys are handling acid and salts
  • Toxicology tests if a poison or overdose is possible
  • Chest X-ray or other imaging if a lung problem is suspected

As a general guide, normal blood bicarbonate is about 22 to 28 mmol/L (22 to 28 mEq/L), and normal arterial CO2 is about 35 to 45 mmHg (4.7 to 6.0 kPa). Your care team will explain what your own results mean.

Treatment

The most important part of treatment is fixing the underlying cause. Once the cause is treated, the body's own systems can usually bring the pH back to normal. What this involves depends on the type:

  • Diabetic ketoacidosis: treated in hospital with fluids through a vein (IV), insulin to stop ketone production, and potassium chloride or other salts to replace what is lost.
  • Lactic acidosis from infection or shock: fluids, antibiotics if there is an infection, oxygen and support for blood pressure.
  • Kidney-related acidosis: sodium bicarbonate or similar alkali medicines may be given to replace bicarbonate. Severe cases may need dialysis, a treatment that filters the blood.
  • Respiratory acidosis: treating the lung problem, for example with inhaled medicines that open the airways, and sometimes a machine to help breathing through a mask (non-invasive ventilation) or a breathing tube. If an opioid overdose is the cause, naloxone can reverse its effects.
  • Metabolic alkalosis: replacing fluids, salt (sodium chloride) and potassium, stopping the vomiting, and reviewing medicines such as diuretics. In some cases, doctors use acetazolamide, which helps the kidneys get rid of extra bicarbonate.
  • Respiratory alkalosis: treating the cause, such as pain, fever, a lung condition or anxiety. Calm, slow breathing can help when hyperventilation comes from panic, but sudden breathlessness should always be checked by a professional first.

Poisonings need urgent, specialised treatment, sometimes with an antidote or dialysis. Do not take baking soda, antacids or other remedies to try to change your blood pH yourself, and do not stop or change prescribed medicines without talking to your clinician.

Living with an ongoing imbalance

Some people, such as those with long-term kidney disease or severe COPD, live with a mild, ongoing imbalance. These steps can help:

  • Take your medicines as prescribed and keep up with regular blood tests.
  • Follow the eating plan your care team recommends. With kidney disease, this may include advice on protein, fruit and vegetables, and salt.
  • If you have diabetes, know your sick-day plan. Check your blood sugar and ketones more often when you are unwell, keep drinking fluids, and never stop insulin without medical advice.
  • Drink enough fluids when you have vomiting or diarrhea, and seek help early if you cannot keep fluids down.
  • Avoid alcohol or keep it low, and do not smoke.
  • Ask your pharmacist before taking over-the-counter products, including antacids and pain relievers.

Complications

Without treatment, a severe acid-base imbalance can affect many organs. Possible complications include:

  • Dangerous heart rhythm problems and low blood pressure
  • Confusion, seizures or coma
  • Breathing failure
  • Problems with potassium and calcium levels
  • Bone thinning and kidney stones with long-term acidosis
  • Slower growth in children with long-term acidosis

Outlook

The outlook depends mostly on the cause and how quickly it is treated. Imbalances caused by short-term problems, such as vomiting, diarrhea or a panic attack, usually get better fully once the cause settles. Diabetic ketoacidosis usually responds well to prompt hospital treatment. Imbalances linked to severe infection, shock, poisoning or advanced organ failure are more serious, and early treatment makes a big difference.

Prevention

You cannot prevent every acid-base imbalance, but you can lower your risk:

  • Keep long-term conditions such as diabetes, kidney disease and lung disease well managed, with regular check-ups.
  • Use medicines only as prescribed, and store medicines and household chemicals safely away from children.
  • Replace fluids early during stomach illness, using oral rehydration solutions if advised.
  • Get vaccinations recommended for you, such as flu and pneumococcal vaccines, to lower the risk of serious lung infections.
  • Learn the warning signs of diabetic ketoacidosis if you or someone you care for has diabetes.

In Canada

In Canada, provincial and territorial poison centres give free, 24-hour advice on suspected poisonings, including aspirin, antifreeze and methanol. Diabetes Canada publishes clinical practice guidelines that include the management of diabetic ketoacidosis.

Diagnosis

Use a systematic approach on arterial or venous blood gas with simultaneous electrolytes:

  1. Identify acidaemia (pH below 7.35) or alkalaemia (pH above 7.45).
  2. Determine the primary process: PaCO2 for respiratory, HCO3- for metabolic.
  3. Assess compensation. Metabolic acidosis: expected PaCO2 = 1.5 x HCO3- + 8 (plus or minus 2) mmHg (Winter's formula). Metabolic alkalosis: PaCO2 rises about 0.7 mmHg per 1 mmol/L rise in HCO3-. Acute respiratory acidosis: HCO3- rises about 1 per 10 mmHg PaCO2 (chronic about 3.5 to 4). Acute respiratory alkalosis: HCO3- falls about 2 per 10 mmHg (chronic about 4 to 5). Deviation suggests a mixed disorder.
  4. In metabolic acidosis, calculate the anion gap (Na+ minus [Cl- + HCO3-]) and correct for albumin (add about 2.5 per 10 g/L fall below 40 g/L). If raised, compare delta gap with delta HCO3- to detect coexisting non-gap acidosis or metabolic alkalosis.

High anion gap causes: ketoacidosis (diabetic, alcoholic, starvation), lactic acidosis, uraemia, toxic alcohols, salicylates; check osmolal gap if toxic alcohol suspected. Normal anion gap: GI bicarbonate loss, renal tubular acidosis, saline excess; urine anion gap helps distinguish. Metabolic alkalosis: urine chloride below about 20 mmol/L suggests chloride-responsive causes (vomiting, prior diuretics); higher values suggest mineralocorticoid excess, ongoing diuretics or Bartter/Gitelman syndromes.

Management

Treat the underlying cause. DKA: follow local or national protocols (e.g. ADA consensus, Diabetes Canada, JBDS) with IV fluids, fixed-rate IV insulin and potassium replacement; delay insulin if K+ is below 3.3 to 3.5 mmol/L. Sepsis-associated lactic acidosis: resuscitation and source control per Surviving Sepsis Campaign guidance. Bicarbonate is generally not recommended for DKA or lactic acidosis unless pH is very low (e.g. below 6.9 to 7.0) or there is severe AKI; it is indicated for normal anion gap acidosis with significant bicarbonate loss, CKD (KDIGO 2024 advises considering alkali therapy when serum HCO3- is persistently below about 18 mmol/L) and some poisonings (salicylates, sodium channel blockers). Fomepizole and haemodialysis for toxic alcohols.

Respiratory acidosis: treat bronchospasm, reverse opioids with naloxone, and use NIV for acute hypercapnic COPD exacerbation (pH below 7.35 with PaCO2 above about 6.0 to 6.5 kPa / 45 to 49 mmHg persisting despite optimal medical therapy), per BTS/NICE and ERS/ATS guidance. Avoid excessive oxygen in at-risk patients (target SpO2 88 to 92%). Metabolic alkalosis: correct volume, chloride and potassium; consider acetazolamide in volume-overloaded patients; address magnesium deficiency.

Cautions: avoid rapid correction of chronic hypercapnia (post-hypercapnic alkalosis); monitor K+ closely during insulin or bicarbonate therapy; bicarbonate may cause hypernatraemia, volume overload and hypokalaemia. Metformin-associated lactic acidosis and SGLT2 inhibitor euglycaemic DKA should be considered in the right context.

Red flags: pH below 7.1 or above 7.6, altered consciousness, arrhythmia, haemodynamic instability, suspected toxic ingestion. Prognosis reflects the cause; severe lactic acidosis carries high mortality.

When to get medical help

See your doctor soon if you have a long-term condition such as diabetes, kidney disease or lung disease and you notice:

  • Unusual tiredness, weakness or loss of appetite that does not improve
  • Ongoing nausea, vomiting or diarrhea lasting more than a day or two
  • Frequent tingling or muscle cramps in your hands, feet or around your mouth
  • Blood sugar that stays high, or ketones in your blood or urine

Go to the emergency department or call emergency services right away if you or someone else has:

  • Very fast, deep breathing, or breathing that is very slow, shallow or difficult
  • Confusion, extreme drowsiness, fainting, a seizure or difficulty waking up
  • Signs of diabetic ketoacidosis: vomiting, belly pain, fruity-smelling breath and fast breathing, especially with high blood sugar
  • Chest pain, a racing or irregular heartbeat
  • Possible poisoning or overdose, including aspirin, antifreeze or methanol
  • Vomiting with inability to keep any fluids down, especially in a baby, child or older adult

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Acid-Base Imbalance. meshb.nlm.nih.gov
  2. MedlinePlus: Acidosis. medlineplus.gov/ency/article/001181.htm
  3. MedlinePlus: Blood gases. medlineplus.gov/ency/article/003855.htm
  4. NHS: Diabetic ketoacidosis. nhs.uk/conditions/diabetic-ketoacidosis/