The calculated distance (air line) between Kuldīga and Riga is approximately 81 miles respectively 130 kilometers.
By car or train, the actual journey to Riga is certainly longer, as only the direct route (as the crow flies) between Kuldīga and Riga has been calculated here.