The latest version of macOS, macOS Catalina, is supported on any Mac introduced in 2012 or newer. You'll need at least 8 to 22 GB of free storage space to upgrade to a newer version of OS X or macOS.
Make sure that you have enough storage available for a software update.