EC2 instances are billed by the hour or second, depending on the instance type you choose. There are different pricing options, including on-demand, reserved, and spot instances.