Context. Elements heavier than Li are produced in the interiors of stars. However, for many elements the exact production sites and the timescales on which they are dispersed into the interstellar medium are unknown. Having a clear picture on the origins of the elements is important for our ability to trace and understand the formation and chemical evolution of the Milky Way and its stellar populations. Aims. The aim of this study is to investigate the origin and evolution of Sc, V, Mn, and Co for a homogeneous and statistically significant sample of stars probing the different populations of the Milky Way, in particular the thin and thick disks. Methods. Using high-resolution spectra obtained with the MIKE, FEROS, SOFIN, FIES, UVES, and HARPS spectrographs, we determine Sc, V, Mn, and Co abundances for a large sample of F and G dwarfs in the solar neighborhood. The method is based on spectral synthesis and using one-dimensional, plane-parallel, local thermodynamic equilibrium (LTE) model stellar atmospheres calculated with the MARCS 2012 code. The non-LTE (NLTE) corrections from the literature were applied to Mn and Co. Results. We find that the abundance trends derived for Sc (594 stars