Out-of-stock products: what to do with the page
A product page with nothing to sell still holds links and rankings. Here is when to keep, redirect, or remove it, and how to mark up availability.
Every store runs out of things. Some items come back next week. Others never return. What you do with the page in each case decides whether you keep the links and rankings it earned or throw them away.
The mistake is treating all unavailable products the same. Deleting every sold-out page loses value. Keeping every dead page live wastes shoppers' time and clutters your index. Start by sorting each product into one of three states.
Sort products into three states
- Temporarily out of stock: the item will return, and you know roughly when.
- Permanently discontinued, with a close replacement: a successor or near-identical product exists.
- Permanently discontinued, with no replacement: nothing on your site serves the same need.
Your inventory system probably already knows which state applies. If it does not, add a field for it. Without that field, every decision below becomes a manual guess.
Temporarily out of stock: keep the page
Leave the URL live and return a normal 200 status. Do not noindex it and do not redirect it. The page keeps its rankings, and shoppers who land on it can still be helped.
Make the page useful while the item is gone. Say clearly that it is out of stock. Offer a back-in-stock email signup. Show a few in-stock alternatives close to the top, not buried in the footer.
Avoid using a 503 status for a single sold-out product. A 503 tells crawlers the server is in trouble. It is meant for short site-wide outages, not for inventory.
Update the markup to match
Your Product schema should set the offer's availability to match the page. Schema.org defines values such as InStock, OutOfStock, BackOrder, PreOrder, and Discontinued. If the visible page says sold out but the markup says InStock, you have a mismatch. Google's merchant and shopping systems compare the two, and a mismatch can lead to listing problems. AI shopping tools that read your markup may also repeat the wrong status to a buyer.
Make sure the markup updates automatically with stock changes. A template that hardcodes InStock is the most common cause of this error.
Discontinued with a replacement: redirect to it
If a product is gone for good and a close successor exists, a 301 redirect to the successor is the cleanest option. It sends users to something they can buy and passes the old page's signals to the new one.
Close is the key word. The replacement should satisfy the same need. A redirect from a discontinued laptop model to its newer version works. A redirect to the homepage or to a generic category rarely does. Google has said it can treat mass redirects to irrelevant pages like soft 404s, which means you get no benefit from them.
If the old product still gets steady traffic from people who want that exact model, consider keeping the page live for a while. Mark it as discontinued, explain what replaced it, and link to the successor. This serves the searcher better than an instant redirect that hides what happened.
Discontinued with no replacement: remove it honestly
When nothing on your site matches, let the page go. Return a 404 or a 410. Both work. A 410 says the page is gone on purpose and can lead to quicker removal from the index, though the difference in practice is small.
Before you delete, check whether the page has meaningful backlinks. If it does, redirect to the most relevant category page, not the homepage. A category that holds similar products is a fair stand-in. If no relevant category exists, a 404 is the honest answer.
Also remove the URL from your XML sitemap and fix internal links pointing to it. Dead URLs in a sitemap send mixed signals and show up as errors in Search Console.
How to audit what you already have
- Export all product URLs with their stock state from your platform.
- Pull clicks and impressions for each URL from Search Console over the last 12 months.
- Pull backlink counts for the unavailable products from your link tool.
- Check the status code each unavailable page returns. Look for 200s on dead products and chains of redirects.
- Compare the visible availability on each page with its schema output.
Sort the result by traffic and links. The pages with both are your first priority, since a wrong choice there costs the most.
What to do this week
Pick your ten unavailable products with the most search traffic. Label each as temporary, replaceable, or gone. Then apply the matching rule: keep and mark up, redirect to a close match, or return a 404 or 410. Finally, check that your schema availability field is generated from live stock data and not typed in by hand.