A restaurant menu in China is leaving diners baffled by forcing them to solve maths equations to work out how much their food costs.

The small restaurant in Beijing has implemented a pricing system that relies on customers solving complex questions, many involving trigonometry, to discover the price of each dish.

One diner shared a photo of the menu on Chinese social media website Sina Weibo, and it immediately went viral.

The menu (pictured) shows complex math equations where the usual prices should be

The food is rumoured to be worth the difficult menu however. The restaurant serves a combination of traditional chinese food and home recipes (stock image)

People sharing and commenting on the picture said the unconventional pricing system made them feel like they were back in a classroom, and others remarked the picture was giving them headaches and nightmares.

Others reacted more positively and praised the restaurant, pointing out that maths was universally understood and would be easier to decode for tourists than poorly translated words.

Luckily, the owners hold some sympathy for the mathematically challenged, and a disclaimer at the bottom of the menu directs customers to simply ask them if they need help working out the bill.

It's understood the menu is worth whipping out a calculator for - though it might be best to work out the prices before ordering a stiff drink.

The restaurant serves traditional dishes and home-recipes, including enokitake mushrooms, tofu, winter melon, and asparagus.