Cotati is an incorporated city in Sonoma County, California, United States, located approximately 45 mi north of San Francisco in the 101 corridor between Rohnert Park and Petaluma.