Conventional wisdom warns that jumping into bed with an ex-partner after a breakup can only lead to greater heartache.

But a new study claims that having sex with an ex does not hinder moving on after a split and might even help to get over a breakup.

This is true even for those who continue to pine after their ex, said study author Stephanie Spielmann, of Wayne State University in the US.

In two studies, researchers analysed the daily experiences of 113 participants who had recently experienced a breakup. Two months later, these participants completed a further online survey.

Participants were asked if they had tried to have any physical contact with their former partners, how emotionally attached they still were and how they felt after each day.

In a second study, 372 participants reported their actual and attempted sexual engagement with their ex-partner, as well as whether they were still emotionally tied to them.

The researchers found that pursuing sex with an ex did not seem to stand in the way of people's subsequent recovery from a breakup on a daily basis or over the course of two months.

Most participants who pursued sex did end up in bed with their ex, but this did not influence how someone managed to get over the end of their relationship.