Tool in this story
Worst Case AI
My iPhone app for emergency answers with no signal, plus maps you download ahead of time.
Get Worst Case AIIn this story
The short version
- In a 2026 study, five free AI tools (ChatGPT, Gemini, Claude, Copilot and Google Lens) named the right prescription pill from photos only 18.4% of the time, and the wrong one 37.1% of the time.
- AI built just for pills scores better in research tests, but results can drop on real phone photos, and few systems have been tested in real clinics. None of the photo pill ID apps checked here points to a published accuracy test.
- Use AI only to help read the imprint code, and check what it reads. Then look that code up in Drugs.com, WebMD or Poison Control's free Pill Identifier. No photo or lookup can tell you what's inside a fake pill.
- If someone swallowed an unknown pill, don't ask a chatbot. Call 911 if they collapse, have a seizure, have trouble breathing or can't be woken up. Otherwise, call Poison Control at 1-800-222-1222.
A pill identifier by picture is exactly the kind of job people now hand to AI. You find a loose pill, take a photo, and ask ChatGPT, Gemini or an app what it is. Searches for "pill identifier by picture" run about 49,500 a month in the US. Searches for "what pill is this" have roughly quadrupled in a year.
So can AI really name a pill from a photo? Not reliably, at least not yet. In a 2026 study, five free AI tools looked at photos of 49 common prescription pills. Only 18.4% of their answers named the right pill, and 37.1% named the wrong one.
I cover AI tools on this site, and I built an iPhone app for emergencies. Below: what the studies found, why pills are hard for AI, what the apps promise, the one thing no camera can see, and the method that works.
If someone already swallowed a pill, don't read on. Call 911 if they collapse, have a seizure, have trouble breathing or can't be woken up. Otherwise, call Poison Control at 1-800-222-1222.
Monthly US Google searches for "what pill is this"
Searches rose about fourfold in 12 months, from 4,400 to 18,100.
Source: Keywords Everywhere (Google Keyword Planner data), US, pulled December 4, 2026. Keywords Everywhere labels each month one month late, so its "November" is October; the months here are corrected. Over the same months, "pill identifier by picture" held steady at about 49,500 a month.
The quick answer
- Can AI identify a pill from a picture? Sometimes, but you can't count on it. In the newest study, general AI tools were wrong about twice as often as they were right. The researchers said these tools "should not be used for this purpose."
- Where AI can help: as a second pair of eyes on a tiny or worn imprint, the code stamped on a pill. Check what it reads, then look that imprint up in a free pill identifier from Drugs.com, WebMD or Poison Control.
- What no AI can do: tell you what's inside a pill. Fake pills copy real ones, right down to the imprint, and a photo can't see fentanyl.
- If someone swallowed it: don't stop to ask a chatbot. Call 911 or Poison Control.
What happened when 5 AI tools tried to name 49 pills
The newest test of everyday AI tools came out in July 2026 in the journal Hospital Pediatrics. A team from Northwell Health and Cohen Children's Medical Center in New York used 49 of the 50 most prescribed drugs in the US, each confirmed by a pharmacist.
They photographed each pill with an iPhone 13 Pro and showed only the photos of the front and back to five free tools: ChatGPT-5, Gemini 2.5 Flash, Claude Sonnet 4.5, Microsoft Copilot and Google Lens. An answer counted as right only if the first pill it named was correct.
- Across all five tools, 18.4% of answers named the right pill and 37.1% named the wrong one.
- Gemini did best, at 36.7% correct. Of the tools that tried, Copilot did worst, at 8.16%.
- Claude, made by Anthropic, refused to name any of the pills and cited safety.
- Google Lens gave its answers with no safety warnings. ChatGPT, Gemini and Copilot added some.
- Some answers weren't medicines at all. The team gives a bed bug and a tonsil stone as examples.
- Drugs.com's pill identifier, used as the comparison, got all but one right (98%).
Gemini also did something odd. Seven times, it gave an answer, then deleted it and put up a message like this one: "Try a different topic. When something seems like it might not be safe or appropriate for you, I draw the line."
The authors' conclusion was blunt. AI tools "are currently unreliable in identifying prescription medications from images and should not be used for this purpose," they wrote. They told doctors to steer people away from general AI tools when someone swallows a medicine by accident, and to send them to Poison Control instead.
Why it matters: about 165 children a day go to US emergency rooms for medicine poisoning, the authors note. They worry people will reach for the chatbot they already use every day.
Why ChatGPT did better in an earlier test, and where it slipped
An earlier study looked much better on the surface. Mayo Clinic researchers photographed 25 common kidney drugs and asked ChatGPT-4 what each one was. It got 22 of 25 right, or 88%, in a study published in the journal Renal Failure in 2024.
But look at how they did it. Each pill was shot front and back on a gray background with an iPhone 13 Pro Max, at full resolution, in good light, about 6 inches away. They even told ChatGPT to use its web browser to find the answer.

Even then, all three misses came from misreading the imprint. ChatGPT read "NF 06" as "NF 05," so it called nifedipine, a blood pressure drug, either the diabetes drug metformin or a much lower dose of nifedipine. It read "TEVA 2089" as "TEVA 2003," and "660" as "550."
When the researchers gave ChatGPT the right imprint, it fixed all three. That's the key lesson. Once the AI had the code, it did fine, but reading the code from a photo was the weak spot. The authors also said they only tested sharp, well-lit photos, so blurry real-life photos may do worse.
By the 2026 test, ChatGPT had changed. In the Mayo test, ChatGPT-4 never left a pill unidentified. In the 2026 test, 40.8% of ChatGPT-5's answers did. The 2026 authors said new safety limits added between the two versions may have played a part.
The authors even said platforms "should be designed to consistently provide an error message when asked to identify a medication."
What 10 years of pill recognition research shows
Researchers have been building AI just for pills since at least 2016. Most of the newer systems below use deep learning, a kind of machine learning, which is a branch of AI.
The government's 2016 challenge
In 2016, the National Library of Medicine ran a Pill Image Recognition Challenge. It gave teams 5,000 phone-quality photos of 1,000 pills. NLM said this could help confirm a pill in settings "where the documentation and medication have been separated, such as in a disaster or emergency."
The winning software put the right pill in its top five guesses 43% of the time. The other two winners managed 12% and 11%.

NLM called the contest "an initial promising step" toward its own pill ID software. Then, in January 2021, NLM retired Pillbox, its free pill ID website, and stopped updating its pill data and image library. NLM said the leftover files "should not be used for pill identification." So skip any old advice to use Pillbox.

Microsoft's pill photo research
In 2019, Microsoft researchers reported in npj Digital Medicine that their deep learning model put the right pill in its top five 94% of the time on the NLM photos. Their test wasn't the same as the contest, so don't compare it with the 43% above. Microsoft compared it with 83.3% for the contest winner, tested in a similar way. The authors worked for Microsoft, and they disclosed that the work "might be used in a Microsoft service in the future."
A year later, the same group released ePillID, a public set of about 13,000 pill photos for testing AI, covering 4,092 pill types. For most pills, it had just one reference photo of each side. Their best models scored well on it. Still, the team wrote that the models "still cannot distinguish confusing pill types reliably."

The pill marked 7180 is tan in the lab photo above and yellow in the phone photo. That's the problem in one picture. The team also found that their models needed both sides of a pill to identify it well.
Light, flash and background change the answer
A 2021 study from Sungkyunkwan University and Samsung Medical Center in Seoul tested one pill recognition system on 19 drugs. They shot each one 12 ways, with different background colors, flash on or off, and brighter or darker exposure. All three changed the results.
The best setup, a white background with the flash on, got the top guess right only 51.1% of the time. That's one system on 19 pills, but it shows how much a photo matters.
Newer systems do better, in the lab
A 2023 system from South Korea, described in the Journal of Medical Internet Research, read the imprint with its own AI. Then it used a language model to fix misread characters. Its top guess was right 78% of the time on consumer photos. On US pills it had never trained on, it was right 74.5% of the time.
A team in Hungary built a model for just the 30 pills their three hospitals hand out most, in a 2024 study. It scored 98% on its main accuracy measure on the training platform. Running offline on an Android phone, that score fell to about 69%.
Their advice was to stop chasing one system for every pill. Instead, they said, tailor each model to "the medications in a regional formulary or needs of a specific clinic." A formulary is the list of drugs a hospital stocks.
Where pill AI does work: checking, not guessing
Researchers are also building AI that checks a filled prescription bottle. In University of Michigan studies, an AI aid told pharmacists in a simulated task whether to accept or reject photos of filled bottles.
My take: that's a much easier job than yours. The pharmacy's AI already knows which pill should be in the bottle and only has to say yes or no. A loose pill on your floor could be any of thousands of drugs.
Why pills are so hard for AI
- Lots of pills look alike. "Many pills take the form of white circular tablets," the Korean team wrote.
- Imprints are tiny. The same team found its software mixed up letters and numbers, like O and 0, or I and 1.
- There are few photos to learn from. The Microsoft team said labeled pill photos are scarce.
A 2026 review of 91 studies on AI medication recognition found the same gap. Few systems had been tested on outside photos, on pills they hadn't seen before, or in real clinics, the authors wrote.
What AI pill identifier apps promise
The App Store is full of pill identifier apps that say they use AI, and their listings make big promises. Pill Identifier & Drug Finder says its "advanced AI instantly tells you exactly what medication you have found." Smart Pill ID promises "instant, accurate pill identification."

Those are the companies' claims. None of the five photo pill ID listings checked for this article points to a published accuracy test. And the fine print is more careful than the headlines.
- Pill Identifier: AI Pill ID says, "Pill Identifier uses AI and can make mistakes."
- Smart Pill ID tells you to "Verify all results with a healthcare professional."
- PillCheckr says it isn't FDA-approved or cleared, and that its accuracy "cannot be guaranteed." To its credit, it also lists the Poison Control number.
Don't assume the government checked these apps, either. The FDA lists apps that let you "input pill shape, color or imprint" and see matching pills as software that isn't a medical device. "Because these mobile apps are not considered medical devices, the FDA does not regulate them," the agency says. That list doesn't mention photo-based AI apps.

The 2026 study tested general AI tools, not these apps, and its authors suggested future studies of AI built just for this job. Until those exist, treat an app's answer as a guess to check.
The thing no AI can see: what's inside the pill
Even a perfect AI would only tell you what a pill looks like, not what's inside. And people who make illegal pills copy the look of real drugs on purpose.
Fake pills "are typically made to look like legitimate pharmaceutical pills (frequently oxycodone or alprazolam)," a 2023 CDC report says. Alprazolam is the generic name for Xanax. The fakes often hold illegally made fentanyl or other street drugs. And they're often stamped "M-30" to look like real 30-milligram oxycodone, the CDC adds.

Think about what that means for AI. If an AI reads that imprint perfectly and looks it up, it will point to real oxycodone, because that's the pill being copied. A sharp photo and a correct imprint match can still point you to the wrong drug.

A camera can't see fentanyl any more than you can. Drugs may hold deadly levels of it, "and you wouldn't be able to see it, taste it, or smell it," the CDC says. It's nearly impossible to tell without a fentanyl test strip, the CDC adds, and even strips can miss stronger fentanyl-like drugs such as carfentanil.
The DEA's lab numbers show the risk. In fiscal year 2025, about 29% of the fentanyl pills it tested held what it calls a potentially deadly dose, about 2 milligrams, Filter reported from DEA campaign material. That's down from about 76% in 2023.
My rule of thumb is simple. Never take a pill you can't trace to a pharmacy label with your name on it, whatever an app, a chatbot or a lookup says. The CDC report makes the same point. It says prevention messages should stress using only real pills prescribed to you.
A safer way to use AI: read the imprint, then look it up
The studies point to the imprint. In the 2026 test, Drugs.com's pill identifier got 48 of 49 pills right, and in the Mayo test, ChatGPT fixed its misses once it had the right code. Nearly every prescription and over-the-counter pill in the US carries one. A federal rule, 21 CFR 206.10, requires it, and with the pill's size, shape and color, the code has to identify the drug and its maker or distributor.
So read the imprint, then look it up yourself. My take: AI can help you make out a tiny or worn code, but it misreads codes too, as the Mayo test showed. So check what it reads against the pill in your hand.
- Put the pill in good light and check both sides. Some pills have a code on each.
- Read the letters and numbers. If they're tiny or worn, take a sharp photo and zoom in. You can ask a chatbot to read just the characters, but check its answer against the pill, and watch for O versus 0 and I versus 1.
- Type the code into a pill identifier exactly as you see it. Drugs.com says to skip any logo and enter the other characters.
- Add the shape. Add the color only if you're sure. People see colors differently, so WebMD says it can help to leave color out.
- Compare the result's photo with the pill in your hand, including size, coating and any score line.
- If you get no match, or two close ones, call a pharmacist.
Three free tools do the lookup. Drugs.com has a Pill Identifier, and its app listing says the database covers more than 24,000 US prescription and over-the-counter drugs. WebMD's Pill Identifier searches by imprint, color and shape. "The imprint code is the most important detail," WebMD says.
Poison Control runs a Pill Identifier too. My take: it's the one to bookmark, because the poison help line is right there on the same page.

A pill with no imprint, or one that doesn't show up, is a red flag. WebMD warns that a pill its tool can't find "could be a vitamin, supplement, illegal drug" or a drug from outside the US.
Before you upload a photo to a chatbot, remember that a pill bottle label shows your name and prescription. Read how private ChatGPT really is, and my guide to ChatGPT medical advice in an emergency.
If someone swallowed an unknown pill, skip the photo ID
This is where the 2026 study's warning matters most. Don't stop to photograph the pill and ask a chatbot. Here's what poison experts and the CDC say to do.
Call 911 right away for these signs
Poison Control says to call 911 immediately if the person collapses, has a seizure, has trouble breathing or can't be woken up. Don't stop to look up the pill first.
Otherwise, call Poison Control
Call 1-800-222-1222. It's free, confidential and open 24 hours a day. You can also use webPOISONCONTROL, a free online tool from poison experts that gives a recommendation in under 3 minutes.
That online tool is automated too. Its terms say its advice is "computer generated using analytic software and decision algorithms." My take: that's a very different thing from a chatbot guessing at a photo. It comes from poison experts, it asks you questions, and it tells some people to call instead.
It says to call if the person is pregnant, younger than 6 months or older than 79, took more than one substance, or is struggling with self-harm. My take: if you can't name the pill, call too.
Poison Control says to have this ready: the name of the medicine if you know it, how much was taken and when, the person's age and weight, and your name and phone number. My tip: keep the pill and any bottle with you when you call. And "Do not induce vomiting," Poison Control's first aid page says.
Signs of an opioid overdose
A fake pill may contain fentanyl, so know the signs. The CDC lists these:
- Passed out, or can't be woken up
- Slow or shallow breathing, or choking, gurgling or snoring sounds
- Discolored skin, especially on the lips and nails
- Tiny "pinpoint" pupils that don't react to light
The CDC's steps: give naloxone if you have it and call 911. Try to keep the person awake and breathing, lay them on their side so they don't choke, and stay with them until help arrives. "If you aren't sure, treat it like an overdose," the CDC says.

Naloxone (Narcan is one brand) reverses opioid overdoses, and you can buy the nasal spray without a prescription. It "won't harm someone if they're overdosing on drugs other than opioids," the CDC says. More than one dose may be needed when fentanyl is involved.
Most states have laws that may protect both the person overdosing and the person who calls for help, the CDC notes. If the person took pills on purpose, call 911. You can also call or text 988, the Suicide and Crisis Lifeline.
If you have no signal
Emergencies don't always happen where your phone works, and most chatbots need a connection anyway. If you're at a cabin or on a trail with no service, keep trying 911. If someone is with you, send them to find signal while you stay with the person. Save 1-800-222-1222 in your contacts now.
This is one spot where my iPhone app, Worst Case AI, can help. It works offline on iOS 15.1 or later. Its first aid guides include "Medication Overdose (Pills)," "Opioid Overdose (Naloxone)," "Poisoning (Swallowed Something Toxic)" and "Unconscious but Breathing (Recovery Position)," plus CPR for adults, kids and babies. Those guides draw on sources like Poison Help, the CDC and the National Capital Poison Center.
Be clear on what it isn't. It doesn't identify pills, and it isn't Poison Control or an emergency service, so call Poison Control or 911 first if you can. Its AI matches your question to answers written ahead of time from sources like the CDC and FEMA. It never writes its own answers, so it can't make one up, but its matching can miss a question worded in an unusual way.
It needs a paid subscription. For other options, including free ones, see my guides to AI apps for emergencies and using AI with no internet.
How to get rid of an unknown pill safely
Don't keep a mystery pill around, especially with kids in the house. The FDA says the best way to get rid of most unused medicines is a drug take-back program. Some pharmacies have drop-off boxes or kiosks, and local police can point you to a site. Pharmacies also sell prepaid mail-back envelopes, and some give them out for free.

The FDA also has two home methods: flush drugs on its flush list, or mix others with used coffee grounds, dirt or cat litter, seal it and trash it. My take: both depend on knowing the drug. So for a pill you can't identify, use a take-back site or a mail-back envelope, or ask a pharmacist.
My take
AI is good at reading most printed text, and that's the useful part here. If an imprint is worn or tiny, a phone camera and a chatbot can help you make it out, but check what it reads, because misread imprints caused every miss in the Mayo test. After that, a pill database and a pharmacist should have the last word.
As a "snap it and know" tool, AI isn't there. In the 2026 study, general AI tools were wrong about twice as often as right. Ten years of purpose-built research shows a similar pattern: good scores in the lab, weaker ones on real phones in real light.
And even a perfect pill-reading AI would miss the biggest danger, a fake that copies a real pill's look. So here's my order of operations. If someone swallowed it, call 911 or Poison Control first. If nobody did, read the imprint, look it up and ask a pharmacist.
FAQ
Can I identify a pill by taking a picture of it?
Sometimes, but don't count on it. In a 2026 study, five free AI tools named the right prescription pill from photos only 18.4% of the time. Typing the imprint code into a pill identifier works better. Drugs.com's lookup got 48 of 49 right in the same study.
Can ChatGPT identify a pill from a photo?
In a 2024 Mayo Clinic test with sharp, well-lit photos, ChatGPT-4 got 22 of 25 kidney drugs right. In the 2026 study, 40.8% of ChatGPT-5's answers left the pill unidentified. Treat it as a helper for reading the imprint, not the answer.
Can Google Lens identify pills?
It can try. In the 2026 study, Google Lens was one of five tools tested, and it answered with no safety warnings. Use it to read the imprint, then confirm it in a pill database.
Are AI pill identifier apps accurate?
Their listings don't show it. None of the App Store photo pill ID apps checked for this article points to a published accuracy test, and some say in their fine print that they can make mistakes. Use them, at most, as a first guess, then check the imprint.
Can AI tell if a pill is fake?
Not from a photo. Fake pills are made to look like real ones, often with the same imprint, so a photo can't show what's inside. The CDC says you wouldn't be able to see, taste or smell fentanyl. Only testing the pill itself can show what's in it.
What should I do if my child swallowed a pill?
If your child collapses, has a seizure, has trouble breathing or can't be woken up, call 911. Otherwise, call Poison Control at 1-800-222-1222 right away. Don't make your child throw up.
Sources
All checked Dec 4, 2026.
- Ravikoff et al., Utility of Artificial Intelligence Image Recognition Technology in Identifying Prescription Pills, Hospital Pediatrics (Sep 2026)
- PubMed record for the Hospital Pediatrics study
- Sheikh et al., Identification of kidney-related medications using AI from self-captured pill images, Renal Failure (2024)
- Yaniv et al., The National Library of Medicine Pill Image Recognition Challenge: An Initial Report (2016)
- Heo et al., An Accurate Deep Learning-Based System for Automatic Pill Identification, Journal of Medical Internet Research (2023)
- Larios Delgado, Usuyama et al. (Microsoft Research), Fast and accurate medication identification, npj Digital Medicine (2019)
- Usuyama et al. (Microsoft), ePillID Dataset: A Low-Shot Fine-Grained Benchmark for Pill Identification, CVPR 2020 Workshops
- Cha et al., Effects of Background Colors, Flashes, and Exposure Values on the Accuracy of a Smartphone-Based Pill Recognition System, JMIR Medical Informatics (2021)
- Ashraf et al., Leveraging code-free deep learning for pill recognition in clinical settings, Artificial Intelligence in Medicine (2024)
- Kim et al. (University of Michigan), AI Uncertainty Information and Pharmacists' Trust in Automated Pill Recognition, JMIR Human Factors (2025)
- Kim et al. (University of Michigan), AI Assistance Timing and Pharmacists' Trust in Automated Pill Recognition, JMIR Human Factors (2026)
- Sai Sachin and Karthikeyan, Artificial intelligence for medication recognition and safety: a systematic review, Frontiers in Digital Health (2026)
- FDA: Examples of Software Functions That Are NOT Medical Devices
- eCFR: 21 CFR Part 206, Imprinting of Solid Oral Dosage Form Drug Products
- WebMD: Pill Identifier and How to Identify a Pill
- Drugs.com: Pill Identifier
- App Store: Pill Identifier by Drugs.com
- webPOISONCONTROL: Pill Identifier
- NLM Technical Bulletin: NLM to Retire Pillbox on January 29, 2021
- App Store: Pill Identifier & Drug Finder
- App Store: Smart Pill ID
- App Store: PillCheckr
- App Store: Pill Identifier: AI Pill ID
- App Store: Pill Identifier & Drug Search
- CDC MMWR: Drug Overdose Deaths with Evidence of Counterfeit Pill Use (2023)
- CDC: Fentanyl Facts
- Filter: Fentanyl Pill Purity Has Dropped by Nearly Half Since 2024, Per DEA Data (Dec 4, 2025)
- Poison Control: First aid for poisonings
- webPOISONCONTROL online triage tool
- Poison Control: Terms of use for the triage tool
- Poison Control: Medication errors, what to know
- Poison Control: Medications can get confusing
- CDC: What to Do If You Think Someone Is Overdosing
- CDC: Lifesaving Naloxone
- FDA: FDA Approves First Over-the-Counter Naloxone Nasal Spray (2023)
- SAMHSA: 988 Suicide & Crisis Lifeline
- FDA: Where and How to Dispose of Unused Medicines
- Keywords Everywhere (Google Keyword Planner data), US

I make It's Better With AI: short videos and articles about new AI tools. Follow along on TikTok, Instagram and YouTube.















