Montana is a state in the Northwestern United States. It is bordered by the Canadian provinces of Alberta, British Columbia, and Saskatchewan to the north; Idaho to the west; North Dakota and South Dakota to the east; and Wyoming to the south. It is the fourth-largest state by area, the eighth-least populous state, and the third-least densely populated state. The western half of Montana contains numerous mountain ranges, while the eastern half is characterized by western prairie terrain and badlands, with more mountain ranges found throughout the state. In all, 77 named ranges are part of the Rocky Mountains.