A lot of things are patentable. Under 35 U.S.C. §101, machines, articles of manufacture, processes, and compositions of matter (including new chemical compounds) are patentable. But some things are not: the exceptions are laws of nature, natural phenomena, and abstract ideas.
The Federal Circuit Court of Appeals has many times had to decide what these