Both are meant for small business loans, but the 7a loan is geared towards general use while an SBA 504 loan is specific to real estate purchases or other large fixed assets.