Dunedin is a city in Pinellas County, Florida, United States. The name comes from Dùn Èideann, the Scottish Gaelic name for Edinburgh, the capital of Scotland. Dunedin is part of the Tampa–St. Petersburg–Clearwater metropolitan area and is the fifth largest city in Pinellas County. The population was 36,068 as of the 2020 census.