When you need support for your Mac - or want to install some kind of upgrade - you usually need to know the exact model and year of the Mac you are using. See how you can find out the information you want.
First, click the "Apple" menu in the corner of the screen and select "About This Mac".
A window will appear showing a summary of specifications of your Mac. Look up the first line under the name and the macOS version number. It will display the model name and release year of your Mac. In this example, the model name is "MacBook Pro (13-inch, M1, 2020)."
The names of modern Mac models usually consist of other information such as the time was released. So you can see something like "iMac (Retina 5K, 27-inch, Late 2015)" or "MacBook Air (13-inch, 2017)".
If you want a more detailed view, click the "System Information" button just below the list specifications.
In the "Hardware" section of the system information, you will see the model name, its ID number model and the Mac serial number. The "model ID" mentioned here is more of a family name for a group of similar Mac models that they are used for software purposes and is less specific than the "model name".
Source of information: howtogeek.com