People who plan their death end up living longer, research suggests.

The study of terminally ill patients found that those who discussed their preferences for end-of-life care with doctors actually lived for longer than other patients.

The research, published in BMJ Supportive and Palliative Care, compared two groups of patients, all of whom were terminally ill.

It found that those involved in “advance care planning” - setting out whether they would want treatment to prolongue life, or where to spend their last days - had significantly longer survival.

The Danish study of 202 terminally ill patients found that 73 per cent of those with advance care plans were alive a year later. This compared with 57 per cent of those who had not taken such steps.

The differences were particularly marked among patients with diseases other than cancer.

Researchers said patients who had conversations with their doctors about the fact they were dying might be more likely to reject high-risk treatments.

They said that treatments such as steroids, taken in the hope they would extend life, could actually reduce survival, particularly in those suffering serious lung diseases.

Among the patients without cancer, nine in ten of those involved in advanced care planning were alive a year later, compared with two thirds of those who had not.