Pyramid of energy represents the total energy of the organism at each trophic level. Pyramid of energy is always upright i.e., it can never be inverted because energy is transferred from a particular trophic level to the next trophic level, some energy is always lost as heat at each step.
The pyramid of biomass in a sea ecosystem is inverted. Because the sum total of the phytoplanktons is for less than a few fishes feeding at higher trophic levels.

Pyramid of biomass in a forest ecosystem is upright because producers are more in biomass than primary consumers. Primary consumers are more than secondary consumers and secondary consumers are more than tertiary consumers.
