 Coghlan studied law and was admitted to the bar and practiced in Suisun City.He was a member of the California State Assembly from 1865 to 1867, representing Napa and Lake counties.He was elected as a Republican to the 42nd Congress (1871–1873), but lost his bid for reelection in 1872 to Democrat John K. Luttrell.