# Transformer Ratio Calculator

**Introduction**

Calculating transformer ratios is essential in electrical engineering, and a Transformer Ratio Calculator simplifies this process. In this article, we’ll provide a simple yet powerful HTML and JS code for a Transformer Ratio Calculator.

**How to Use**

To use the Transformer Ratio Calculator, follow these steps:

- Enter the primary voltage (Vp) in the input field labeled “Primary Voltage.”
- Input the secondary voltage (Vs) in the corresponding field.
- Click the “Calculate” button to obtain the transformer ratio.

**Formula**

The formula for calculating the transformer ratio (TR) is:

$TR=VV $

Where:

- $TR$ is the transformer ratio.
- $V_{p}$ is the primary voltage.
- $V_{s}$ is the secondary voltage.

**Example**

Let’s consider an example:

- Primary Voltage ($V_{p}$): 240V
- Secondary Voltage ($V_{s}$): 120V

Using the formula:

$TR=120240 =2$

Therefore, the transformer ratio is 2.

**FAQs**

**Q1: Can I use decimal values for voltages? **

A1: Yes, the calculator accommodates decimal values for both primary and secondary voltages.

**Q2: What if I input non-numeric values? **

A2: The calculator will prompt you to enter valid numeric values.

**Q3: Can I use this calculator for three-phase transformers?**

A3: No, this calculator is designed for single-phase transformers only.

**Conclusion**

The Transformer Ratio Calculator provides a quick and accurate way to determine the transformer ratio based on the input voltages. Whether you’re a student or a professional in the field of electrical engineering, this tool can save time and ensure precise calculations.