Book a free call

Software as a Medical Device: What SaMD Is and How It Works

SaMD is software that performs a medical function on its own, on a phone or computer. Learn what counts as SaMD, how it is regulated, and what evidence it needs.

Hertiv engineering teamReviewed by a senior engineer
8 min read
Software as a Medical Device: What SaMD Is and How It Works
On this page

Short answer

Software as a medical device, or SaMD, is software that performs a medical function on its own, running on a phone, tablet or computer rather than inside a physical device. It is regulated as a medical device because clinical decisions depend on its output. Building it means fixing the intended use first, then gathering clinical and usability evidence to match the risk class.

What is software as a medical device?

Software as a medical device, or SaMD, is software that performs a medical function on its own, without being part of a physical medical device. It runs on general-purpose hardware such as a phone, tablet or computer, and its intended use is to diagnose, treat, monitor or prevent a disease or condition.

The key test is the intended use, not the code. A step counter that reports daily activity is a wellness product, while the same code packaged to detect an irregular heart rhythm and alert a clinician is SaMD. Regulators look at what the software claims to do and who relies on the result.

Software What it does SaMD?
Heart-rhythm detector Flags a possible irregular rhythm Yes
Insulin-dose calculator Suggests a dose from glucose readings Yes
Step counter Reports daily activity No
Appointment reminder Reminds a patient of a visit No

SaMD covers a wide range: imaging software that highlights a possible fracture, an app that calculates an insulin dose from glucose readings, and a tool that triages skin lesions for review. What they share is that a clinical decision depends on the output.

That dependence is what brings the software under medical-device rules, and it shapes everything from design to documentation. Teams that treat SaMD like ordinary consumer software usually discover the gap late, when a regulator asks for evidence the team never collected.

How is SaMD different from software inside a medical device?

Software in a medical device, or SiMD, is code embedded in a physical device, such as the software that runs an insulin pump or an MRI scanner. The software and the hardware are sold together, and the device cannot perform its function without either part.

SaMD is different because the software is the product. It runs on hardware the maker does not control, such as a patient's phone, and it can be updated, downloaded and used anywhere. That independence is the point, and it is also the risk: the maker must show the software works correctly across the phones, operating systems and screen sizes its users actually have.

  • SiMD ships with its hardware; SaMD ships on its own. The SaMD maker cannot choose the device it runs on.
  • SiMD is tested on one known device; SaMD must be tested across many devices. A matrix of phones, versions and network conditions is part of the evidence.
  • SiMD updates arrive with the device; SaMD updates reach users directly. An update can change behaviour overnight, so each release needs a check.

The distinction matters because the rules, the evidence and the testing all follow from it. A team that builds SaMD with a SiMD mindset tests on one phone and one operating system, then learns in review that the regulator wants a wider matrix. Decide which category your product falls in before you write the first requirement, and check the regulator's definition rather than guessing from the name.

How is SaMD regulated?

SaMD is regulated as a medical device in most major markets, which means it must meet the same kinds of requirements as a physical device: a quality management system, risk management, clinical evidence and post-market monitoring. The United States Food and Drug Administration and the European Union's Medical Device Regulation are the two frameworks most teams meet first, and other markets have their own versions.

Regulators sort SaMD into risk classes based on two questions: how serious is the condition, and how much does the clinical decision depend on the software. Software that informs a diagnosis for a serious condition sits in a higher class than software that simply records data for later review. The higher the class, the more evidence is needed before the product can be sold.

Some low-risk SaMD can reach the market through a simpler route, and some software is exempt because it only stores or displays data. The boundary is set by the intended use statement, which is why that statement is written with care and reviewed by regulatory specialists.

A single sentence in the intended use can move a product into a higher class, so teams write it early and treat it as a design input, not a marketing line. For health products generally, healthcare software work follows the same evidence-first pattern.

How do you build a SaMD product?

Building SaMD follows the same engineering as any software product, with extra discipline around evidence. The work starts on paper, not in code: the intended use, the risk class and the clinical claim are fixed first, because every later decision is judged against them.

  1. Define the intended use and the clinical claim. Write what the software does, for whom, and what decision it supports.
  2. Classify the risk and map the regulatory route. The class decides how much evidence is needed and which route to market applies.
  3. Set up a quality management system before coding. Documented processes for design, testing and change control are required, not optional.
  4. Write requirements with traceability to tests. Every requirement links to a test, and every test links to a result.
  5. Validate with real users and real data. Usability testing with the actual user group catches errors that lab tests miss.
  6. Plan post-market monitoring from day one. Decide what you will measure after launch and who reviews it.

Traceability is the habit that most teams underestimate. Every requirement must link to a test, and every test must link to a result, so a reviewer can follow any claim back to its evidence. Teams that add traceability at the end spend months reconstructing it.

Teams that build it in from the start treat it as part of writing the requirement. A data security and compliance review runs alongside this work, since health data rules apply from the first prototype.

What evidence do regulators expect?

Regulators expect evidence that the software does what it claims, safely, in the hands of its real users. That evidence has three parts: analytical validation, which shows the software processes inputs correctly; clinical validation, which shows the output is linked to the clinical condition; and usability evidence, which shows that ordinary users can operate it without making dangerous mistakes.

Clinical validation is usually the longest part. It can come from published studies, from a new study run by the team, or from real-world data, depending on the risk class and the claim. The evidence must match the population the product will serve: a model validated on adults cannot be assumed to work for children, and a tool validated in one country may not transfer to another without new data.

Evidence type What it shows Example
Analytical validation Inputs are processed correctly Correct dose maths on test cases
Clinical validation Output links to the condition Detection rate in a study group
Usability evidence Real users operate it safely Setup errors in a user test

Evidence is not a one-off submission. After launch, teams must monitor performance, collect reports of problems and update the product when the data shows a weakness. This post-market work is part of the approval, not an afterthought, and regulators can ask for the records at any time. The teams that pass review smoothly are the ones that treat evidence as a living file, updated with every release.

Example: a glucose-monitoring app

Example (hypothetical): a team builds an app that reads glucose data from a sensor and suggests an insulin dose. The app serves 2,000 users, each checking readings 4 times a day, which produces 8,000 readings a day. The team sets a rule that any dose suggestion outside the usual range is flagged for review before it reaches the user.

In a three-month pilot with 200 users, the app suggests 24,000 doses. Of those, 600 fall outside the usual range and go to review, which is 2.5% of all suggestions. Reviewers find that 12 of the 600 flagged doses were wrong, so the error rate on flagged doses is 2%, and the overall error rate across all 24,000 suggestions is 0.05%.

The numbers are small, but they are the numbers the regulator wants to see: how many suggestions, how many flagged, how many wrong.

The pilot also tests usability: 18 of the 200 users tap the wrong button during setup, so the team redesigns the setup screen and retests with 40 new users, of whom only 1 makes the same mistake. That second test, and the fix it prompted, becomes part of the submission. The lesson is that evidence is built from small, counted tests, not from a claim that the product works.

What are the common mistakes?

The most common SaMD mistakes are writing the intended use late, treating validation as a final test, and underestimating the documentation. Each one is cheap to avoid early and expensive to fix late.

  • Writing the intended use after the product is built, then finding it puts the product in a higher risk class.
  • Testing only on the developers' own phones and missing the devices real users own.
  • Collecting clinical evidence at the end, when the study design can no longer be changed.
  • Treating the quality management system as paperwork instead of the way the team actually works.
  • Shipping an update that changes a clinical claim without checking whether it needs a new submission.

Updates deserve special care. A SaMD product that changes its model or its claims may need a new review, and teams that ship silently can lose their clearance. Keep a change log that records what changed, why, and whether the claim changed with it.

Key takeaways

  • SaMD is software that performs a medical function on its own, on general-purpose hardware
  • The intended use statement decides the risk class and the regulatory route
  • Evidence has three parts: analytical validation, clinical validation and usability testing
  • Traceability from requirement to test to result is part of the product, not paperwork
  • Post-market monitoring continues after launch and regulators can ask for the records

Frequently asked questions

What is the difference between SaMD and software in a medical device?

Software in a medical device is code embedded in a physical device, such as an insulin pump, and the two are sold together. SaMD is software that performs a medical function on its own, running on a phone, tablet or computer the maker does not control.

Does all health software count as SaMD?

No. Software that only stores, displays or transfers health data, and wellness apps that make no medical claim, are usually not SaMD. The test is the intended use: if the software diagnoses, treats, monitors or prevents a condition, it is likely SaMD.

Who regulates SaMD?

In the United States the Food and Drug Administration regulates SaMD as a medical device, and in the European Union it falls under the Medical Device Regulation. Other markets have their own frameworks, and the risk class decides how much evidence each one requires.

Can a small team build SaMD?

Yes, but the team needs regulatory advice early and a quality management system from the start. The cost is mostly in evidence and documentation rather than in code, so a small team should plan for that work before writing the product.

Does updating SaMD need a new approval?

It depends on the change. Bug fixes that do not change the clinical claim usually do not, while changes to the model, the claim or the intended use can need a new submission. Keep a change log and check each release against the original approval.

What is the first step for a SaMD idea?

Write the intended use statement and the clinical claim, then check the risk class with a regulatory specialist. That one page decides the route to market, the evidence needed and the team you will need.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building health software that needs to stand up to review? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI Product Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call