Note: Enter resistance values in Ohm. Do not use kilo ohm. convert to ohm and then use. Enter voltage values in fraction or in decimal. Do not use something like 3v3 or 5v5. Convert it to fraction and then use Example 1: 10k ohm = 10000 ohm Example 2: 3v3 = 3.3
How to use this calculator
Enter any three values. Press the button “Calculate Missing Value”
Explanation of voltage divider
A voltage divider consists of two resistors connected in series across a voltage source. It divides the input voltage into two parts based on the ratio of the resistor values. The output voltage is obtained across one of the resistors.
The voltage divider formula provides a simple way to calculate the output voltage:
Vout = Vin * (R2 / (R1 + R2))
where:
Vin is the input voltage applied across the series resistors.
R1 is the resistance value of the first resistor.
R2 is the resistance value of the second resistor.
Vout is the output voltage obtained across the second resistor.
Exploring Different Resistor Combinations
Voltage dividers offer flexibility in selecting resistor values to achieve specific output voltage ratios. By varying the resistor values while maintaining the same ratio, we can obtain different output voltages. Let’s explore some examples using different resistor combinations, assuming an input voltage of 5 V.
R1 (Ω)
R2 (Ω)
Vout (V)
1000
10000
0.4545
2000
20000
0.4545
5000
50000
0.4545
10000
100000
0.4545
As you can see, regardless of the specific resistor values, as long as the ratio R2 / (R1 + R2) remains constant, the output voltage remains the same. This property allows designers to choose different resistor combinations while maintaining the desired output voltage proportion.
Enter the known values for any two of the three variables (voltage, current, or resistance) in the input fields.
Leave the input field for the unknown variable empty.
Click the “Calculate” button.
The calculator will calculate the value of the unknown variable and fill it into the appropriate input field.
For example, let’s say we want to calculate the current flowing through a resistor that has a resistance of 100 ohms and a voltage of 12 volts. We would do the following:
Enter 12 in the input field for voltage.
Enter 100 in the input field for resistance.
Leave the input field for current empty.
Click the “Calculate” button.
The calculator will calculate the value of the current to be 0.12 amps and fill it into the input field for current.
Explanation of Ohm’s law
Ohm’s Law states that the current flowing through a conductor between two points is directly proportional to the voltage across the two points, provided that the temperature and other physical conditions remain constant. This relationship is expressed mathematically as:
V = IR
Where:
V is the voltage across the conductor, I is the current flowing through the conductor, and R is the resistance of the conductor.
Code
<script type="text/javascript">
function calculate() {
var v = document.getElementById("voltage").value;
var i = document.getElementById("current").value;
var r = document.getElementById("resistance").value;
if (v == "") {
document.getElementById("voltage").value = i * r;
} else if (i == "") {
document.getElementById("current").value = v / r;
} else if (r == "") {
document.getElementById("resistance").value = v / i;
}
}
function clearFields() {
document.getElementById("voltage").value = "";
document.getElementById("current").value = "";
document.getElementById("resistance").value = "";
}
</script>
<style>
.ohm_container {
margin: auto;
width: 50%;
padding: 10px;
border: 2px solid #ccc;
text-align: center;
}
</style>
<div class="ohm_container">
<form>
<label for="voltage">Voltage (V):</label>
<input type="number" id="voltage"><br><br>
<label for="current">Current (A):</label>
<input type="number" id="current"><br><br>
<label for="resistance">Resistance (Ω):</label>
<input type="number" id="resistance"><br><br>
<input type="button" value="Calculate" onclick="calculate()">
<input type="button" value="Clear" onclick="clearFields()">
</form>
</div>