As per recent data, the cost to mine Bitcoin was nearly $24,000. But BTC’s price must rise above $40,000 after 2024's halving for miners to earn profits.