Unit 3: Rich Content · Lesson 13 of 15

Recipe

Recipe schema turns a page about a dish into a tidy list of facts: what it's called, how long it takes, what goes in it, and how to make it. It's one of the most visible rich results in search.

7 min readIntermediateRecipe, HowToStep, NutritionInformation

When to use it

Use Recipe on a page whose main job is a single recipe: a dish, its ingredients, and the steps to make it. Fern & Ink doesn't publish recipes, so for this lesson we'll switch to a different fictional site: Weeknight Kitchen, a small food blog at https://weeknightkitchen.example/.

Google can show recipes as rich results with a photo, cook time, and (if the page has them) star ratings. As always, valid markup makes the page eligible, not guaranteed.

Check your plugin firstIf the site runs on WordPress with a recipe card plugin like WP Recipe Maker, Tasty Recipes, or Create, the plugin almost certainly outputs Recipe schema already, built from the card's fields. View the page source or run it through Google's Rich Results Test before you write anything by hand. Adding your own block on top creates a second, competing Recipe. If the plugin's output is missing something, fill in the card's fields instead.

The code

Here's the markup for Weeknight Kitchen's sheet-pan lemon chicken. Everything in it, from the times to the calorie count, is also printed on the page.

JSON-LD · Recipe
{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "@id": "https://weeknightkitchen.example/recipes/sheet-pan-lemon-chicken/#recipe",
  "name": "Sheet-Pan Lemon Chicken with Potatoes",
  "image": [
    "https://weeknightkitchen.example/images/lemon-chicken-1x1.jpg",
    "https://weeknightkitchen.example/images/lemon-chicken-4x3.jpg",
    "https://weeknightkitchen.example/images/lemon-chicken-16x9.jpg"
  ],
  "author": {
    "@type": "Person",
    "name": "Dana Ortiz",
    "url": "https://weeknightkitchen.example/about/"
  },
  "datePublished": "2026-10-02",
  "description": "Crispy chicken thighs and potatoes roasted on one pan with lemon, garlic, and oregano. Dinner in under an hour with one pan to wash.",
  "prepTime": "PT15M",
  "cookTime": "PT40M",
  "totalTime": "PT55M",
  "recipeYield": "4",
  "recipeCategory": "Dinner",
  "recipeCuisine": "Greek",
  "keywords": "sheet pan dinner, chicken thighs, one pan, weeknight",
  "recipeIngredient": [
    "6 bone-in, skin-on chicken thighs",
    "1 1/2 pounds small potatoes, halved",
    "3 tablespoons olive oil",
    "4 cloves garlic, minced",
    "1 lemon, zested and juiced",
    "2 teaspoons dried oregano",
    "1 teaspoon kosher salt"
  ],
  "recipeInstructions": [
    { "@type": "HowToStep", "text": "Heat the oven to 425°F and line a large sheet pan with foil." },
    { "@type": "HowToStep", "text": "Toss the potatoes with half the oil, garlic, oregano, and salt, and spread them on the pan." },
    { "@type": "HowToStep", "text": "Rub the chicken with the rest of the oil and seasonings, plus the lemon zest, and nestle it skin side up among the potatoes." },
    { "@type": "HowToStep", "text": "Roast for 40 minutes, until the skin is crisp and the chicken reaches 175°F." },
    { "@type": "HowToStep", "text": "Squeeze the lemon juice over everything and serve." }
  ],
  "nutrition": {
    "@type": "NutritionInformation",
    "calories": "520 calories"
  }
}

The properties

PropertyWhat it holdsStatus
nameThe name of the dish.Required
imagePhotos of the finished dish. Google suggests several high-resolution versions in 1:1, 4:3, and 16:9.Required
authorThe person or organization who wrote the recipe.Recommended
datePublishedWhen the recipe was published.Recommended
descriptionA short summary of the dish.Recommended
prepTime, cookTime, totalTimeISO 8601 durations. Use totalTime, or both prepTime and cookTime.Recommended
recipeYieldHow many servings. Needed if you include nutrition.Recommended
recipeIngredientA list of strings, one ingredient per line, quantities included.Recommended
recipeInstructionsA list of HowToStep items, each with text.Recommended
recipeCategory, recipeCuisineThe kind of dish (Dinner, Dessert) and where it's from.Recommended
keywordsComma-separated terms that aren't already the category or cuisine.Recommended
nutrition.caloriesA NutritionInformation with calories per serving.Recommended
aggregateRatingThe average rating, only if the page shows real ratings.Recommended
videoA VideoObject showing how to make the dish.Recommended

Times are durations, not clock times

In the Event lesson, dates were moments in time. Recipe times are lengths of time, and ISO 8601 has a separate format for those. It looks odd at first, but it's simple once you read it out loud:

  • P means "period." Every duration starts with it.
  • T means "time follows" (hours, minutes, seconds).
  • H, M, and S are hours, minutes, and seconds.

So PT15M is 15 minutes, PT1H10M is an hour and ten minutes, and PT2H is two hours. Don't write "15 minutes" or "1:10". Machines won't read those as times.

Make the numbers add up. If prep is 15 minutes and cooking is 40, total should be 55. And if you give a cookTime, give a prepTime too; Google wants them as a pair.

Ingredients and steps

recipeIngredient is an array of plain strings, one per ingredient, written the way they appear on the page: "4 cloves garlic, minced". Don't split the quantity into a separate field, and don't lump everything into one long string.

recipeInstructions is an array of HowToStep objects. Each one has a text with a single step. Leave out labels like "Step 1:" because the order of the array already numbers them. If a recipe has distinct parts (say, the cake and the frosting), you can group steps into HowToSection items, but most recipes don't need it.

A quick note: HowToStep comes from the HowTo vocabulary. Google retired HowTo rich results, but HowToStep inside a recipe is still exactly what its Recipe docs ask for. Don't let the name confuse you.

Yield and nutrition

recipeYield is the number of servings. A plain number like "4" is the clearest. If you add nutrition, the yield is required, because calories only make sense per serving. Write calories as text with the unit: "520 calories".

Ratings: only real ones

Notice there's no aggregateRating in the example. That's on purpose: Weeknight Kitchen doesn't show ratings on this recipe yet. Once readers can rate recipes and the page displays the average and count, add it. The numbers must match what's visible, and the ratings must come from real readers. The next lesson covers ratings in detail.

Common mistakes

  • Hand-writing Recipe schema on a site whose recipe plugin already outputs it, so the page has two.
  • Times written as "15 min" instead of PT15M, or totals that don't add up.
  • All the steps crammed into one string instead of separate HowToStep items.
  • Nutrition without a recipeYield.
  • An aggregateRating with numbers that aren't on the page.
  • A stock photo, or a photo of the ingredients, instead of the finished dish.

Try it

Weeknight Kitchen posts a slow-cooker chili: 20 minutes of prep, 6 hours of cooking, serves 8, 410 calories per serving. Write the three time values and the yield. (Answers: PT20M, PT6H, PT6H20M, and "8".) Then write the first two ingredients and the first step as JSON.

Check yourself

  • I checked whether a plugin already outputs Recipe schema before writing my own.
  • My recipe has a name and at least one image of the finished dish.
  • My times use ISO 8601 durations and add up.
  • Ingredients are an array of strings; steps are HowToStep items with text.
  • I only add aggregateRating when real ratings show on the page.
Go deeper on Double Atari

Recipes alongside the other rich-content types: Schema Markup Explained, Part 3: FAQ, Person, Event, Recipe, and Reviews.