THE day after Mandy Peck tried to electrocute herself in the bath her family took her to a mental-health centre in Chelmsford and asked for help. They were told that there were no beds available and sent home. Two days later Ms Peck jumped to her death from a multi-storey car park. She left a daughter behind.

Ms Peck would not have been turned away had she arrived at hospital with a broken leg. Yet the National Health Service (NHS) often fails those suffering from a broken spirit. The numbers are fuzzy, but about one Briton in four suffers a mental-health problem at some time in their life, ranging from mild anxiety to severe schizophrenia. Less than a third of those receive treatment. That is in part because many sufferers are ashamed to seek help, but it is also due to funding gaps and disorganisation within the NHS. The result is a system in crisis, says Sue Bailey, a former president of the Royal College of Psychiatrists.

This failure is costly. Mental-health problems cause more suffering in Britain than physical illness, poverty or unemployment, according to Richard Layard, an economist and author of a book on happiness. People with severe mental illnesses have higher rates of physical illness than the general public. According to the King’s Fund, a think-tank, this costs the NHS between £8 billion ($13 billion) and £13 billion each year. Sufferers are also more likely to commit crime; mental illness has become the most common reason to claim disability benefits. Researchers at the OECD, a club of rich countries, reckon getting mentally-ill people back to work could increase employment in Britain by nearly 5%.

Part of the problem is money. The consequences of mental illness cost the British economy over £100 billion a year, according to the Centre for Mental Health, a think-tank, yet the NHS spends just £11.3 billion on the problem. Some, like Mr Layard, see misplaced priorities. Doctors spend about £3.5 billion a year treating the depression and anxiety disorders suffered by some 6m British adults—a vast amount less than is spent treating the physical ailments of roughly 500,000 patients in the last year of their lives.

Recent cuts to health spending have fallen hardest on mental-health care, just as doctors say demand is rising. The number of NHS beds for patients with mental illness has declined by over 30% since 2003. Many facilities are now full. As a result patients are having to travel long distances or wait months for care. To free up room, a mental-health centre in London has discharged patients to bed-and-breakfasts. Others are not so lucky: sufferers picked up by police are often diagnosed in jail cells. This week Norman Lamb, the minister for care, said that services for young people are “stuck in the dark ages”.

A second challenge arises from the way the NHS is structured. Mental-health care is staffed and funded separately from physical care—treatment is focused on the mind or body, but rarely on both at once. Yet research shows depressed people are more likely than others to develop heart and lung disease, and to suffer from strokes. Mental illness also appears to make diseases more lethal. On average men with mental-health problems die 20 years earlier than those without them (most from causes other than suicide), says the British Medical Association.