An enlarged liver or hepatomegaly occurs when the liver increases in size due to any cause ranging from a simple viral infection or serious medical conditions such as heart failure. Usually, treating the underlying cause helps in resolving hepatomegaly.