Gene delivery to primary hepatocytes is an important tool for a number of applications including the study of liver cell biology and pathology, drug screening, and gene therapy. Robust transfection of primary hepatocytes, however, is significantly more difficult to achieve than in cell lines or readily dividing primary cells. In this report, we investigated in vitro gene delivery to both primary rat hepatocytes and Huh7.5.1 cells (a hepatoma cell line) using a number of viral and non-viral methods, including Lipofectamine 2000, FuGene HD, Nucleofection, Magnetofection, and lentiviruses. Our results showed that Lipofectamine 2000 is the most efficient reagent for green fluorescent protein (GFP) gene delivery to primary rat hepatocytes (33.3 ± 1.8% transfection efficiency) with minimal adverse effect on several hepatic functions, such as urea and albumin secretion. The lentiviral vectors used in this study exhibited undetectable gene delivery to primary rat hepatocytes but significant delivery to Huh7.5.1 cells (>80% transfection efficiency). In addition, we demonstrated lentiviral-based and spatially defined delivery of the GFP gene to Huh7.5.1 cells for use in biological microelectromechanical systems.