The mallard is widely distributed across the Northern and Southern Hemispheres; in North America its range extends from southern and central Alaska to Mexico, the Hawaiian Islands, across the Palearctic, from Iceland and southern Greenland and parts of Morocco (North Africa) in the west, Scandinavia and Britain to the north, and to Siberia, Japan, and South Korea. Also in the east, it ranges to south-eastern and south-western Australia and New Zealand in the Southern hemisphere.: 505 It is strongly migratory in the northern parts of its breeding range, and winters farther south. For example, in North America, it winters south to the southern United States and northern Mexico, but also regularly strays into Central America and the Caribbean between September and May. A drake later named "Trevor" attracted media attention in 2018 when it turned up on the island of Niue, an atypical location for mallards.
The mallard inhabits a wide range of habitats and climates, from the Arctic tundra to subtropical regions. It is found in both fresh- and salt-water wetlands, including parks, small ponds, rivers, lakes and estuaries, as well as shallow inlets and open sea within sight of the coastline. Water depths of less than 0.9 metres (3.0 ft) are preferred, with birds avoiding areas more than a few metres deep. They are attracted to bodies of water with aquatic vegetation.