Why this matters.
Under the US Copyright Act, the person who creates a work is its author and first owner (17 U.S.C. §201(a)), unless the work is a “work made for hire”. For a freelancer, a work is only made for hire if it falls into one of nine listed categories (such as a contribution to a collective work, part of an audiovisual work, a translation or a commissioned compilation) and both you and the client sign a written agreement saying it is a work made for hire (17 U.S.C. §101 and §201(b)). A standard contract that simply says “all work is work for hire” does not change this for work outside those categories, and an employer who is not actually your employer cannot claim ownership just because they paid you.
To transfer ownership you usually need a signed written assignment (17 U.S.C. §204(a)); without one, the client typically gets at most an implied non-exclusive licence to use what they paid for. Getting the wording wrong can leave you giving away rights for no extra fee, or leave a client with a work they cannot lawfully reuse. Freelancers who assign copyright may also be able to terminate the grant after 35 years (17 U.S.C. §203), and registration with the Copyright Office is needed before suing for infringement and to claim statutory damages (§411, §412). State laws can also add rules: in California, treating a freelancer as an employer’s “work for hire” author can trigger employee status under Labor Code §3351.5(c) and Unemployment Insurance Code §686.