Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Resources

    Blog

    Insights on automated testing and QA best practices.

    BlogProduct updatesCase studies
    AllComparisonsBest ToolsMobile TestingAI TestingTesting Fundamentals

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Written by
    Read time
    Published
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • Sandboxes
    • Enterprise
    • Pricing
    Contact salesTry for free
    Back to Blog
    Blog

    Validation vs Verification: The Difference, With Examples

    Validation vs verification explained: what each checks, when it runs, who owns it, the methods behind both, plus a worked example and test code.

    Written by
    Gautam Agarwal
    Read time
    8 min read
    Published
    November 23, 2026
    Validation vs Verification: The Difference, With Examples
    On this page
    1. Key Takeaways
    2. Verification vs Validation at a Glance
    3. What Verification Means
    4. What Validation Means
    5. Where Both Sit in the V-Model
    6. A Worked Example: Password Reset
    7. Verification in Code
    8. Pitfalls to Watch
    9. Conclusion
    10. FAQs
    11. What is the main difference between verification and validation?
    12. Which comes first, verification or validation?
    13. Is unit testing verification or validation?
    14. Is user acceptance testing verification or validation?
    15. Can verification happen before code runs?
    16. What does V&V stand for?

    Verification checks that software is built correctly against its specification, while validation checks that the right software was built for the people who will use it. Verification compares the product with documents; validation compares it with real needs.

    The two words sound interchangeable, and many teams treat them that way. The cost of that blur shows up late: a release passes every specified check, ships on time, and then users abandon the feature because the specification itself missed what they wanted. Separating the two questions early gives each one an owner, a method and a moment in the lifecycle.

    This guide covers what each term means, how the methods differ, where both sit in the V-model, a worked example on a single feature, and what each looks like in test code.

    Key Takeaways

    • Verification asks "did we build the product right?" and validation asks "did we build the right product?"
    • The US FDA's software validation guidance defines verification as objective evidence that each phase's outputs meet that phase's specified requirements.
    • Verification relies on reviews, static analysis tools such as ESLint, and unit and integration tests run by developers.
    • Validation relies on acceptance testing, usability sessions and beta feedback, and its reference point is user needs.
    • In the V-model, each specification on the left side pairs with a test level on the right, from unit tests up to acceptance testing.

    Verification vs Validation at a Glance

    DimensionVerificationValidation
    Core questionDid we build the product right?Did we build the right product?
    Reference pointRequirements, designs, specificationsUser needs and intended use
    When it runsThroughout development, phase by phaseMostly on working builds, near and after release
    Code executionOptional: reviews and static analysis run on code at restRequired: users interact with running software
    Typical methodsReviews, inspections, static analysis, unit and integration testsAcceptance testing, usability tests, beta programs, field data
    Typical ownersDevelopers, QA engineersProduct owners, customers, end users
    Defect it catchesCode that departs from the specificationA specification that misses the real need

    The last row carries the most weight. Verification finds mistakes in the build. Validation finds mistakes in the plan.

    __wf_reserved_inherit

    What Verification Means

    The US Food and Drug Administration's General Principles of Software Validation guidance, which FDA states still reflects its current thinking outside one superseded section, describes verification as objective evidence that the outputs of a given lifecycle phase meet all of the requirements specified for that phase. Put simply, every phase hands over a work product, and verification confirms that product matches what the phase promised.

    Verification spans both static and dynamic techniques:

    • Reviews and inspections. Peers read requirements, designs and code against a checklist before anything runs. A contradictory business rule caught here costs one conversation.
    • Static analysis. Tools such as ESLint inspect code at rest and check it against defined rules.
    • Unit and integration tests. Automated checks confirm that functions and their connections behave as specified.
    • Functional system tests. Scripted journeys confirm each feature against its acceptance criteria, as described in our guide to functional testing.

    Verification is cheap because it starts early. A 2002 NIST report estimated that gaps in testing infrastructure cost the US economy $59.5 billion per year, and noted that over half of bugs surfaced downstream in development.

    What Validation Means

    The same FDA guidance describes validation as confirmation, through examination and objective evidence, that software specifications conform to user needs and intended uses. The reference point shifts from the document to the person.

    Validation methods put working software in front of the people it serves:

    • Acceptance testing. Business stakeholders confirm the product supports their real workflows. Our guide to acceptance testing explains the main variants.
    • User acceptance testing (UAT). Real users run realistic scenarios on a release candidate. On mobile, build distribution shapes what UAT you can run, as our guide to UAT testing shows.
    • Usability sessions. Observers watch users attempt goals and record where they hesitate or fail.
    • Beta programs and field data. Analytics, crash reports and support tickets reveal whether the shipped product meets needs at scale.

    Validation also covers quality expectations that live outside feature lists, such as speed, accessibility and reliability.

    Where Both Sit in the V-Model

    The V-model draws development as a descent on the left side and testing as an ascent on the right. Each specification on the left pairs with a test activity on the right that checks it.

    Left side: specificationRight side: matching testMainly verification or validation?
    Business and user requirementsAcceptance testingValidation
    System requirementsSystem testingVerification, with validation elements
    Architecture and high-level designIntegration testingVerification
    Detailed design and codeUnit testingVerification

    The pairing explains why verification dominates the lower levels and validation dominates the top. Code is checked against designs, while the finished product is checked against the people who asked for it. A test plan is the natural place to record which activity covers which pair.

    __wf_reserved_inherit

    A Worked Example: Password Reset

    Take one feature with a written specification: a user requests a reset link by email, the link expires after 30 minutes, and the new password needs at least 12 characters.

    CheckTypeWhat it confirms
    Code review of the token logicVerificationThe expiry uses 30 minutes, matching the spec
    Unit test on the expiry functionVerificationA 31-minute-old token is rejected
    Unit test on password rulesVerificationAn 11-character password is rejected
    End-to-end test of the full flowVerificationRequest, email, link and reset work together
    Usability session with five usersValidationUsers find the reset option and finish in under 2 minutes
    Support ticket review after launchValidationReset-related tickets fall, showing the feature meets the need

    Imagine the usability session reveals that most users check email on a phone and open the link after the 30-minute window. Every verification check passed, yet the feature fails its purpose. Validation surfaces a requirement problem that verification, by design, is blind to, since verification trusts the specification.

    Verification in Code

    Verification lends itself to automation because the expected result is written down. Here is the expiry rule as a pytest unit test:‍

    # test_reset_token.py
    from datetime import datetime, timedelta
    from reset import token_is_valid
    

    def test_token_valid_at_29_minutes(): issued = datetime.now() - timedelta(minutes=29) assert token_is_valid(issued) is True

    def test_token_rejected_at_31_minutes(): issued = datetime.now() - timedelta(minutes=31) assert token_is_valid(issued) is False

    And the full journey as a Playwright end-to-end test:‍

    // tests/reset.spec.ts
    import { test, expect } from '@playwright/test';

    test('user can reset a password with a 12-character minimum', async ({ page }) => { await page.goto('https://app.example.com/reset?token=valid-test-token'); await page.getByLabel('New password').fill('correct-horse-42'); await page.getByRole('button', { name: 'Save password' }).click(); await expect(page.getByText('Password updated')).toBeVisible(); });

    Both tests verify. They prove the build matches the specification, and they will keep proving it on every commit as part of a regression suite. Neither test can tell you whether 30 minutes was the right window. That judgement belongs to validation.

    One subtle trap applies to automated verification itself: a test can pass while the underlying outcome is wrong, for example when a success message renders from cached state. The fix is to assert on stored state, such as the saved record, as well as on the screen.

    Pitfalls to Watch

    • Treating a green suite as proof of fitness. Passing tests confirm conformance to the spec, and only validation confirms the spec was right.
    • Saving validation for launch day. Prototype reviews and early usability sessions validate cheaply before code exists.
    • Letting the same person write the spec and validate it. Validation works best when the people who carry the need judge the result.
    • Verifying one platform only. A flow that passes on web can still fail on iOS or Android. Our platform page shows how one flow can run across iOS, Android, the web, Chrome extensions and App Clips.

    Conclusion

    Verification and validation answer two different questions, and a release needs both answers. Verification proves the build matches the specification, phase by phase, with reviews, static analysis and automated tests. Validation proves the specification matches real needs, with acceptance testing, usability sessions and field data.

    A practical split: automate verification so it runs on every commit, and schedule validation at fixed points such as prototype review, release candidate and four weeks after launch. For the broader context of how both fit into a test strategy.

    __wf_reserved_inherit

    FAQs

    What is the main difference between verification and validation?

    Verification checks the product against its specification, while validation checks it against real user needs.

    Which comes first, verification or validation?

    Verification usually starts first and runs throughout development, while validation concentrates on working builds near release.

    Is unit testing verification or validation?

    Unit testing is verification, because it confirms code behaves exactly as the design specifies.

    Is user acceptance testing verification or validation?

    User acceptance testing is validation, because real users confirm the product meets their needs.

    Can verification happen before code runs?

    Yes, reviews, inspections and static analysis verify requirements, designs and code before anything executes.

    What does V&V stand for?

    V&V stands for verification and validation, the paired quality activities common in regulated software development.

    ‍

    On this page

    1. Key Takeaways
    2. Verification vs Validation at a Glance
    3. What Verification Means
    4. What Validation Means
    5. Where Both Sit in the V-Model
    6. A Worked Example: Password Reset
    7. Verification in Code
    8. Pitfalls to Watch
    9. Conclusion
    10. FAQs
    11. What is the main difference between verification and validation?
    12. Which comes first, verification or validation?
    13. Is unit testing verification or validation?
    14. Is user acceptance testing verification or validation?
    15. Can verification happen before code runs?
    16. What does V&V stand for?

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Learn
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.