The cellular composition of tumors is now recognized as an essential phenotype, with implications to diagnostic, progression and therapy efficacy. A tool for accurate profiling of the tumor microenvironment is lacking, as single-cell methods and computational approaches are not applicable or suffer from low accuracy. Here we present EpiSort, a novel strategy based on targeted bisulfite sequencing, which allows the accurate enumeration of 23 cell types and may be applicable to cancer studies.