In most cases, lithium ion batteries are the best option for a solar panel system, though other battery types can be more affordable.