Costs for Medicare Part A are determined based on several factors including work history, income, and the type of care received. These factors include how long you or your spouse paid Medicare taxes, and specific costs associated with inpatient hospital stay, skilled nursing facility care, or hospice care.