The simplest way to install macOS or OS X on a new hard drive is by using Internet Recovery Mode. Install macOS using Internet Recovery Mode Internet Recovery mode can take a long time to start, depending on your connection. Make sure to select the parent hard disk in the sidebar. When the process is complete, press command+Q to close Disk Utility.
How do I create a bootable USB Installer?.Which version of macOS or OS X should I create an installer for?.Create a bootable USB installer for macOS or OS X.How do I use Internet Recovery Mode to install macOS or OS X on my hard drive?.Install macOS using Internet Recovery Mode.How do I use Disk Utility to reformat my hard drive?.
Format your new hard drive for macOS or OS X.