Age, ALT, PF ratio, pneumonia, and platelet count were independently associated with LOS in patients with COVID-19, and they were included in the final nomogram. This evidence concerns the gene GPT and COVID-19.