UK pub chain Farmhouse Inns is giving away free slices of cake for one day only.

Customers can indulge in a piece of cake at their local pub for free in an offer that celebrates the start of summer this weekend and the chain's 20th birthday.

Farmhouse Inns is giving away the cake today (June 22) but customers have to say the secret codeword to be able to get theirs.

How to get a free slice of cake today at Farmhouse Inns pubs

If a free slice of cake sounds like your idea of a sweet treat, here’s how you can get your hands on one.

All you need to do is go to any Farmhouse Inns pub in the UK and say the secret codeword ‘Farmhouse Birthday’ when you place your order.

Customers will receive a slice of Neapolitan-inspired cake made with three layers of vanilla and chocolate sponge and covered in strawberry icing, marking Farmhouse Inns' 20th birthday.

While it’s only free today, customers can buy a slice of the Party Starter cake all summer in Farmhouse Inns pubs until Monday, September 2.

Andrea McLoughlin and Sarah Barnett, Cake-a-tiers at Farmhouse Inns, said: “We take great pride in producing an amazing variety of tasty cakes baked fresh on-site every morning for our lovely customers and have been privileged to do so for a significant period of time.”

Emma Smith, Senior Marketing Manager at Farmhouse Inns, said: “We’re delighted to be celebrating the 20th birthday of Farmhouse Inns this year, a significant milestone in which we’ve brought the delights of cake and carvery to our customers for a long period of time.

“Our limited edition cake is something a bit different and will give our customers a huge variety of flavours in just one slice, including vanilla, chocolate and strawberry. We can’t wait for people to visit their local Farmhouse Inns to try it for themselves.”