A singular elliptic estimate and applications