Yes, but only when it is accurate. Google can use the lastmod date as a hint that a page changed and may be worth crawling again, provided your dates are consistently and verifiably correct. Google ignores the priority and changefreq values. Set lastmod to the date of a meaningful content change, not today's date or the time the sitemap was built.
Why it matters
A trustworthy lastmod helps crawlers spend their time on pages that really changed. If every entry claims to have changed today, Google learns that the dates carry no information and may stop paying attention to them. Honest dates are the only kind that help.
How to do it
- Decide what counts as a change. Editing the main content, price, availability or key details counts. Changing the footer, a sidebar widget or a rotating banner does not.
- Store a real modified date for each page, taken from your CMS or database, and feed it into the sitemap. Do not use the sitemap generation time.
- Write the date in W3C datetime format. A date alone is valid, and so is a full timestamp with a time zone:
<url>
<loc>https://www.example.com/pricing</loc>
<lastmod>2026-11-01</lastmod>
</url>
<lastmod>2026-11-01T09:30:00+00:00</lastmod>
- If you cannot supply a reliable date for a page, leave lastmod out rather than guessing. A missing value is better than a wrong one.
- Remove priority and changefreq if you wish. They are part of the sitemap format, but Google does not use them, so keeping them does no good.
- After a significant update to an important page, check that its lastmod changed. You can also inspect the page in Search Console to see when Google last crawled it.
Other search engines may treat these fields differently, so check their documentation if they matter to you.
Common mistakes
- Setting every lastmod to the current date each time the sitemap is regenerated.
- Updating lastmod for trivial changes such as a new timestamp in the footer.
- Using a date format that is not valid, such as 01/11/2026.
- Expecting a new lastmod to cause an immediate crawl or a ranking change.
- Relying on priority to push important pages up. Google does not use it.
Frequently asked questions
Does a newer lastmod improve rankings?
No. It is a crawling hint, not a ranking factor. A page ranks because of its content and relevance, not because its sitemap date is recent.
What about changefreq and priority?
Google does not use either of them. They can stay in the file without harm, but you do not need to maintain them.
Is it worth adding lastmod to a small site?
It does no harm and costs little if your CMS supplies a real modified date. If it would mean inventing dates, skip it.
Related guides
- Sitemap lastmod, changefreq and priority
- How to create a sitemap.xml file
- Request indexing with URL Inspection
- Sitemap index files for large websites
To see how your pages look to a crawler, Try the free website sample.