Skip to main content
Virtual Laboratory
Chemistry Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Flame Tests & Atomic Emission Spectra

Flame tests identify metal elements from characteristic wavelengths emitted when excited electrons drop between quantized energy levels (ΔE = hc/λ). Neutral sodium atoms emit a yellow doublet at 589.0 and 589.6 nm, while potassium's weaker visible violet line sits at 404.4 nm. Clean the wire with HCl, position cobalt blue glass, and narrow the spectrometer slit below.

Flame Tests & Atomic Emission Spectra — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Explain from quantized energy-level transitions why the same emitting species (neutral Na I atoms in both NaCl and Na₂CO₃ flames) produces the same characteristic spectral lines (589.0 / 589.6 nm), and recognize common metal flame colors (Na yellow, K pale violet/lilac, Cu green/blue-green, Ba yellow-green, Ca brick-red, Sr carmine, Li crimson).
  • Follow the standard cleaning protocol (Chemguide)—dip in HCl, heat repeatedly in the outer flame until blank, dip sample and observe, then clean to blank again—understand the blank criterion and the limits of substituting clean rust-free iron or nichrome wire, and identify and clear contamination on the 3D bench.
  • Use quantized energy-level transitions (OpenStax §6.2, ΔE = hc/λ) to distinguish continuous spectra, bright-line atomic emission spectra, and dark-line atomic absorption spectra, and explain both how cobalt blue glass suppresses 589 nm sodium glare and the limits of unaided flame-color identification (RSC).

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Flame Tests & Atomic Emission Spectra

What You Will Investigate
Goal 01

Explain from quantized energy-level transitions why the same emitting species (neutral Na I atoms in both NaCl and Na₂CO₃ flames) produces the same characteristic spectral lines (589.0 / 589.6 nm), and recognize common metal flame colors (Na yellow, K pale violet/lilac, Cu green/blue-green, Ba yellow-green, Ca brick-red, Sr carmine, Li crimson).

Goal 02

Follow the standard cleaning protocol (Chemguide)—dip in HCl, heat repeatedly in the outer flame until blank, dip sample and observe, then clean to blank again—understand the blank criterion and the limits of substituting clean rust-free iron or nichrome wire, and identify and clear contamination on the 3D bench.

Goal 03

Use quantized energy-level transitions (OpenStax §6.2, ΔE = hc/λ) to distinguish continuous spectra, bright-line atomic emission spectra, and dark-line atomic absorption spectra, and explain both how cobalt blue glass suppresses 589 nm sodium glare and the limits of unaided flame-color identification (RSC).

When you hold a platinum wire dipped in potassium carbonate containing trace sodium (K₂CO₃+Na⁺) in the outer flame of an alcohol lamp, your unaided eye sees a blinding yellow flame. Why does a clear pale-violet flame appear as soon as you view it through cobalt blue glass?

Even trace sodium from glassware or reagents forms thermally excited neutral sodium atoms (Na I) in the flame, emitting an intense yellow doublet at 589.0 / 589.6 nm (NIST Na I) that overwhelms potassium's much weaker visible violet line (404.4 nm) to the unaided eye. Cobalt blue glass (lesson setting: 4% transmittance at 589 nm vs. 72% at 404.4 nm) selectively suppresses the yellow glare while transmitting blue-violet light (RSC), revealing potassium's pale-violet flame. Because each element has unique electron energy-level spacings, photons released during transitions between discrete levels provide a reliable spectral fingerprint.

Core principles: characteristic atomic spectral lines depend only on the emitting atom's quantized energy-level spacings (neutral Na I atoms in both NaCl and Na₂CO₃ flames emit the 589.0 / 589.6 nm yellow doublet); before testing a new sample, dip the wire in HCl and heat repeatedly in the outer flame until the flame returns to blank (Chemguide; the dilute H₂SO₄ misstep bottle in this simulation is an error-trap setting for persistent contamination); view sodium-contaminated potassium salts through cobalt blue glass to suppress yellow glare and reveal pale violet (RSC).
A. Five-Step Flame Test & Cobalt Glass Filtering Na (589.0 / 589.6 nm) for K5 Steps: HCl wash → Burn blank → Dip → Test → Clean• Standard protocol (Chemguide): HCl wash & burn to blank• Sim error trap: dil. H₂SO₄ models persistent contamination• Wire options: Pt, rust-free Fe, or nichrome (burn blank first)Cobalt glass cuts Na yellowK pale-violet flameB. Quantized Transitions (OpenStax §6.2)E₂ ExcitedE₁ GroundAbsorb ↑Emit photon hνΔE = E₂ − E₁ = hc / λ (quantized)C. Atomic Bright-Line Emission SpectrumK 404.4Na 589 doubletLi 670.8• Na yellow · K pale violet• Cu green/blue-green · Ba yellow-green• NIST air wavelengths (nm) identify transitions
2D Visual Guide & Diagram — Flame Tests & Atomic Emission Spectra

Cause-and-Effect Chain

Principle 01 · Quantized energy gaps fix an emitting species' wavelengths
Condition: In a hot flame, sodium salts (such as NaCl and Na₂CO₃ in this lesson) dissociate and form excited neutral sodium atoms (Na I), promoting a 3s valence electron to the 3p excited state.

The excited state is short-lived (illustrative lifetime about 10⁻⁸ s); as the electron drops from 3p₃/₂ or 3p₁/₂ back to 3s, it emits a photon with fixed energy ΔE = E_high − E_low = hc/λ (NIST Na I; OpenStax §6.2).

→ Both NaCl and Na₂CO₃ produce the same neutral Na I doublet at 589.0 / 589.6 nm (note: for systems dominated by molecular bands such as copper salts, overall flame color can shift between blue and green across different salts, RSC).
Principle 02 · Wash with HCl and burn repeatedly to a blank flame (Chemguide)
Condition: Before and after each test sample, remove residual metal salts from the platinum, nichrome, or rust-free iron wire so previous samples do not contaminate the next flame.

Following the standard protocol (Chemguide, Jim Clark), dip the wire in hydrochloric acid (concentrated or dilute) and heat it repeatedly in the outer flame until no extraneous color appears (the blank check); single-substance boiling points (such as pure H₂SO₄ at 337 °C or NaCl at 1465 °C, PubChem) cannot serve as a universal proof across dilute wash solutions and mixed salt residues.

→ Dip a new test sample only after the outer flame returns to blank; the dilute H₂SO₄ misstep bottle in this 3D simulation is an error-trap lesson setting that models persistent contamination not cleared by dry heating.
Principle 03 · Cobalt blue glass suppresses sodium yellow to reveal potassium (RSC)
Condition: In potassium salts containing trace sodium (K₂CO₃+Na⁺ in this lesson), 589 nm sodium glare masks potassium to the unaided eye (lesson setting: unaided interference U = 2.14); high-purity clean KCl can show pale violet directly.

Cobalt blue glass strongly attenuates 589 nm yellow light while transmitting 404.4 nm violet light (lesson setting: T = 0.04 vs. 0.72, cutting yellow relative to violet to 1/18), making potassium's pale-violet flame visible against a sodium background (RSC).

→ For this lesson's Na-contaminated potassium salt, cobalt blue glass lowers interference to U = 0.119 (lesson setting), revealing pale violet; for a real unknown sample, seeing no violet does not strictly rule out trace potassium—confirmation requires a spectrometer.

Core Formulas & Quantitative Relations

Relationship 1 · Same Emitting Atom & Boundaries of Metal Flame Colors
Atomic transition wavelengths depend only on the atom's energy levels (both NaCl and Na₂CO₃ emit the neutral Na I 589.0 / 589.6 nm yellow doublet)

The sample contains Na⁺ ions, while the emitting species in the flame is neutral Na I atoms (NIST Strong Lines). Do not generalize constant atomic lines to mean every compound of every element shows the exact same overall flame color—copper salts, dominated by molecular bands, vary between blue and green depending on the salt (RSC). Platinum wire is preferred, though clean rust-free iron or nichrome wire (which may add a faint orange background) also works once washed with HCl and burned to blank (Chemguide).

Relationship 2 · Quantized Transitions & Matching Emission / Absorption Wavelengths
ΔE = |E_m − E_n| = h · ν = h · c / λ ≈ 1239.8 / λ(nm) eV (OpenStax §6.2)

Electrons dropping from a higher to a lower level within the same pair of quantized levels emit specific photons, forming bright lines on a dark background (an atomic emission spectrum). When continuous white light passes through cool, dilute vapor of the same atoms, electrons absorb the exact same wavelengths to jump upward, leaving dark lines on a rainbow background (an atomic absorption spectrum) at identical wavelengths. Note: the Bohr model applies strictly to single-electron atoms; fine-structure splitting in multi-electron atoms (such as Na 3p₃/₂ and 3p₁/₂) comes from NIST measured levels.

Relationship 3 · Limits of Unaided Flame Tests & Simulation Model Settings
Blank verified + bright yellow unaided flame ⇒ suggests Na (does not rule out K) | Cobalt blue glass cuts Na glare to inspect K (RSC)

Residual sodium on glassware or wire can turn copper or barium tests yellow (see Steps 2 and 6), so always burn to blank first. Cobalt blue glass suppresses sodium yellow to help spot potassium's pale violet, but absence of visible violet cannot strictly rule out trace potassium (and the glass can transmit other emissions); reliable qualitative confirmation requires a spectrometer. In this 3D bench, slit FWHM = 1.6×slit + 0.15 nm, cobalt glass transmittance, interference index U, and molecular-band profiles/relative intensities are lesson settings, while atomic reference wavelengths come from NIST Strong Lines.

From 3D Spectrometer to 2D Diagrams: Flame-Test Inference Limits & Three Spectrum Types

Qualitative flame identification and spectrum classification both depend on clear physical boundaries—always verify the blank check and the transition mechanism:

  • Check 1 · Interpreting a bright yellow unaided flame: Confirm that the wire passed a blank check to rule out background or glassware sodium. A bright yellow flame suggests sodium may be present, and never proves potassium is absent. View through cobalt blue glass to suppress sodium glare and check for pale violet (RSC); even if no violet appears, trace potassium cannot be strictly ruled out without checking characteristic lines on a spectrometer.
  • Check 2 · Distinguishing continuous, bright-line emission, and dark-line absorption spectra: White light from an incandescent tungsten filament disperses into an unbroken rainbow (continuous spectrum; real sunlight carries dark Fraunhofer absorption lines from the cooler solar atmosphere). Hot, dilute atomic vapor emits discrete bright lines on a dark background (emission spectrum). Continuous white light passing through cool vapor of the same atoms loses photons at the exact same energy-level transition wavelengths, leaving dark lines on the rainbow (absorption spectrum, OpenStax Chemistry 2e §6.2).
Model A · Inference Limits of a Yellow Flame (RSC)Model B · Three Spectrum Types (OpenStax §6.2)Observation: bright yellow unaided flame✓ Rigorous: suggests Na (after blank check)✗ Pitfall: concluding "definitely no K" (wrong!)Proper check: burn wire to blank first, then viewthrough cobalt blue glass for pale violet (if unseen,trace K is still possible; confirm via spectrometer)① Hot tungsten: continuous (sunlight has dark lines)② Hot atomic vapor: bright lines on dark (emission)③ Cool vapor: dark lines at same λ (absorption)

Concept Breakdown

01

The transition wavelength of an emitting atomic species (neutral Na I) depends on the atom itself, not on the sample's anion.

Why Do Both NaCl and Na₂CO₃ Emit the Same 589.0 / 589.6 nm Yellow Doublet?

When sodium chloride (NaCl) or sodium carbonate (Na₂CO₃) enters the hot outer flame of an alcohol lamp, thermal processes convert Na⁺ ions from the salt into excited neutral sodium atoms (Na I). Based on quantized energy levels (OpenStax Chemistry 2e §6.2) and NIST Na I spectral tables, the 3s valence electron (0.000 eV) is promoted to two fine-structure excited sublevels, 3p₃/₂ (2.104 eV) and 3p₁/₂ (2.102 eV). Dropping back to 3s emits two characteristic yellow lines at 588.995 nm (rounded to 589.0 nm) and 589.592 nm (rounded to 589.6 nm). Because both salts produce the same emitting species (neutral Na I), their doublet positions match exactly. Keep in mind that for systems dominated by molecular-band emission—such as different copper salts—overall flame color can shift between blue and green (RSC), so constant atomic lines should not be overgeneralized to all compounds.

Try in the 3D bench: In Step 3, clean the wire to blank and test NaCl followed by Na₂CO₃; confirm both log the 589.0 nm yellow doublet. In Step 7 (default NaCl), click the 3D Bohr Transition Unit at the front right to watch 3p₃/₂ and 3p₁/₂ drop to 3s in the 588–591 nm zoom window.
02

The Chemguide procedure centers on dipping in HCl and heating repeatedly in the outer flame until blank; the dilute H₂SO₄ bottle here models persistent contamination.

Why Wash the Wire with HCl and Burn to Blank? What Does the Dilute H₂SO₄ Bottle Model?

Under the standard flame-test procedure (Chemguide, Jim Clark), clean a platinum or nichrome wire by dipping it in hydrochloric acid (concentrated or dilute) and holding it in the outer flame repeatedly until the flame shows no extraneous color (the blank state) before picking up the next sample. Avoid treating single-substance boiling points (such as pure sulfuric acid at 337 °C or NaCl at 1465 °C, PubChem) as a universal mechanistic proof across dilute wash solutions and mixed salt residues—the operational test of cleanliness is whether heating the wire alone returns the flame to blank. On the upper rack of this 3D bench, the dilute H₂SO₄ misstep bottle is a teaching error-trap setting that triggers a persistent yellow-contaminated state not cleared by dry heating, letting you practice clearing contamination with dilute HCl and outer-flame heating. Also never use ordinary soda-lime glass rods to hold samples, because the glass itself contains sodium and produces a bright yellow flame.

Try in the 3D bench: At the start of Step 2, observe the preset dilute H₂SO₄ contamination state (CuSO₄ masked by sodium yellow, U = 3.53 lesson setting, persistent under dry heating), then click ① Dilute HCl Cup → Alcohol Lamp Outer Flame (burn to blank) → CuSO₄ Watch Glass to clear interference (U = 0.009 lesson setting) and reveal the green flame.
03

The unaided eye blends wavelengths into one hue, whereas narrowing a spectrometer's entrance slit splits sodium's two yellow lines 0.6 nm apart into distinct peaks.

How Does a Spectrometer Separate Similar Red Flames or the 0.6 nm Sodium Doublet?

Lithium (crimson, NIST Li I main line 670.8 nm), strontium (carmine, illustrative molecular-band peak near 682 nm), and calcium (brick-red, illustrative molecular-band peak near 622 nm) look close enough in color to confuse the unaided eye. Dispersing the light in a spectrometer separates each element's characteristic lines clearly—such as the NIST Na I doublet at 589.0 and 589.6 nm (0.6 nm apart), NIST K I's visible violet line at 404.4 nm alongside its nearly invisible near-infrared strong lines at 766.5 and 769.9 nm, and NIST Ba I's reference line at 553.5 nm. Under this simulation's dual-Gaussian slit model, a wide slit (0.30 mm or 0.25 mm) merges or broadens the profile, whereas narrowing the slit to 0.05 mm (FWHM = 0.23 nm) cleanly splits 589.0 and 589.6 nm into two separate peaks.

Try in the 3D bench: In Step 4, drag left (or click) the brass slit drum on the spectrometer down to 0.05 mm to watch the single peak split into two peaks in the 584–594 nm zoom window. In Step 6, compare contaminated BaCl₂ (masked yellow) against clean BaCl₂ (yellow-green, 553.5 nm).

Reference & Comparison Table

Metal Flame Colors, NIST Atomic Reference Wavelengths, and Lesson Model Settings (Reference Lines vs. Simulation Settings Clearly Separated)
Metal ElementCharacteristic Flame ColorNIST Reference Lines / Lesson Settings (nm)Key Procedure & Scope Limits
Sodium (Na / Na⁺)Bright yellow589.0 / 589.6 (NIST neutral Na I yellow doublet)Emitting species is neutral Na I; highly sensitive—never dip samples with ordinary soda-lime glass rods
Potassium (K / K⁺)Pale violet (through cobalt blue glass if Na is present)404.4 (violet) / 766.5 (near-IR, NIST K I)766.5 nm is nearly invisible to the human eye; clean high-purity KCl can look pale violet directly, while Na-contaminated samples need cobalt blue glass (RSC)
Copper (Cu / Cu²⁺)Green / blue-green (varies with salt)498 (Cu salt molecular-band peak, lesson setting); NIST Cu I reference 510.6 / 515.3 / 521.8CuSO₄ uses an illustrative molecular-band profile for green flame (copper salts vary between blue and green, RSC; NIST Cu I lines are not treated as lamp-measured peaks here); copper wire gives its own flame color and cannot replace platinum
Barium (Ba / Ba²⁺)Yellow-greenNIST reference Ba I 553.5, Ba II 493.4 (relative intensities and 513.7 / 524.2 bands are lesson settings)Wash wire with HCl and burn to blank before testing, or residual sodium yellow masks barium's color
Lithium (Li) / Calcium (Ca) / Strontium (Sr)Crimson / brick-red / carmineLi 670.8 (NIST Li I); Ca 622 / Sr 682 (molecular-band peaks, lesson settings)Red-family flame colors look similar by eye; a spectrometer (also showing NIST Ca I 422.7 and Sr I 460.7 nm reference lines) separates them
Platinum (Pt) / rust-free iron / nichrome wireNo strong interfering flame color (nichrome may show faint orange)—Labs typically use platinum or nichrome wire, or clean rust-free iron wire; always dip in HCl and burn repeatedly to blank before use (Chemguide)
Common Misconceptions

Common Misconceptions

Do sodium chloride (NaCl) and sodium carbonate (Na₂CO₃) emit different yellow doublet wavelengths because they have different anions?

No. In the hot flame, Na⁺ from either salt forms the same emitting species—neutral sodium atoms (Na I). Their 3p → 3s transition wavelengths (NIST 589.0 / 589.6 nm) depend only on sodium's atomic energy levels, so NaCl and Na₂CO₃ produce the exact same yellow doublet. (For molecular-band emitters like copper salts, however, overall flame color can vary between blue and green across different salts, RSC.)

If no platinum wire is available, can I clean a piece of pure copper wire and use it to run sodium and potassium flame tests?

No. Copper itself produces a strong green or blue-green flame color that severely contaminates the test. Use a platinum wire, or substitute clean rust-free iron wire or nichrome wire washed with HCl and burned to blank (Chemguide).

Do potassium and sodium produce different flame colors because potassium is more reactive or releases more heat in the flame?

No. According to OpenStax Chemistry 2e §6.2 and NIST energy-level tables, potassium and sodium emit different wavelengths because their electron energy-level gaps ΔE differ—neutral Na I 3p → 3s is about 2.104 eV (589.0 nm yellow), whereas neutral K I 5p → 4s is about 3.065 eV (404.4 nm violet). Flame color does not come from metal reactivity or heat of combustion.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →