Canada has a vast geography that occupies much of the continent of North America, sharing a land border with the contiguous United States to the south and the US state of Alaska to the northwest. Canada stretches from the Atlantic Ocean in the east to the Pacific Ocean in the west; to the north lies the Arctic Ocean. Greenland is to the northeast with a shared border on Hans Island. To the southeast Canada shares a maritime boundary with France's overseas collectivity of Saint Pierre and Miquelon, the last vestige of New France. By total area (including its waters), Canada is the second-largest country in the world, after Russia. By land area alone, however, Canada ranks fourth, the difference being due to it having the world's largest proportion of fresh water lakes. Of Canada's thirteen provinces and territories, only two are landlocked (Alberta and Saskatchewan) while the other eleven all directly border one of three oceans.
Canada is home to the world's northernmost settlement, Canadian Forces Station Alert, on the northern tip of Ellesmere Island—latitude 82.5°N—which lies 817 kilometres (508 mi) from the North Pole. Much of the Canadian Arctic is covered by ice and permafrost. Canada has the longest coastline in the world, with a total length of 243,042 kilometres (151,019 mi); additionally, its border with the United States is the world's longest land border, stretching 8,891 kilometres (5,525 mi). Three of Canada's Arctic islands, Baffin Island, Victoria Island and Ellesmere Island, are among the ten largest in the world.