The following is how to update your computer from macOS 11 to the latest version of macOS
Click the Apple logo and open System Preferences
In System Preferences, open Software Update
Upgrade Now & Terms of Service
The specific version may differ from the screenshot below. As long as it is macOS 12 or later, select Upgrade Now.
Next, agree to the Terms of Service.
Allow the download to complete.
Install the update.
This can take around 20-30 minutes. Ensure your computer is connected to a charger.