Check the system requirements for the version of macOS you want to install on Apple's website. Generally, newer versions of macOS require more powerful hardware.