Lesson Explainer: Tests for Anions | Nagwa Lesson Explainer: Tests for Anions | Nagwa

Lesson Explainer: Tests for Anions Chemistry

In this explainer, we will learn how to identify aqueous negative ions based on their reactivity and the color and solubility of their salts.

A laboratory chemical test will generally rely on the occurrence of one of the following. These are fundamental indications that a chemical reaction has occurred:

  • a color change,
  • the production of an odor,
  • a change in temperature,
  • the production of a gas (such as the formation of bubbles),
  • the production of a precipitate.

A test can be positive or negative.

A positive test result (A) means that we observe the change we expected to get if the substance we were testing for was present. Test results B, C, and D show negative results; however, some chemical tests give the same results for other substances too (E), so we should use other methods to confirm our initial ideas: positivetestresultthesubstanceweweretestingformighthavebeenthere.

A negative test result means that something else happened, including nothing at all. Generally, a negative result means that we can be sure that the substance we were testing for was not there: negativetestresultthesubstanceweweretestingforwasnotthere.

By combining appropriate tests and using both positive and negative results, we can narrow down the candidates until we are sure what was and what was not there to begin with.

In this kind of qualitative analysis, different chemical substances are used to identify unknown anions, also known as acidic radicals. Negative monatomic and polyatomic ions are commonly referred to as anions. Anions have a net negative charge as the total number of electrons in the species outnumber the total number of protons.

When hydrogen ions are lost from an acid, the anion remaining is referred to as an acidic radical. Similarly, when hydroxide ions are lost from a hydroxide compound, the cation, known as a basic radical, remains. When acidic radicals and basic radicals combine chemically, a salt is formed.

We will examine three separate groups of anions in this explainer:

  • anions detected using dilute hydrochloric acid,
  • anions detected using concentrated sulfuric acid,
  • anions detected by barium chloride solution.

Dilute HCl GroupConcentrated Sulfuric Acid GroupBarium Chloride Group
  • Carbonate (CO32)
  • Sulfite (SO32)
  • Bicarbonate (HCO3)
  • Sulfide (S2)
  • Thiosulfate (SO232)
  • Nitrite (NO2)
  • Halides (F, Cl, Br, and I)
  • Nitrate (NO3)
  • Sulfate (SO42)
  • Phosphate (PO43)

This order of testing in these groups has consequences. Any unknown anion should initially be tested using dilute hydrochloric acid. Should hydrochloric acid prove to be ineffective at determining the identity of the unknown acidic radical, then concentrated sulfuric acid should be used. Similarly, if concentrated sulfuric acid proves to be insufficient to determine the identity of the unknown anion, then barium chloride solution should be used.

The order of this sequence is determined by the strength of the acidic radicals. In the first group, the main reagent is dilute hydrochloric acid. This acid is more stable than the anions that it is used to test for, such as the carbonate anion. In this case, the hydrochloric acid will replace the less stable anions resulting in the evolution of gases that we can test for.

In the second group, concentrated sulfuric acid is used. The sulfuric acid is more stable than the anions that it is testing for, which include the chloride anion that was the testing reagent in the first group.

In the final group, we do not have a suitable reagent that is more stable than the sulfate and phosphate anions, and as such this group is tested using barium chloride solution.

Dilute hydrochloric acid can be used to identify the following anions:

  • carbonate (CO32),
  • sulfite (SO32),
  • bicarbonate (HCO3),
  • sulfide (S2),
  • thiosulfate (SO232),
  • nitrite (NO2).

In this explainer, we will focus on

  • carbonate (CO32),
  • sulfite (SO32),

The carbonate anion (CO32) is generally poorly soluble in water; however, sodium carbonate, potassium carbonate, and ammonium carbonate are soluble. The following primary test will work with solid carbonates and solutions.

Carbonate ions decompose if they react with acids, producing carbon dioxide and water.

Reaction: Carbonate Ions and Acid


Therefore, if we treat a substance with dilute hydrochloric acid and bubbles of gas are produced, the substance could have contained carbonate ions. We can test if the gas is carbon dioxide using the limewater test. Almost any acid will work, but hydrochloric acid is preferred because it is generally redox stable and cheap. This is the full test.

Example 1: Recall the Solution Used to Test the Gas Given Off by a Carbonate Anion Reacting with an Acid

When testing for the carbonate anion using dilute hydrochloric acid, through which of the following solutions is the gas produced commonly passed?

  1. Acidified potassium permanganate
  2. Acidified potassium dichromate
  3. Limewater
  4. Barium chloride
  5. Silver nitrate


If carbonate ions react with acids, they decompose into carbon dioxide and water according to the following equation: CO()+2H()CO()+HO()32+22saqgl

Limewater is a saturated solution of calcium hydroxide. When carbon dioxide gas is passed through limewater it turns cloudy, as white calcium carbonate is formed in the solution of calcium hydroxide.

Acidified potassium permanganate and acidified potassium dichromate are both solutions that can be used to test for the presence of reducing gases such as sulfur dioxide. Barium chloride solution is used to test for sulfate and phosphate anions. Finally, silver nitrate is used in multiple tests throughout the testing protocol used to identify unknown acidic radicals. However, none of these substances are linked to a chemical test for a carbonate via the generation of carbon dioxide gas.

Taking all this into consideration, the correct answer is C, limewater.

However, bicarbonate ions also react in a similar way and so a confirmatory test is required. Initially, the unknown substance can be mixed with water; most carbonates are insoluble and if the salt is insoluble in cold water, then this can indicate the presence of carbonate. However, some carbonates dissolve, and all bicarbonates dissolve, so this may not be enough. If a solution is formed, a confirmatory test using magnesium sulfate will be necessary.

If magnesium sulfate is added to a cold solution in liquid form, the magnesium ions will react with the soluble carbonate ions instantly forming a white precipitate, of MgCO3, which is soluble in cold dilute hydrochloric acid: NaCO()+MgSO()MgCO()+NaSO()MgCO()+2HCl()MgCl()+CO()+HO()2343243222aqaqsaqsaqaqgl

In the case of a bicarbonate solution, a white precipitate will not form unless the solution is heated. During the heating process, the bicarbonate anion decomposes forming a carbonate anion, which reacts as shown above.

Testing with dilute hydrochloric acid is also used to detect the presence of sulfite anions.

In the primary test, sulfite ions can be converted to sulfur dioxide (SO2) by treatment with hydrochloric acid: SO()+2H()SO()+HO()32+22saqgl

SO2 is colorless, toxic, and acidic, and it is responsible for the smell of burned matches.

Not only is SO2 acidic, but also it can be oxidized. The primary test for a sulfite is to test for SO2 using oxidizing agents such as potassium permanganate (KMnO4) or potassium dichromate (KCrO227).

The gas produced when HCl()aq is added to the unknown solid is tested with strips of filter paper wetted with acidified solutions of either KMnO4 or KCrO227.

SO2 will cause the color of a solution of potassium permanganate to change from deep purple to pale pink: 5SO()+2MnO(,purple)+2HO()2Mn(,palepink)+5SO+4H()2422+42+aqaqlaqaq

It will also cause the color of a solution of potassium dichromate to change from bright orange to green: 3SO()+CrO(,orange)+2H()3SO()+2Cr(,green)+HO()2272+423+2aqaqaqaqaql

Therefore, if treating a solution with hydrochloric acid and heat produces an acidic and oxidizable gas, the original solution probably contained sulfite ions.

A confirmatory test for the sulfite anion involves dissolution of the unknown solid followed by mixing the solution with silver nitrate. In the case of a sulfite being present, a white precipitate of silver sulfate is formed, which turns black upon heating: 2AgNO()+NaSO()AgSO()+2NaNO()323233aqaqsaq

If testing with hydrochloric acid proves to be ineffective, the second stage of testing involves using concentrated sulfuric acid.

Concentrated sulfuric acid can identify the following anions:

  • halides (F, Cl, Br, and I),
  • nitrate (NO3).

The primary test for halide ions is generally used on solids, while the second confirmatory test is generally used on solutions of those solids.

When concentrated sulfuric acid (HSO()24aq) is used to detect halide ions, concentrated sulfuric acid is added dropwise to a solid sample. Any gas produced can initially be tested with damp blue litmus paper.

Salts that contain fluoride or chloride ions produce results that are visually identical. The reaction for these types of salts is simply an acid–base reaction: 2F()+HSO()SO()+2HF()Cl()+HSO()HSO()+HCl()2442244saqaqgsaqaqg

The difference in the equations is because HCl is a weaker acid than HSO24 but a stronger acid than HSO4. HF is weaker than both.

The HCl gas evolved produces white steamy fumes when introduced to a glass rod, wet with ammonia solution, due to the production of ammonium chloride, NHCl4: HCl()+NH()NHCl()ggg34

When concentrated sulfuric acid reacts with bromide or iodide salts, the same acid–base reaction occurs: Br()+HSO()HSO()+HBr()I()+HSO()HSO()+HI()244244saqaqgsaqaqg

However, a redox reaction also occurs. Sulfuric acid is not a strong enough oxidizing agent to oxidize F or Cl, but it is strong enough to oxidize Br or I: 2Br()Br()+2e(orangeredfumesthatturnastarchindicatoryellow)2I()I()+2e(violetfumesthatturnastarchindicatorblue)22gggg

Sulfuric acid is reduced by Br to form sulfur dioxide (SO2). I ions are stronger reducing agents than Br ions and reduce sulfuric acid further to form hydrogen sulfide (HS2).

SO2 and HS2 are both smelly, toxic gases and the steamy acidic fumes of HF, HCl, HBr, and HI are all hazardous and so great caution is required when performing these tests that should always be carried out under a fume hood.

The following are the results of the silver nitrate confirmatory tests for common halides.

Fluoride ions do not react with the test solution and no precipitate is produced. In other words, there is no positive test for fluoride ions using silver nitrate.

For the other halides, the following reaction occurs: X()+AgNO()AgX()+NO()33aqaqsaq

We can simplify this by omitting the nitrate ion, which is a spectator ion: X()+Ag()AgX()+aqaqs

The chloride, bromide, and iodide salts of silver are all insoluble in water, so they will precipitate. However, silver fluoride is highly water soluble, so it will not precipitate.

AnionTestPositive Result
Fluoride (F)AgNO()3aqNone
Chloride (Cl)White precipitate (turns violet in sunlight)
Bromide (Br)Cream precipitate
Iodide (I)Pale yellow precipitate

If, for example, we had a solution that contained a sodium halide salt but we did not know which halide it was, we could use this test. If we got a cream-colored precipitate, we know that the salt is sodium bromide.


One major concern for this test, even if done correctly, is that it is sometimes difficult to tell the difference between the possible precipitates. In some lighting, white can look cream, and cream can look yellow. The similarity between the color of the different precipitates can be seen in the photograph below (from left to right: AgI, AgBr, and AgCl).

One way of handling this problem is to do the confirmatory test on our unknown solution side by side with known solutions that contain the halides (e.g., a solution of NaCl, a solution of NaBr, and a solution of NaI). We can then compare the colors of the precipitates under the same conditions.

Another way is to use a solution of ammonia. Ammonia forms a complex ion with silver(I) ions and when we add ammonia to a solution containing a silver precipitate it can pull the silver back into the solution, making the precipitate disappear.

With the silver halide salts, we get different results when we add dilute ammonia and excess ammonia solution.

If we use concentrated ammonia, we may reach excess very quickly. However, if we add concentrated ammonia carefully in small quantities, we can get the same results as with dilute ammonia solution.

Example 2: Identifying Silver Halide Salts through the Use of Ammonia Solutions

A student wants to confirm the identity of a silver halide precipitate by using an ammonia solution.

  1. Which silver halide precipitate dissolves only when a dilute ammonia solution is added?
  2. Which silver halide precipitate does not dissolve when a concentrated ammonia solution is added?


Part 1

When a solution containing silver ions is mixed with a second solution containing halide ions (Cl, Br, and I), a solid silver halide precipitate is formed. The color of the solid silver precipitate is sometimes difficult to distinguish as silver chloride, silver bromide, and silver iodide are all similar light-colored solids.

We can confirm the identification of the silver halide salt by using dilute ammonia solution to test whether or not the precipitate dissolves.

Silver chloride dissolves in a small quantity of dilute ammonia solution, whereas silver bromide and silver iodide will not dissolve and as such the answer to part 1 is silver chloride, AgCl.

Part 2

Adding a small quantity of dilute ammonia solution to silver bromide has no effect; however, if we add excess dilute ammonia solution, then the silver bromide precipitate dissolves.

In the case of silver iodide, even an excess quantity of dilute ammonia solution will not dissolve the precipitate. The same is true even if we use a concentrated ammonia solution; using a concentrated ammonia solution merely accelerates these reactions, causing them to happen with smaller volumes of chemicals. This means that the correct answer to part 2 of this question is silver iodide, AgI.

Testing with concentrated sulfuric acid is also used to detect the presence of nitrate anions.

The nitrate anion (NO3) is highly water soluble in the presence of many different cations, so it is difficult to detect using precipitation.

  • A primary test is the generation of brown nitrogen dioxide gas through the addition of concentrated sulfuric acid on the nitrate salt.
  • A confirmatory test is formation of a brown ring through the reaction of nitrate salt solution with iron(II) sulfate and concentrated sulfuric acid.

The primary test is to react a solid, potentially containing nitrate ions, with concentrated sulfuric acid to form nitric acid: 2NaNO()+HSO()NaSO()+2HNO()324243slaql

The nitric acid formed will then start to decompose when heated, releasing nitrogen dioxide which has a characteristic brown color: 4HNO()2HO()+4NO()+O()3222lggg

The rate of generation of the gas can be increased through the addition of copper filings: 4HNO()+Cu()Cu(NO)()+2HO()+2NO()33222lsaqgg

The confirmatory test is to reduce nitrate ions with iron(II) ions (Fe)2+. One of the products of the reduction of nitrate ions is nitrogen monoxide (NO), which can complex with residual iron(II) ions to form a brown solid. Sulfuric acid is necessary for the reaction. If concentrated sulfuric acid is not mixed in with the solution, it will instead form a layer at the bottom of the reaction vessel (concentrated sulfuric acid is much denser than water). A brown ring of the iron(II) complex will form between the solution layer and the sulfuric acid layer; this is why this test is often known as the brown ring test.

The main reactions involved are the reduction of nitrate ions by iron(II) ions: 2NaNO()+6FeSO()+4HSO()2NO()+3Fe(SO)()+4HO()34242432aqaqaqgaql and the formation of the brown iron(II) complex: [Fe(HO)]SO()+NO()[Fe(HO)(NO)]SO()+HO()2642542aqaqsl

It is vital that the iron(II) ions in the sulfate solution do not be oxidized by the air to iron(III) ions; otherwise, the test cannot work. It is recommended that the solution of iron(II) sulfate is prepared fresh, just before the test is performed.

If testing with dilute hydrochloric acid and concentrated sulfuric acid proves to be ineffective, the third stage of testing involves using barium chloride solution.

Testing with barium chloride solution is used to identify the following anions:

  • sulfate (SO42),
  • phosphate (PO43).

It is not possible to use another acid to displace the sulfate and phosphate anions, which originate from very strong acids themselves. For example, hydrochloric acid is less stable than sulfuric acid, so it cannot replace the sulfate anion in salt solutions. Consequently, in this miscellaneous group, we will not be testing for a liberated gas, but instead we will be testing for the formation of a precipitate.

In this explainer, we will focus on sulfate (SO42).

We can detect the sulfate anion in solution by introducing barium ions (Ba2+). These react with sulfate ions to produce a white precipitate of barium sulfate (BaSO()4s). Barium sulfate is insoluble even in dilute mineral acids like hydrochloric acid and nitric acid. Barium phosphate is a similar white precipitate to barium sulfate; however, this white precipitate is soluble in dilute hydrochloric acid: SO()+Ba()BaSO()422+4aqaqs

The confirmatory test for the sulfate anion is to add lead acetate solution. In this precipitation reaction, the white precipitate of lead sulfate is formed, as shown in the chemical equation below: NaSO()+(CHCOO)Pb()2CHCOONa()+PbSO()243234aqaqaqs

Example 3: Deriving the Net Ionic Equation for the Reaction between Barium Nitrate and a Metal Sulfate

What is the net ionic equation for the reaction between barium nitrate and a metal sulfate, which is used as a test for the sulfate anion?


In a net ionic equation, we do not include any spectator ions. These are ions that appear on both sides of the reaction equation. Rather than jumping straight to this form, it can be easier to start from the full equation first.

The formula for barium nitrate is Ba(NO)32.

For the metal sulfate, we can use sodium sulfate (NaSO24).

When these react in solution, the product will be a white precipitate of barium sulfate (BaSO()4s).

This is the equation: Ba(NO)()+NaSO()BaSO()+2NaNO()322443aqaqsaq

To convert this to the ionic equation, we can dissociate the soluble salts: Ba()+2NO()+2Na()+SO()BaSO()+2Na()+2NO()2+3+424+3aqaqaqaqsaqaq

Na+ and NO3 appear on both sides of the equation in equal amounts; they are spectator ions. So, the net ionic equation is Ba()+SO()BaSO()2+424aqaqs

Let’s summarize what we have learned about testing for anions.

Key Points

  • Carbonate ions can be detected by treatment with dilute hydrochloric acid, which produces carbon dioxide gas; this gas can be passed through limewater, turning it cloudy.
  • To distinguish between carbonate ions and bicarbonate ions, magnesium sulfate is added as a confirmatory test for carbonates and bicarbonates. In cold solution, an immediate white precipitate indicates a carbonate; however, if no precipitate is produced initially but a white precipitate appears after heating, then bicarbonate ions are present.
  • Sulfite ions can be detected by treatment with hydrochloric acid, which produces acidic, oxidizable sulfur dioxide gas, which can be detected by the decolorization of acidified KMNO4 (purple pink) or acidified KCrO227 (orange green).
  • A confirmatory test for sulfite anions includes the addition of silver nitrate to form white silver sulfite that turns black upon heating.
    AnionTestPositive Result
    Carbonate (CO32)
    • HCl(aq)
    • Limewater (CaOH()2aq)
    Effervescence due to the evolution of colorless gas turns limewater cloudy.
    Confirmatory test: MgSO()4aqWhite precipitate is formed in cold solution, which is soluble in dilute hydrochloric acid.
    Sulfite (SO32)
    • HCl(aq)
    • Acidified KMnO()4aq
    Oxidizable, colorless gas turns purple potassium permanganate solution pale pink.
    • HCl(aq)
    • Acidified KCrO()227aq
    Oxidizable, colorless gas turns orange potassium dichromate solution green.
    Confirmatory test: AgNO()3aqWhite precipitate is formed that turns black upon heating.
  • The presence of halides in solids can be detected using concentrated sulfuric acid.
    AnionPrimary TestPositive Result
    Fluoride (F)Concentrated HSO()24aqColorless fumes turning litmus paper red
    Chloride (Cl)Colorless fumes forming white steamy fumes with NH()3g
    Bromide (Br)Orange fumes that turn a starch indicator yellow
    Iodide (I)Purple fumes that turn a starch indicator blue
  • The confirmatory test for halides uses silver nitrate solution, with a little nitric acid. If precipitates are produced and the color is hard to describe, ammonia solution can be added to try to dissolve the precipitate.
    AnionConfirmatory TestPositive ResultFollow-Up TestPositive Result
    Fluoride (F)AgNO()3aqNoneNH()3aqNone
    Chloride (Cl)White precipitatePrecipitate dissolves in dilute NH()3aq.
    Bromide (Br)Cream precipitatePrecipitate does not dissolve in dilute NH()3aq.
    Precipitate dissolves in excess NH()3aq.
    Iodide (I)Pale yellow precipitatePrecipitate does not dissolve in dilute or excess NH()3aq.
  • The primary test for nitrate ions is the addition of concentrated sulfuric acid that generates nitric acid and in turn nitrogen dioxide, a brown gas.
  • In the confirmatory test, nitrate ions can be detected using the brown ring test, where iron(II) sulfate and concentrated sulfuric acid react with nitrate ions, producing a brown ring of an iron(II) complex containing nitrogen monoxide.
  • Sulfate ions can be detected using a solution of barium chloride that produces a white precipitate of barium sulfate that is insoluble in dilute hydrochloric acid.
  • The confirmatory test for the sulfate anion is to add lead acetate solution, producing a white lead(II) sulfate precipitate.
    AnionTestPositive Result
    Nitrate (NO3)Concentrated HSO()24aqBrown gas
    • FeSO(or)4aqs
    • Concentrated HSO()24aq
    A brown ring forms between the solution layer and sulfuric acid layer.
    Sulfate (SO42)BaCl()2aqWhite precipitate insoluble in dilute hydrochloric acid
    Lead acetate(aq)White precipitate

Download the Nagwa Classes App

Attend sessions, chat with your teacher and class, and access class-specific questions. Download the Nagwa Classes app today!

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy