What Is referenceQuantity Schema?

Published
11 min read

referenceQuantity defines the denominator used for a unit price, helping ecommerce pages express comparable rates for weight, volume, area, length, count, and services.

What Is referenceQuantity Schema?

referenceQuantity defines the standardized amount used as the basis for a unit price in UnitPriceSpecification. It lets an offer explain that a displayed comparison price is, for example, $4 per kilogram, $0.20 per fluid ounce, or $15 per 100 square feet.

The property is not the amount a shopper necessarily buys. Instead, it supplies the denominator that makes the unit price meaningful. This distinction matters whenever products have different pack sizes, weights, volumes, lengths, areas, or service quantities.

  1. Frame the decision raised by What Is referenceQuantity Schema.
  2. Confirm its value type and the object it describes.
  3. Compare the markup with visible page information.
  4. Correct the source data or template without inventing values.
  5. Validate the rendered result and monitor future changes.
referenceQuantity in one view
QuestionAnswerExample
What does it define?The quantity used to express a unit price1 kilogram
Where is it used?Within UnitPriceSpecification$4 per kilogram
What does it not mean?The pack quantity actually purchasedA 2 kg bag can still use 1 kg as reference
  • Use a QuantitativeValue to state the reference amount.
  • Include a clear unit code or unit text.
  • Keep the unit price consistent with visible page calculations.

The core definition is the denominator: referenceQuantity tells systems what amount the stated unit price is “per.”

How Does referenceQuantity Work With UnitPriceSpecification?

referenceQuantity works by pairing a QuantitativeValue denominator with the price inside UnitPriceSpecification. The price supplies the monetary numerator, while referenceQuantity supplies the measurable denominator used for comparison.

A product may sell for $8 in a two-kilogram package while also displaying a unit price of $4 per kilogram. The ordinary Offer can describe the $8 transaction; UnitPriceSpecification can describe the $4 comparable rate; referenceQuantity identifies one kilogram as the rate’s basis.

  • Evidence for How Does referenceQuantity Work With UnitPriceSpecification: the live structured-data entity and property relationship
  • The expected value type and any nested object
  • Visible page information that supports the structured value
  • Related offer or catalog fields needed for interpretation
  • A fresh validation result after the page changes
How the unit-price model fits together
ElementResponsibilityCoffee example
OfferThe actual purchasable terms2 kg bag for $8
UnitPriceSpecificationThe comparable unit price$4 per reference unit
priceCurrencyThe currency of the priceUSD
referenceQuantityThe amount used as “per”1 kg
  1. Model the actual product offer first.
  2. Calculate the unit price from the same product data.
  3. Add the reference quantity and unit to the unit price specification.
  4. Verify the visible and structured calculations agree.

See UnitPriceSpecification Schema for the parent entity.

The relationship must remain mathematical: the price and referenceQuantity together must reproduce the unit price shown to the shopper.

When Should You Use referenceQuantity?

Use referenceQuantity when a page presents a normalized price for comparing products sold in different quantities. Common cases include groceries, beverages, building materials, fabric, cable, cosmetics, fuel, bulk goods, and measured services.

Do not add it solely because a product has a weight or pack count. The property is useful when the markup contains a true unit-price specification and the page visibly communicates the same comparison basis.

  1. Frame the decision raised by When Should You Use referenceQuantity.
  2. Confirm its value type and the object it describes.
  3. Compare the markup with visible page information.
  4. Correct the source data or template without inventing values.
  5. Validate the rendered result and monitor future changes.
Strong use cases for referenceQuantity
CategoryVisible unit priceReference quantity
Packaged food$0.40 per ounce1 ounce
Flooring$3.25 per square foot1 square foot
Detergent$0.18 per load1 load
Fabric$12 per yard1 yard
Cloud storage$2 per 100 GB100 gigabytes
  • Use it when comparison requires a stable denominator.
  • Use the same denominator displayed to US shoppers.
  • Avoid a normalized price that customers cannot verify on the page.

Use referenceQuantity for real unit pricing: it belongs wherever “price per amount” is an explicit part of the offer.

Which QuantitativeValue Properties Does referenceQuantity Need?

A referenceQuantity normally needs value plus unitCode or unitText; valueReference can add context when the denominator depends on another structured constraint. The amount and unit must jointly identify a repeatable comparison basis.

Use a standardized unit code when one accurately represents the measurement. Use unitText for understandable commercial units such as “load,” “serving,” or “seat” when a suitable code is unavailable or would be less clear.

  • Evidence for Which QuantitativeValue Properties Does referenceQuantity Need: the live structured-data entity and property relationship
  • The expected value type and any nested object
  • Visible page information that supports the structured value
  • Related offer or catalog fields needed for interpretation
  • A fresh validation result after the page changes
Fields commonly used in referenceQuantity
FieldPurposeExample
valueThe numeric reference amount100
unitCodeA standardized unit identifierGRM
unitTextA readable measurement labelgrams
valueReferenceAdditional basis or constraint when genuinely neededA defined product measurement context
  1. Select the denominator used in the visible unit-price label.
  2. Express the numeric amount without adding marketing text.
  3. Add the most precise unit identifier available.
  4. Confirm the same unit is used throughout the variant and checkout data.

A number alone is not enough: referenceQuantity becomes meaningful only when its value and unit form an unambiguous denominator.

How Do You Add referenceQuantity in JSON-LD?

Add referenceQuantity as a QuantitativeValue nested inside UnitPriceSpecification. Keep the unit-price specification connected to the relevant Offer and generate every numeric value from the same product or pricing record.

{
  "@context": "https://schema.org",
  "@type": "Offer",
  "price": "8.00",
  "priceCurrency": "USD",
  "priceSpecification": {
    "@type": "UnitPriceSpecification",
    "price": "4.00",
    "priceCurrency": "USD",
    "referenceQuantity": {
      "@type": "QuantitativeValue",
      "value": 1,
      "unitCode": "KGM",
      "unitText": "kilogram"
    }
  }
}
  • Evidence for How Do You Add referenceQuantity in JSON-LD: the live structured-data entity and property relationship
  • The expected value type and any nested object
  • Visible page information that supports the structured value
  • Related offer or catalog fields needed for interpretation
  • A fresh validation result after the page changes
  1. Frame the decision raised by How Do You Add referenceQuantity in JSON-LD.
  2. Confirm its value type and the object it describes.
  3. Compare the markup with visible page information.
  4. Correct the source data or template without inventing values.
  5. Validate the rendered result and monitor future changes.
JSON-LD implementation checks
CheckCorrect resultIncorrect result
NestingQuantitativeValue inside UnitPriceSpecificationLoose property on Organization
ArithmeticUnit price matches pack price and sizeCopied price from another variant
CurrencyConsistent currency at both levelsUSD offer with CAD unit price
VisibilitySame unit price is understandable on pageMarkup-only comparison

Use Novaverb Site Audit to verify the deployed markup across product templates.

The implementation is trustworthy when it is reproducible: pack price divided by pack quantity must equal the marked-up unit price for the chosen reference.

referenceQuantity vs eligibleQuantity: What Is the Difference?

referenceQuantity is the denominator for a normalized unit price, while eligibleQuantity is the amount included in or covered by an offer. The first helps compare rates; the second helps describe the transaction quantity.

A two-kilogram bag can have eligibleQuantity of two kilograms because that is what the buyer receives. Its unit price can use referenceQuantity of one kilogram because that is the comparison basis. Both values may appear in a complete model without duplicating meaning.

  • Evidence for referenceQuantity vs eligibleQuantity: What Is the Difference: the live structured-data entity and property relationship
  • The expected value type and any nested object
  • Visible page information that supports the structured value
  • Related offer or catalog fields needed for interpretation
  • A fresh validation result after the page changes
  1. Frame the decision raised by referenceQuantity vs eligibleQuantity: What Is the Difference.
  2. Confirm its value type and the object it describes.
  3. Compare the markup with visible page information.
  4. Correct the source data or template without inventing values.
  5. Validate the rendered result and monitor future changes.
referenceQuantity compared with eligibleQuantity
DimensionreferenceQuantityeligibleQuantity
Main questionWhat amount is this price per?How much does this offer include?
Typical parentUnitPriceSpecificationOffer
Two-kilogram pack1 kg for unit comparison2 kg purchased
Main useNormalized comparisonTransaction scope

Read eligibleQuantity Schema before modeling packs or measured services.

The simplest test is “per” versus “included”: referenceQuantity answers “per what,” while eligibleQuantity answers “how much is included.”

How Do You Calculate a Unit Price From referenceQuantity?

Calculate the unit price by dividing the payable price by the purchasable quantity, then multiplying by the chosen reference amount after converting both quantities to the same unit. Never mix ounces with pounds, milliliters with liters, or pack counts with weights without an explicit conversion.

  • Evidence for How Do You Calculate a Unit Price From referenceQuantity: the live structured-data entity and property relationship
  • The expected value type and any nested object
  • Visible page information that supports the structured value
  • Related offer or catalog fields needed for interpretation
  • A fresh validation result after the page changes
Unit-price calculation examples
OfferReferenceCalculationUnit price
$12 for 3 lb1 lb12 ÷ 3 × 1$4/lb
$9 for 750 ml100 ml9 ÷ 750 × 100$1.20/100 ml
$45 for 15 sq ft1 sq ft45 ÷ 15 × 1$3/sq ft
$30 for 200 GB100 GB30 ÷ 200 × 100$15/100 GB
  1. Read the actual payable price for the active variant.
  2. Convert the sold quantity into the reference unit.
  3. Apply one consistent rounding policy.
  4. Render the same result in visible copy and structured data.
  5. Recalculate whenever price, pack size, or variant changes.

The formula is only reliable when inputs share a unit: normalize first, calculate second, and round once at the display boundary.

How Do You Validate referenceQuantity Markup?

Validate referenceQuantity by checking JSON-LD syntax, entity placement, measurement units, price arithmetic, variant alignment, and live-page visibility. Passing a parser proves structure, but it does not prove that the unit price is commercially accurate.

  1. Frame the decision raised by How Do You Validate referenceQuantity Markup.
  2. Confirm its value type and the object it describes.
  3. Compare the markup with visible page information.
  4. Correct the source data or template without inventing values.
  5. Validate the rendered result and monitor future changes.
Reference quantity validation workflow
LayerEvidence to inspectPass condition
SyntaxParsed JSON-LDNo malformed object or invalid value type
EntityStructured-data graphNested in the intended UnitPriceSpecification
MeasurementValue and unitClear denominator using one unit system
ArithmeticOffer price and sold quantityRecalculation matches the marked-up rate
VariantSelected SKU dataPrice, size, and unit price describe one SKU
Rendered pageVisible unit-price disclosureA shopper can understand the same comparison
  • Test small and large package variants.
  • Test sale prices separately from regular prices.
  • Crawl category samples to detect template-wide unit drift.
  • Recheck after feed, currency, or measurement changes.

Connect this check with the wider Novaverb SEO tools system.

Start with a relevant free SEO check, continue the evidence workflow in Novaverb, and review pricing when comparing continuous monitoring with a one-time manual review.

Validation must prove the calculation: a valid property with the wrong denominator is still incorrect commerce data.