The exact requirements vary depending on which version of macOS you wish to install.
So its wise to verify the requirements and compare them with your PC system specifications.
Step 3.Insert your flash drive into the Mac and use Disk Utility to format it.
Or, put it into your PC and use a tool like Rufus to format it.
Step 5.Transfer the macOS installer to the USB.
Step 6.Turn off your PC.
Then power back up and reach the BIOS menu.
Step 7.In the BIOS menu, turn on UEFI boot and disable Secure Boot and CSM.
Step 8.Put the flash drive in your PC.
Step 9.Select to boot from the flash drive, then open your bootloader and launch the installer.
Apply APFS as the format and GUID Partition Map as the scheme.
Then return to the installer.
Choose the newly-formatted partition to install to, and follow the prompts to proceed with the installation.