You can check the status of your battery by bringing up the system report:
...
Follow these steps to access information about your Mac notebook battery, including its cycle count:
- Hold the Option key and click the Apple menu , then choose System Information.
- Under the Hardware section of the System Information window, select Power. The current cycle count is listed under the Battery Information section.
...
copied from: Determine battery cycle count for Mac notebooks - Apple Support
Or do this:
...
Check battery health
You can check the health of your battery in Battery preferences or the Battery status menu:
- In macOS Big Sur or later, choose Apple menu > System Preferences, click Battery, select Battery in the sidebar, then click Battery Health.
- In macOS Catalina or earlier, hold the Option key and click the battery icon in the menu bar to reveal the battery status menu.
You'll see one of the following status indicators:
- Normal: The battery is functioning normally.
- Service Recommended: The battery's ability to hold charge is less than when it was new or it isn't functioning normally. You can safely continue to use your Mac but you should take it to an Apple Store or Apple-authorized service provider to get your battery evaluated.
To get service on your battery, contact Apple.
...
copied from: Get help with your Mac notebook battery - Apple Support