The war ended with the Treaty of Guadalupe Hidalgo, signed on February 2, 1848. The treaty gave the U.S. undisputed control of Texas, established the U.S.–Mexican border of the Rio Grande, and ceded to the United States the present-day states of California, Nevada, Utah, Arizona, New Mexico, Wyoming, and parts of Colorado. In return, Mexico received US$18,250,000 (equivalent to about $546,000,000 in 2020)[2] — less than half the amount the U.S. had attempted to offer Mexico for the land before the opening of hostilities.[RL30172]