Medicare Part B covers much of the cost of medically necessary mattresses and beds. If a doctor and Medicare decide that it is medically necessary for you to have a specific mattress or bed, they will consider it durable medical equipment (DME).