Ion tests: flame tests, precipitates and mystery salts

Run flame, sodium hydroxide, acid, silver nitrate and barium chloride tests on a virtual bench, then identify the cation and anion of a mystery salt from your results.

Keep it one tap away for everyday use.

Bookmark Ion tests?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Sample
  2. Test
  3. Clues
  4. Answer
Nothing is uploadedWorks offline once open

Pick a test.

Your results

    Try this

    • In Practice mode, tell calcium, magnesium and aluminium apart: which tests separate them?
    • Test copper(II) sulfate with sodium hydroxide, then with barium chloride. Which ion does each test find?
    • Switch to Mystery salt: use as few tests as you can, then guess the cation and the anion.

    Check yourself

    What it does

    Chemists identify the ions in a salt by testing it and noticing what happens. Metal ions (cations) show up in flame tests and as coloured or white precipitates with sodium hydroxide. Negative ions (anions) show up with acid, silver nitrate and barium chloride. This virtual bench lets you run each test and see the flame, the precipitate or the gas.

    In Mystery salt mode the page hides one cation and one anion. You choose tests, collect clues in a list, and then pick your answer. Practice mode lets you choose the sample yourself. Pair it with interactive periodic table for group trends, reactivity series lab for the metals and formula writer to write the salt’s formula.

    How to use it

    1. Choose Mystery salt or Practice.
    2. Press the test buttons. Each result is added to your list.
    3. Think about which ions fit all your results.
    4. In Mystery salt mode, choose your cation and anion and press Check my answer.
    5. Switch to the upper level to see the ionic equation for each precipitate or gas.

    What each setting does

    • Flame test: lithium crimson, sodium yellow, potassium lilac, calcium orange-red, copper green.
    • NaOH drops and excess: copper(II) blue, iron(II) green, iron(III) brown, calcium, magnesium and aluminium white. Only the aluminium precipitate dissolves in excess.
    • Dilute acid: carbonates fizz, and the gas turns limewater milky.
    • AgNO₃ with HNO₃: chloride white, bromide cream, iodide yellow.
    • BaCl₂ with HCl: sulfate gives a white precipitate.

    Worked example

    A sample gives no flame colour. With a few drops of sodium hydroxide it gives a white precipitate, and the precipitate dissolves in excess. That points to aluminium (calcium and magnesium precipitates do not dissolve). Barium chloride then gives a white precipitate, so the anion is sulfate. The salt is aluminium sulfate, Al₂(SO₄)₃.

    FAQs

    Why does calcium need a flame test? Calcium, magnesium and aluminium all give white precipitates. Calcium gives an orange-red flame, magnesium none, and only aluminium dissolves in excess.

    Why is acid added in the halide and sulfate tests? It removes carbonate, which would also form a white precipitate and give a false result.

    Why is no iron colour drawn in the solution? The solutions are drawn colourless on purpose so the tests, not the colour of the solution, give the answer.

    Where the numbers come from

    • Standard school qualitative analysis: flame colours, hydroxide precipitates, carbonate, halide and sulfate tests. Serves GCSE chemistry C8 chemical analysis (required practical), Ontario SCH3U qualitative analysis, A-level inorganic tests and NGSS HS-PS1-1. Maths and data in src/lib/learn/curr-chem.ts, checked in tests/curr-chem.mjs. Drawings are fibub's own.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-16.

    Change log for Ion tests

    1. Learn: 18 curriculum simulations (#L340-#L357) for Ontario, USA and UK topics Details on GitHub

    Every change to fibub

    Related tools

    Interactive periodic table #T571 Tap any of the 118 elements for its atomic weight, group, period and block, its ground-state electron configuration in full and noble-gas notation (with the exceptions to the Aufbau rule), the configuration of any ion, common oxidation states, Pauling electronegativity and first ionisation energy. Colour the whole table by a property and chart the trend against atomic number. Download an element card or every element as a CSV. Formula writer #L39 Pick a positive and a negative ion and watch their valencies cross over to make the formula, with brackets and simplifying explained, a picture of the charges balancing, the compound's name and its formula unit mass in rounded or exact atomic masses. Ends with fresh practice questions. Reactivity series lab #L41 Drop a metal strip into a salt solution or dilute acid and see whether it displaces the other metal, with the balanced equation and what you would see. Your results fill a grid and build the series; tap any metal for its reactions with water and acid and how it is taken out of its ore. Ends with fresh practice questions. States of matter #L28 Heat or cool water, ethanol, oxygen or iron and watch the particles vibrate in place, slide past each other or fly apart. Stop at the melting and boiling points, change °C to kelvin, and race diffusion in liquids and gases. Build an atom #L36 Tap to add protons, neutrons and electrons and watch the atom change: the element, atomic number, mass number, charge, isotope, the electrons filling shells 2, 8, 8 and the valency all update as you go. Ends with fresh practice questions. Electron configuration filler #L37 Watch electrons fill orbital boxes from 1s to 4p one at a time, or fill them yourself and see which rule (Aufbau, Pauli or Hund) a wrong tap breaks. Tap any arrow for its four quantum numbers. Chromium and copper explained. Ends with fresh practice questions.