Medicare will not cover the cost of purchasing hearing aids even if they're medically necessary but Medicare will pay for the cost of hearing tests to determine how good your hearing is and whether or not you need hearing aids.
You either have to pay for the hearing aids out of pocket or see if your health insurance will cover the cost of the hearing aids.
Not all health insurance companies will cover the cost of hearing aids but some might and if not your only other option is to pay for the hearing aids out of pocket which can be as high as $2,000.00 for each hearing aid.