Background: HIV env gene consists of several highly variable regions and is a major determinant of pathogenesis, disease progression, and entry phenotype. However, deep sequencing env gene by next generation sequencing (NGS) is challenging. By using a stretch of randomized bases (Primer ID) at cDNA synthesis step prior to NGS to reduce PCR and sequencing errors and provide accurate frequencies of minority variants in the viral population, we developed an approach to deep sequence the V1-V3 region of the env gene to detect X4 variants and define the genetic structure of the viral population within individual subjects. Methodology: Viral RNA was extracted from plasma samples obtained from 10 late-stage and 6 early-stage HIV-1 infected patients. Primers with Primer ID were used for cDNA synthesis. We used MiSeq 250 bp pair-end sequencing to sequence an amplicon covering most of V1/V2 region, all of the V3 region, and part of C2 region. In-house bioinformatics pipelines were used to create consensus sequences of the same Primer IDs. Entry tropism was predicted by V3 sequences using the Gene2Pheno[coreceptor] (False Positive Rate, FPR) algorithm. A control plasmid was amplified, sequenced, and analyzed along with clinical samples. We also used single genome amplification (SGA) to obtain env sequences from the same samples, and in vitro entryphenotype was examined using cloned env gene. Results: Sequencing data from the control plasmid showed that the residual error rate of this approach was 1 error in 4,000 bases. The number of consensus sequences was linearly correlated with template numbers (R2 = 0.999). We obtained an average of 1,084 and 1,532 consensus sequences for late-stage and early-stage subjects, respectively. X4 viruses were detected in 8 out of 10 late-stage samples. Phylogenetic analysis of C2/V3 sequences revealed that the most stringently called X4 viruses (Geno2Pheno, FPR <= 2%) formed distinct lineages in all the samples containing X4 viruses. Entry phenotype analysis suggested that all lineages gave phenotypic results consistent with FPR <= 2% being true X4 lineages. Analysis of both V1/V2 and C2/V3 regions showed that there was very little recombination between the X4 and R5 lineages, while some of the multiple R5 lineages or X4 lineages themselves had extensive recombination between these regions. Conclusions: Primer ID combined with NGS provides a novel approach to deep sequencing highly variable region of HIV-1 with low error rate and accurate allelic frequency. Clustering of sequences with low FPR of X4 is an additional type of information to predict X4 calls based on sequence analysis. Restricted recombination of X4 and R5 viruses suggest these variants are genetically isolated either producing nonviable recombinants or replicating in distinct cell types.