Cartridge or loose
TSA’s entry: “Box cutters, razor blades not in a cartridge are prohibited in carry-on.” Blades inside a cartridge are fine, which is why a disposable razor can go in a carry-on.
In a checked bag
Wrap them, so they can’t cut anyone who handles or inspects the bag.
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.
TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”