Lubinpla

Why AI chatbots get CAS numbers wrong and how to check them

Summary

Wrong CAS numbers from AI chatbots usually come from invented digits, the number of a related substance, or a salt, hydrate or isomer swapped in. A chatbot predicts likely text; it does not read the CAS Registry. The check digit catches most mistyped or invented numbers. Only matching name, number and SDS section 3 against CAS records catches the rest.

  • A CAS Registry Number has up to 10 digits in three hyphen-separated parts, and the final part is a single check digit (CAS, 2026).

  • CAS Common Chemistry gives open access to nearly 500,000 substances, while CAS REGISTRY holds over 290 million, so a number missing from the free database is not yet proof of an error (CAS, 2026).

  • Anhydrous copper(II) sulfate is 7758-98-7 and the pentahydrate is 7758-99-8; both numbers pass the check digit, so the check digit cannot tell them apart (Wikipedia, 2026).

  • In US safety data sheets, section 3 must give the CAS number or other unique identifier (OSHA 29 CFR 1910.1200, Appendix D); in EU safety data sheets the EC number, if available, shall be given and the CAS number "may also be given" (Commission Regulation (EU) 2020/878, Annex II, 3.2.4).

This answer covers a CAS number a chatbot gives for a named, well-defined substance or ingredient. It does not settle trade-secret ingredients withheld from SDS section 3, or substances such as reaction mixtures where one number alone does not fix the identity. For a registration or regulatory filing, confirm the identifier with the regulatory specialist who signs it.

What kinds of CAS number errors do AI chatbots make?

Chatbot CAS errors fall into three kinds: a number that belongs to no substance, a real number that belongs to a related substance, and a number for the wrong form of the right substance. They are ordered below from easiest to hardest to catch.

Invented or mistyped CAS digits

An invented CAS number looks right. The usual three parts are easy to copy: two to seven digits, then two digits, then one digit. So a chatbot can produce a well-formed string that CAS never assigned. Many such strings fail the check digit, which makes this the easiest error to catch.

This time the number is valid. CAS did assign it, but to a neighbor of the substance you asked about: a parent compound, a homologue, or a substance often named next to it in the same texts. It passes the check digit and pulls up a database record. Only reading the name on that record shows the error.

The wrong form: salt, hydrate or stereoisomer

The substance is right; the form is wrong. CAS gives separate numbers to many forms of one substance, so "copper sulfate" can mean 7758-98-7 (anhydrous) or 7758-99-8 (pentahydrate) (Wikipedia, 2026). Both numbers are real, both pass the check digit, and the name on the record looks almost right. That makes this the hardest error to catch.

Why do AI chatbots get CAS numbers wrong?

Chatbots get CAS numbers wrong because a language model generates the most likely text from patterns it learned, and a CAS number has no pattern to learn. CAS assigns numbers "in sequential, increasing order" as substances enter the registry, and a CAS Registry Number "has no inherent meaning" (Wikipedia, 2026). Nothing in a chemical name predicts its number.

OpenAI researchers describe hallucinations as "plausible but false statements generated by language models" and explain that "arbitrary low-frequency facts, like a pet’s birthday, cannot be predicted from patterns alone and hence lead to hallucinations" (OpenAI, 2025). A CAS number is that kind of fact. Their paper adds that training and evaluation "reward guessing over acknowledging uncertainty", so a model tends to offer a number rather than admit it does not know (Kalai et al., 2025).

Two consequences follow, both inferred from that research rather than measured for CAS numbers. First, numbers for common chemicals that appear often in text are more likely to come out right than numbers for specialty substances, salts or grades. Second, a chatbot with web search can still copy a number from a page about a related form. Search reduces invented numbers, not the wrong-form error.

Treat any chatbot CAS number as a lead to check, not as a record.

What does the CAS check digit catch, and what does it miss?

The CAS check digit catches most mistyped and invented numbers and misses any valid number that belongs to the wrong substance. CAS describes the number as up to 10 digits in three parts, the last being "a single check digit" developed by a standard calculation that shows whether you have "a valid CAS Registry Number" (CAS, 2026).

The calculation multiplies the last digit before the check digit by 1, the one before it by 2, and so on, adds the products and keeps the last digit of the sum (Wikipedia, 2026). For water, 7732-18-5: 8×1 + 1×2 + 2×3 + 3×4 + 7×5 + 7×6 = 105, so the check digit is 5 (Wikipedia, 2026).

An illustrative example shows what it catches. Swap two neighboring digits in 7758-98-7 to get 7758-89-7, and the sum now gives 6, not 7, so the number fails. A swap of two neighboring digits before the check digit always changes the result, and most single-digit typos do too.

What it misses is any number CAS assigned, since each is a real number for a real substance. Both copper sulfate numbers pass, and so do the three epinephrine numbers and the graphite and diamond numbers covered further down. The check digit also has only 10 possible values, so an invented string passes by chance about 1 time in 10, as follows from the calculation itself. A pass means "well formed", nothing more.

In what order should you check a CAS number against public databases?

Check a CAS number from a chatbot in a fixed order: check digit first, then number to name, then name to all numbers, then the supplier SDS. Each step catches an error the one before it cannot.

  1. Run the check digit. A fail ends the check: reject the number.

  2. Look up the number in CAS Common Chemistry and read the substance name on the record. If the name differs from the substance you asked about, the chatbot gave a related substance.

  3. Search the substance name in CAS Common Chemistry or PubChem and list every number returned. Several numbers point to salts, hydrates, isomers or crystal forms.

  4. Compare the result with section 3 of the safety data sheet for the product you actually buy or sell. Pick the number that matches the form on the SDS.

  5. For EU regulatory work, also confirm the EC number in ECHA CHEM, since an EU SDS must give the EC number where one exists (Commission Regulation (EU) 2020/878, Annex II, 3.2.4).

  6. If no free database holds the substance, use the CAS Registry Lookup service, which CAS says returns results within 24 hours, excluding weekends and holidays (CAS, 2026).

The table sets out what each result points to and what each check cannot catch.

Check

What you see

Points to

Check digit

Fails

Typo or invented number; reject it

Check digit

Passes

Well formed only; a real number for another substance still passes

Number to name in CAS Common Chemistry

Record name differs from your substance

Real number for a related substance

Number to name in CAS Common Chemistry

No record

Outside the free set of nearly 500,000 substances (CAS, 2026); not yet proof of an invented number

Name to numbers in CAS Common Chemistry or PubChem

Several numbers for one name

Salt, hydrate, isomer or crystal form variants

Supplier SDS section 3

A different number from the chatbot's

Wrong form or wrong substance; ask the supplier if the SDS and the CAS record disagree

The row that matters most is the passing check digit: a valid-looking number says nothing about which substance it belongs to.

Why does one chemical name match several CAS numbers?

One chemical name matches several CAS numbers because CAS registers distinct forms of a substance as separate substances, and everyday names often leave the form out. Asked about a short name, a chatbot has to guess the form, and it rarely says it guessed.

CAS assigns separate numbers to stereoisomers and racemic mixtures: L-epinephrine is 51-43-4, D-epinephrine is 150-05-0 and racemic DL-epinephrine is 329-65-7 (Wikipedia, 2026). Crystal forms are separate too, with graphite at 7782-42-5 and diamond at 7782-40-3 (Wikipedia, 2026). Some elements are split by oxidation state, such as trivalent chromium at 16065-83-1 and hexavalent chromium species at 18540-29-9 (Wikipedia, 2026). Hydrates and anhydrous forms carry their own numbers, as with the two copper(II) sulfate entries. Different phases of one substance do not: liquid water and ice share 7732-18-5 (Wikipedia, 2026).

Start with the question. Ask for a specific form, such as "copper(II) sulfate pentahydrate" rather than "copper sulfate", and the chatbot has less to guess. Then confirm the form against the SDS of the material you handle, because the wrong form can carry a very different hazard profile, as the hexavalent and trivalent chromium pair shows.

How do you keep a wrong CAS number out of SDS and customer documents?

To keep a wrong CAS number out of SDS and customer documents, take every number from a record, either the supplier SDS or a CAS database entry, and never from a chat reply alone. The rule matters because the number travels: US OSHA requires section 3 of an SDS to give the CAS number or other unique identifier, and when the CAS number is not available or claimed as a trade secret, the preparer "must indicate the source of unique identifier" (OSHA 29 CFR 1910.1200, Appendix D).

Three habits keep the error out:

  1. Write down where each number came from: the SDS revision date, or the database and the date you checked it.

  2. Run the check order above on every chatbot number before it enters a specification, label, quotation or regulatory form.

  3. When the SDS and the CAS record disagree, ask the supplier for a corrected SDS instead of choosing one yourself.

The same habit works for any technical answer from a chatbot: have it answer from your own documents and show where each value came from, as described in Using ChatGPT on company technical documents: when it works. Lubinpla answers from your own files, such as the SDS in your data room, and cites the source document, so you can open section 3 and confirm the CAS number yourself.

Call your regulatory affairs specialist when the number goes into a registration, a notification or a trade-secret claim.

Frequently asked questions

Can I ask the chatbot to double-check its own CAS number?

Asking the same chatbot to confirm its CAS number is not a check, since the confirmation comes from the same learned patterns that produced the first answer. Run the check digit instead, look the number up in CAS Common Chemistry or PubChem, and compare it with SDS section 3.

Is a CAS number required on every safety data sheet?

It depends on the jurisdiction. US OSHA requires the CAS number or another unique identifier in section 3 (OSHA 29 CFR 1910.1200, Appendix D). EU rules require the EC number where available and say the CAS number "may also be given" (Commission Regulation (EU) 2020/878, Annex II, 3.2.4).

Does a correct CAS number mean the chatbot's other data is correct?

No. A correct CAS number shows only that the identifier is right. Check hazard classification, exposure limits and physical properties against the SDS and the cited source as well; a chatbot can be right about one value and wrong about the next.

Related posts