The premise is incorrect: Mexico did not sell individual states to the U.S. It ceded vast territories through treaties after military defeat—territories that later became multiple U.S. states.
Mexico ceded ~525,000 sq mi (55% of its pre-war territory) for $15M + $3.25M assumed claims. This land became all or parts of:
Additional 29,670 sq mi (southern AZ/NM) for $10M — railroad route. Completed modern AZ/NM borders.
Independent Republic of Texas (1836–45) annexed by joint resolution. Mexico never recognized Texas independence; viewed annexation as casus belli. Texas claimed territory to Rio Grande; Mexico claimed Nueces River. Dispute triggered Mexican–American War.
California and New Mexico are often cited because they were Mexican departments (administrative units) before the war—not sovereign states. The cession was territorial, not a state-by-state sale.