T follicular helper (Tfh) cells are known to support effector B cells and enhance autoimmunity; however, the association between the Tfh cells and B cells in ankylosing spondylitis (AS) is unclear. The aim of the present study was to measure the frequency of circulating cluster of differentiation (CD)4 C-X-C chemokine receptor type 5 (CXCR5) Tfh cells and B cell subtypes in peripheral blood from patients with AS, and evaluate the correlation of these factors. Percentages of peripheral blood circulating CD4CXCR5 Tfh cells and B cell subtypes were measured via flow cytometry and the disease activity of individual patients was measured using the Bath AS Disease Activity Index (BASDAI). The potential association among these measures was analyzed via Spearman's or Pearson's correlations. In comparison with those in healthy controls (HC), significantly increased percentages of CD4CXCR5 cTfh, CD4CXCR5 programmed death 1, CD4CXCR5 inducible T cell costimulator (ICOS), CD3CD8CXCR5 interleukin (IL)-21 T cells, CD19CD27 plasmablast and CD19CD38 antibody-secreting B cells were detected in patients with AS, whereas there was no significant difference in CD19CD27 naïve B cells and CD19CD27 memory B cells. When Patients with AS were divided into high and low activity groups, significantly higher percentages of CD4CXCR5, CD3CD8CXCR5IL-21 T cells, CD19CD27 naïve B cells and CD19CD38 antibody-secreting B cells, and lower CD19CD27 memory B cells were detected in high activity AS group compared with the low activity AS group. In addition, percentages of CD4CXCR5 circulating (c)Tfh, CD3CD8CXCR5IL-21 T and CD19CD38 antibody-secreting B cells were positively correlated with BASDAI values. Furthermore, the percentage of CD4CXCR5 cTfh cells was positively correlated with CD19CD38 antibody-secreting B cells and the percentage of CD3CD8CXCR5IL-21 T cells was positively correlated with CD19CD27 naïve B cells in patients with AS. These findings suggest that CD4CXCR5 cTfh, CD3CD8CXCR5IL-21 T and CD19CD38 antibody-secreting B cells may participate in the pathogenesis of AS because of their distinct functions. As such, levels of cTfh and B cell subtypes may be a useful biomarker for the evaluation of disease activity in patients with AS.