Navigate to Services & Subscriptions. This page has a complete list of available services for your Microsoft Account.
Look for Xbox Game Pass in the list and choose Manage.
Select Cancel to end the subscription. A pop-up window will ask you when you want to end your subscription. After you make a selection, click Next and Confirm Cancellation.