Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

QuantitativeValue and QualitativeValue: Units, Ranges, and Measurement Types

How Schema.org QuantitativeValue and QualitativeValue represent numbers, units, intervals, and ordered categories—with Google merchant and shipping rules.

This page summarises Schema.org documentation on numeric and categorical measurements in structured data, together with how Google Search expects QuantitativeValue in merchant listings and shipping policies. Most properties in the vocabulary that describe amounts, sizes, durations, or counts accept QuantitativeValue; discrete product characteristics often use QualitativeValue or plain Text.

QuantitativeValue: what it is and when to use it

Section titled “QuantitativeValue: what it is and when to use it”

QuantitativeValue is a Schema.org type for a single measured amount or a numeric interval (minimum and maximum) attached to product characteristics, offers, vehicles, exercises, and many other entities.

A point value or interval for product characteristics and other purposes.

— Schema.org, Version 30.1

Dozens of properties expect only QuantitativeValue as their value type—for example height, weight, transitTime, referenceQuantity, and inventoryLevel. Some properties also allow a simpler Number or a specialised quantity type such as Distance on depth and width, or Mass on weight. When you need a unit, a range, or context via valueReference, the structured QuantitativeValue object is the right shape.

Properties on QuantitativeValue (value, ranges, and units)

Section titled “Properties on QuantitativeValue (value, ranges, and units)”

The type is defined with these properties on the type itself:

Property Role
value Point measurement; for QuantitativeValue, the recommended datatype is Number
minValue / maxValue Lower and upper bounds of an interval
unitCode Standard unit, often UN/CEFACT Common Code
unitText Human-readable unit when no standard code exists
valueReference Secondary value for context (reference quantity, conditions)
additionalProperty Extra characteristic as PropertyValue

unitCode and unitText are also used on PropertyValue, TypeAndQuantityNode, and UnitPriceSpecification. Schema.org states that unitText is useful when you cannot provide a standard code for unitCode—for example fuelConsumption notes that there are no standard unit codes for litres per 100 km, so publishers should use unitText (e.g. L/100 km).

For the numeric field value (and related numbers), Schema.org’s usage guidelines apply:

Use values from 0123456789 (Unicode ‘DIGIT ZERO’ (U+0030) to ‘DIGIT NINE’ (U+0039)) rather than superficially similar Unicode symbols. Use ‘.’ (Unicode ‘FULL STOP’ (U+002E)) rather than ‘,’ to indicate a decimal point.

— Schema.org, Version 30.1

Number, Integer, Float, and Quantity in the datatype hierarchy

Section titled “Number, Integer, Float, and Quantity in the datatype hierarchy”

Structured data mixes wrapper types (QuantitativeValue) with literal datatypes from DataType.

The full schema hierarchy lists primitives under DataType, including Boolean, Date, DateTime, Text, Time, and Number. Under Number come Float (“Data type: Floating number”) and Integer. Many properties accept either a bare Number or a full QuantitativeValue—for example annualPercentageRate, numberOfBedrooms, and seatingCapacity.

Quantity is the abstract datatype for physical measures; concrete subtypes include Distance, Duration, Energy, and Mass. Properties such as height may use Distance or QuantitativeValue; workload may use Energy or QuantitativeValue. Choosing between a typed quantity string and QuantitativeValue depends on whether you are publishing a single coded quantity or a range with explicit unitCode.

Properties that require whole counts often list Integer—for example numAdults, numChildren, and partySize—alongside QuantitativeValue where the cluster documentation allows both.

QualitativeValue: predefined categories and ordering

Section titled “QualitativeValue: predefined categories and ordering”

QualitativeValue is an enumeration type for predefined characteristics (plug type, garment size, fuel type labels, and similar), not for free-form measurements.

A predefined value for a product characteristic, e.g. the power cord plug type ‘US’ or the garment sizes ‘S’, ‘M’, ‘L’, and ‘XL’.

— Schema.org, QualitativeValue

Properties such as bodyType, fuelType, engineType, and vehicleTransmission expect QualitativeValue, Text, or sometimes URL. lodgingUnitType and passengerPriorityStatus follow the same pattern.

QualitativeValue also supports ordering relations between enumerated values, each defined as its own property and used on QualitativeValue itself:

Property Meaning
equal Subject is equal to the object
greater / greaterOrEqual Subject is greater (or ≥) than the object
lesser / lesserOrEqual Subject is lesser (or ≤) than the object
nonEqual Subject is not equal to the object

Each relation’s value type is QualitativeValue. These are for comparable qualitative scales (sizes, grades), not for raw numbers—that role belongs to QuantitativeValue and Number.

QuantitativeValueDistribution and statistical summaries

Section titled “QuantitativeValueDistribution and statistical summaries”

QuantitativeValueDistribution describes a statistical distribution: median, percentile10, percentile25, percentile75, percentile90, and optional duration. Percentile properties are used on QuantitativeValueDistribution, not as arbitrary product fields. marginOfError on observations is a separate use of QuantitativeValue for uncertainty, not a distribution container.

Google merchant listing: unit pricing with QuantitativeValue

Section titled “Google merchant listing: unit pricing with QuantitativeValue”

Google’s merchant listing structured data uses QuantitativeValue for unit pricing on referenceQuantity (and related unit pricing fields). The same type appears for shipping durations, but validation rules differ—do not reuse one JSON pattern for both without checking each section.

For unit pricing:

QuantitativeValue can be used for pricing that is based on a unit measure, such as buying flooring per square meter, or liquids per half gallon.

— Google, Merchant listing (Product, Offer) structured data

Required on that QuantitativeValue:

  • unitCode — Text or URL; UN/CEFACT codes or human-readable equivalents from Merchant Center unit-pricing guidance (with exceptions: sheet and item only in feeds, not in this structured data path per Google).
  • value — Text: the numeric amount of the unit sold.

Recommended: valueReference as another QuantitativeValue for the base quantity in which the product is priced. The canonical type definition remains on schema.org/QuantitativeValue (linked from Google’s doc via referenceQuantity).

Google merchant listing: shipping times (min/max days)

Section titled “Google merchant listing: shipping times (min/max days)”

For shipping times, Google requires a day range on QuantitativeValue:

  • minValue and maxValue — non-negative whole numbers (days).
  • unitCode — must be DAY or d.

The same type is used for unit pricing elsewhere with different required properties—mixing rules is a common validation failure.

Google shipping policy: dimensions, weight, and handling ranges

Section titled “Google shipping policy: dimensions, weight, and handling ranges”

Google’s merchant shipping policy (ShippingService) structured data uses QuantitativeValue under ShippingConditions for packing dimension ranges (weight and numItems) that determine rates and transit times.

Either the minValue or maxValue property must be provided. The minValue property defaults to 0 and the maxValue property defaults to infinity when not provided.

— Google, Merchant shipping policy (ShippingService) structured data

For weight, unitCode must be UN/CEFACT LBR (pound) or KGM (kilogram). For item counts, unitCode may be omitted or set to H87. minValue must be less than maxValue when both are set. The same documentation points to QuantitativeValue for handling times on ShippingService and transit times on ShippingConditions—aligned with Schema.org properties such as handlingTime and transitTime, which also allow ServicePeriod in Schema.org’s type list.

TypeAndQuantityNode pairs a type of good with a quantity. amountOfThisGood is used on that type; includesObject expects TypeAndQuantityNode. eligibleQuantity on offers and price specifications expresses the interval and unit for which a price or freight charge applies—see Schema.org’s note under eligibleQuantity in the version reference.

Practical patterns: intensity, fuel, and valueReference

Section titled “Practical patterns: intensity, fuel, and valueReference”

Some properties accept both QuantitativeValue and Text—for example intensity (“Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute”) and activityFrequency. Prefer QuantitativeValue with unitText or unitCode when the measure is numeric.

For fuelConsumption, Schema.org documents three practical points: use unitText for L/100 km; fuelConsumption and fuelEfficiency are reciprocal representations; and valueReference can tie consumption to speed or usage pattern. itemPopularity is meant for platform-relative rank, not self-asserted marketing claims.

valueReference on QualitativeValue or QuantitativeValue links a secondary value (reference temperature, measurement type, driving context). That is the intended way to add “at 80 km/h” style context without overloading description.

  • Using comma as decimal separator or fancy Unicode digits instead of ASCII 0–9 and . per Schema.org number guidelines.
  • Putting only value when Google shipping requires minValue, maxValue, and unitCode DAY/d.
  • Omitting unitCode for merchant unit pricing when Google marks it required, or using feed-only codes (sheet, item) in on-page structured data where Google excludes them.
  • Treating QualitativeValue ordering properties (greater, lesser, …) as numeric comparators on raw numbers.
  • Using unitCode for fuel economy when Schema.org explicitly expects unitText for litres per 100 km.
  • Reusing one QuantitativeValue snippet copied from unit-pricing examples for shipping-time or weight-tier blocks without matching the property-specific rules in merchant listing and shipping policy documentation.
  1. Open your page’s JSON-LD (or microdata) and locate every object typed as QuantitativeValue or QualitativeValue.
  2. For each numeric field, confirm digits and decimal points match Schema.org’s rules on value in Version 30.1.
  3. Compare merchant unit pricing nodes to the required unitCode and value fields in Merchant listing (Product, Offer) structured data; compare shipping time nodes to that document’s minValue, maxValue, and DAY/d requirements.
  4. Compare shipping weight and item-count tiers to Merchant shipping policy (ShippingService) structured data, including defaults for omitted minValue/maxValue and allowed weight unit codes.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.