Every Bitcoin miner faces the same fundamental equation: hashrate output divided by power consumption equals profitability. While most miners focus on buying the newest, most efficient hardware, there is a powerful lever available on equipment you already own — firmware optimization and undervolting. Done correctly, these techniques can reduce energy consumption by 10-25% per machine while maintaining the vast majority of your hashrate, dramatically improving your joules-per-terahash efficiency ratio.
This guide covers what custom firmware actually does, how undervolting works at the chip level, the risks involved, and how to implement these optimizations whether you are self-hosting or using a colocation hosting provider.
Understanding Stock vs. Custom ASIC Firmware
What Stock Firmware Does
Every ASIC miner ships with manufacturer firmware — Bitmain’s stock firmware for Antminers, MicroBT’s for Whatsminers, and so on. Stock firmware is designed for reliability and broad compatibility. It runs chips at factory-default voltages and clock speeds that guarantee nameplate hashrate with comfortable thermal margins.
The problem is that stock firmware is conservative by design. Manufacturers set voltages high enough to ensure every chip on every hash board in every unit worldwide runs stably, even in worst-case thermal conditions. For miners operating in well-cooled facilities, this means their chips are running at higher voltages than necessary — wasting electricity as excess heat.
What Custom Firmware Changes
Custom firmware — also called aftermarket or third-party firmware — replaces the stock control software with optimized alternatives that offer granular control over chip voltage, clock frequency, and fan speeds. The most widely used custom firmware options include:
- Braiins OS+ (BOS+) — the most established custom firmware for Antminers. Includes auto-tuning that optimizes each chip individually, fee-based model (dev fee of approximately 2% hashrate directed to Braiins Pool).
- VNish — popular for both Antminer and Whatsminer hardware. Offers manual voltage control and performance profiles with a one-time license fee per machine.
- LuxOS — newer entrant with per-chip optimization and fleet management features. Supports auto-tuning and manual profiles.
- EPICfirmware — focused on per-chip tuning for maximum efficiency. Includes immersion cooling support and detailed diagnostics.
All of these offer a core capability that stock firmware does not: the ability to lower voltage supplied to individual ASIC chips.
How Undervolting Works: The Physics
ASIC miners are arrays of specialized SHA-256 hashing chips. Each chip requires a specific voltage to operate at a given clock frequency. The relationship between power consumption and voltage follows a roughly quadratic curve — meaning a 10% reduction in voltage produces approximately a 19% reduction in power consumption (P = V squared / R).
The catch is that lowering voltage too far causes the chip to produce computational errors — invalid hashes that the mining pool rejects. The art of undervolting is finding the sweet spot: the lowest voltage at which each chip still produces valid hashes reliably.
Per-Chip vs. Per-Board Tuning
The most significant advancement in custom firmware is per-chip tuning. In a typical S21 hash board, there are dozens of individual ASIC chips. Due to manufacturing variation (known as silicon lottery), some chips run efficiently at lower voltages while others need more power to remain stable.
Stock firmware applies a single voltage to all chips on a board. Custom firmware with auto-tuning tests each chip individually, finding its optimal voltage-frequency operating point. This per-chip approach captures efficiency gains that blanket voltage reduction cannot.
Real-World Efficiency Gains
The efficiency improvements from firmware optimization depend on the hardware generation, cooling quality, and how aggressive the tuning is. Based on widely reported results across the mining community:
| Hardware Model | Stock J/TH | Optimized J/TH | Power Savings | Hashrate Impact |
|---|---|---|---|---|
| Antminer S19 Pro | 29.5 J/TH | 24-26 J/TH | 12-18% | -5 to -10% |
| Antminer S19 XP | 21.5 J/TH | 18-20 J/TH | 7-16% | -3 to -8% |
| Antminer S21 | 17.5 J/TH | 15-16.5 J/TH | 6-14% | -2 to -5% |
| Whatsminer M50S | 26.0 J/TH | 22-24 J/TH | 8-15% | -3 to -7% |
The key metric is joules per terahash (J/TH), not raw hashrate. A machine that loses 5% hashrate but consumes 15% less power has improved its efficiency by roughly 10% — meaning each terahash it does produce is more profitable.
When Undervolting Makes Financial Sense
Undervolting is not always the right move. Whether it makes sense depends on your hosting rate, hardware age, and Bitcoin price.
Scenario: $0.075/kWh Hosting (Rax Mining Rate)
At Rax Mining’s competitive $0.055 per kWh rate, an S21 Pro running stock at 3,500W costs approximately $1,687/year in electricity. With firmware optimization reducing power to 3,000W while maintaining 90-95% hashrate:
- Annual power savings: ~$266
- Hashrate reduction cost (5% less Bitcoin earned): varies with BTC price, but at $60,000 BTC and current difficulty, roughly $150-200/year
- Net annual benefit: $66-$116 per machine
Across a 50-machine fleet, this adds up to $3,300-$5,800 per year in improved profitability — pure margin improvement with no capital expenditure beyond the firmware license.
When NOT to Undervolt
- Very cheap power (below $0.03/kWh): Power savings are minimal in dollar terms, and hashrate reduction directly cuts revenue.
- Newest-generation hardware already near efficiency frontier: Chips designed for extreme efficiency have less headroom for optimization.
- During Bitcoin price surges: When BTC price spikes, maximizing hashrate (even at higher power cost) may be more profitable than optimizing efficiency.
- If firmware voids warranty: Some manufacturers void hardware warranty when custom firmware is detected. Weigh the risk on new machines.
Implementation: Step-by-Step
Step 1: Evaluate Your Current Fleet Efficiency
Before changing anything, benchmark your current performance. Record each machine’s actual hashrate, power draw, chip temperatures, and share rejection rate. This baseline lets you measure the real impact of firmware changes.
Step 2: Choose Your Firmware
Select firmware based on your hardware and needs:
- Braiins OS+: Best for miners using Braiins Pool (dev fee offset by pool fee reduction). Excellent auto-tuning.
- VNish: Best for manual control and multi-pool flexibility. One-time license cost.
- LuxOS: Best for newer hardware with auto-tuning needs and fleet management integration.
Step 3: Flash Firmware on a Test Group
Never flash your entire fleet at once. Start with 3-5 machines representing your hardware mix. Monitor them for 48-72 hours before proceeding with the broader fleet.
Step 4: Run Auto-Tuning
If your chosen firmware supports auto-tuning, let it run for 24-48 hours per machine. The algorithm iterates through voltage and frequency combinations per chip, finding the optimal operating point. Do not interrupt this process.
Step 5: Validate Results
After tuning completes, compare to your baseline:
- Is the J/TH ratio lower (better)?
- Is the share rejection rate below 1%?
- Are chip temperatures within safe ranges (below 85 degrees Celsius)?
- Has the hashrate drop stayed within acceptable bounds?
Step 6: Roll Out Fleet-Wide
Once validated on the test group, proceed with the remaining fleet in batches of 10-20 machines. Monitor each batch for 24 hours before proceeding to the next.
Undervolting in a Hosted Environment
If your miners are hosted at a colocation facility, firmware changes require coordination with your provider. Key considerations:
- Network access: You need remote access to each machine’s web interface or API to flash firmware. Ask your provider about VPN or SSH tunnel access.
- Provider policies: Some hosting providers restrict custom firmware to protect facility-wide network stability. Always check before flashing.
- Power metering: Your hosting agreement may bill based on rated power or actual metered power. With actual metered billing, undervolting directly reduces your electricity cost. With flat-rate billing per machine, the savings are less direct (but hardware lifespan extension still provides value).
- Support implications: If a machine running custom firmware develops issues, clarify whether your hosting provider’s technicians will troubleshoot it or if you need to revert to stock firmware first.
At Rax Mining, we work with hosted clients who use custom firmware and can support firmware-level troubleshooting. Our power billing is transparent and metered, so efficiency gains from undervolting directly translate to lower monthly hosting costs.
Risks and Mitigation
Hardware Damage Risk: Low to Moderate
Undervolting (reducing voltage) carries significantly less risk than overclocking (increasing voltage and frequency). Lower voltages mean less heat, less electrical stress, and less thermal cycling — all of which extend component lifespan. The primary risk is instability: chips running below their minimum voltage threshold will produce errors or hang, requiring a reboot.
Warranty Considerations
Most ASIC manufacturers consider custom firmware a warranty violation. For newer machines still under warranty, weigh the efficiency savings against potential warranty claims. For machines past warranty (typically 6-12 months for most manufacturers), this concern is irrelevant.
Firmware Bricking
Poorly executed firmware flashing can render a machine unbootable. Mitigate this by:
- Using only firmware versions explicitly tested for your exact hardware model and revision
- Following the firmware vendor’s installation instructions precisely
- Maintaining a known-good stock firmware image for recovery
- Flashing via SD card recovery when available (most Antminers support this)
Beyond Undervolting: Other Firmware Optimizations
Voltage tuning is the headline feature, but custom firmware offers additional optimizations:
- Fan curve optimization: Stock firmware often runs fans at full speed regardless of temperature. Custom firmware adjusts fan speed dynamically, reducing noise and fan wear while maintaining safe temperatures.
- Temperature-based throttling: Rather than shutting down at a temperature threshold, custom firmware can gradually reduce chip frequency as temperatures rise, maintaining uptime during heat waves.
- Pool failover configuration: More sophisticated pool switching logic with configurable failover priorities and quota-based load balancing across pools.
- Scheduled power profiles: Run at full power during off-peak electricity hours and reduced power during peak rates — particularly valuable for miners with time-of-use power agreements.
The Bigger Picture: Firmware as a Fleet Strategy
Firmware optimization is not a one-time event. As Bitcoin’s network difficulty adjusts every two weeks, the profitability equation shifts. What was an optimal efficiency profile three months ago may need retuning as difficulty rises or Bitcoin price changes.
Leading mining operations treat firmware optimization as an ongoing process:
- Re-tune after major difficulty adjustments
- Re-evaluate when Bitcoin price moves significantly (20%+ in either direction)
- Update firmware versions as vendors release improvements
- Adjust power profiles seasonally (cooler ambient temperatures allow tighter efficiency tuning)
Combined with competitive hosting rates, proper cooling infrastructure, and responsive facility management, firmware optimization is one of the highest-ROI activities available to Bitcoin miners.
Get Expert Guidance
Firmware optimization can be complex, especially across a diverse fleet with multiple hardware generations. Rax Mining offers consulting services at $450/hour to help miners design and implement firmware optimization strategies tailored to their specific hardware, hosting arrangement, and profitability targets.
Whether you are hosting with us at our natural gas-powered MDU facilities or managing hardware elsewhere, our team can help you extract maximum efficiency from every machine in your fleet. Contact us to discuss your optimization needs.
Explore Rax Mining
- Bitcoin Miner Hosting — Competitive rates from $0.075/kWh
- NatGas MDU Units — 1MW modular datacenter containers
- Mining Profitability Calculator — Estimate your mining returns
- Our Facility — Tour our mining infrastructure

