CoinGecko calculates crypto prices based on pairings collected from various cryptocurrency exchanges. It then determines the final value using a global volume-weighted average price formula. You can check the CoinGecko methodology for calculating various cryptocurrency metrics for more information.