# Boundary Value

*noun*

say it: **“BOWN-duh-ree VAL-yoo”** **/ˈbaʊndəri ˈvælju/**

A value where a rule changes, such as the $50 at which shipping becomes free; tests check right at it and on each side.

## What is a **boundary value**?

A **boundary value** is a value where a rule changes, such as $50 for free shipping. Bugs gather there (`>` written
where `>=` was meant), so tests check the values right at it and on each side of it.

```python
def test_free_shipping_starts_at_50():
    assert shipping_cost(49.99) == 5.99
    assert shipping_cost(50.00) == 0
```

## In a sentence

- “Most bugs in the ticket prices hid at a **boundary value**, age 12.”
- “The test checks the **boundary value** of $50 and the cent below it.”

Level: Journeyman · [More Unit Testing terms at this level](https://www.ask-codey.com/glossary?category=unit-testing&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/boundary-value
