If a will exists, the executor is responsible for the cost of the funeral. If no one is named, the closest relative to the deceased person is typically held responsible.