The formalism of Riemannian geometry is applied to study the phase transitions in Nambu -Jona Lasinio (NJL) model. Thermodynamic geometry reliably describes the phase diagram, both in the chiral limit and for finite quark masses. The comparison between the geometrical study of NJL model and of (2+1) Quantum Chromodynamics at high temperature and small baryon density shows a clear connection between chiral symmetry restoration/breaking and deconfinement/confinement regimes.