The aim of the present study was to investigate the racial disparities in the presentation, treatment and survival time of patients with hepatocellular carcinoma (HCC) or intrahepatic cholangiocarcinoma (ICC) between Chinese and other racial groups from the Surveillance, Epidemiology, and End Results (SEER) database between January 1st 2004, and December 31st 2013. Key covariates, including clinical presentation, treatment and survival time, were recorded and compared, demonstrating the racial differences. Kaplan-Meier analysis and Cox regression models were performed to identify these disparities in survival time. A total of 30,954 patients were identified in the SEER database. Among these, 27,767 (89.7%) had HCC and 3,187 (10.3%) had ICC. In the HCC cohort, Chinese patients had the highest survival time. Compared with the mortality risk of Chinese patients, the mortality risk of Other Asian, non-Hispanic white, Hispanic and African-American patients increased by 16.8, 35.1, 28.3 and 33.3%, respectively. Compared with other groups, Chinese patients were more likely to present with localized stage, and without vascular invasion, adjacent invasion and metastasis. In the ICC cohort, the Chinese group had improved survival time, compared with the other groups following univariate analysis, although no significant differences were observed between Chinese and Other Asian and Hispanic patients following adjusting for contributing factors. Furthermore, there was no significant differences in the presentation between the groups, which differed from the HCC analysis. In conclusion, race/ethnicity was a significant independent prognostic factor in the HCC cohort, whereas it was not significant in the ICC cohort. The synergistic effect of contributing factors, including demographic, socioeconomic, biological and treatment differences, caused the racial disparity observed in primary liver cancer survival time.