Sigfig Calculator

.sigfig-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; border: 1px solid #e1e1e1; border-radius: 12px; background-color: #ffffff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .sigfig-header { text-align: center; margin-bottom: 30px; } .sigfig-header h2 { color: #2c3e50; margin-bottom: 10px; } .sigfig-input-group { margin-bottom: 20px; } .sigfig-label { display: block; font-weight: 600; margin-bottom: 8px; color: #34495e; } .sigfig-input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 18px; box-sizing: border-box; transition: border-color 0.3s; } .sigfig-input:focus { border-color: #3498db; outline: none; } .sigfig-btn { width: 100%; background-color: #3498db; color: white; padding: 15px; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; } .sigfig-btn:hover { background-color: #2980b9; } .sigfig-result { margin-top: 25px; padding: 20px; background-color: #f8f9fa; border-radius: 8px; display: none; } .result-item { margin-bottom: 10px; font-size: 16px; color: #2c3e50; } .result-value { font-weight: bold; color: #e67e22; font-size: 1.2em; } .sigfig-article { margin-top: 40px; line-height: 1.6; color: #444; } .sigfig-article h3 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 5px; } .rule-box { background: #f1f8ff; padding: 15px; border-left: 4px solid #3498db; margin: 15px 0; }

Significant Figures Calculator

Identify the precision of your measurements instantly.

Significant Figures:
Scientific Notation:
Decimals:

Understanding Significant Figures

Significant figures (often called "sig figs") are the digits in a number that carry meaning contributing to its measurement resolution. In science and engineering, accurately reporting these digits is critical to communicate the precision of equipment and calculations.

The Golden Rules of Sig Figs:
  • Non-zero digits: Always significant (e.g., 543 has 3).
  • Sandwich zeros: Zeros between non-zero digits are significant (e.g., 503 has 3).
  • Leading zeros: Never significant; they are just placeholders (e.g., 0.005 has 1).
  • Trailing zeros (with decimal): Significant if a decimal point is present (e.g., 5.00 has 3).
  • Trailing zeros (no decimal): Generally not significant (e.g., 500 has 1).

Calculation Examples

1. 0.007020: There are 4 significant figures. The leading zeros are placeholders, but the zero between 7 and 2 and the trailing zero after the 2 are significant because of the decimal.

2. 1,200: There are 2 significant figures. Without a decimal point, the trailing zeros are assumed to be placeholders.

3. 1,200.0: There are 5 significant figures. The presence of the decimal makes the trailing zeros significant.

Why Precision Matters

When performing mathematical operations, your final result cannot be more precise than your least precise measurement. If you measure a block as 10.2 cm (3 sig figs) and multiply it by 5.1123 cm (5 sig figs), your answer must be rounded to 3 significant figures to maintain scientific integrity.

function calculateSigFigs() { var input = document.getElementById('sigNumInput').value.trim(); var resultDiv = document.getElementById('sigfigResult'); var countSpan = document.getElementById('sigCount'); var sciSpan = document.getElementById('sciNote'); var decSpan = document.getElementById('decCount'); if (input === "" || isNaN(parseFloat(input))) { alert("Please enter a valid numerical value."); return; } var sigFigs = 0; var cleanNum = input; // Handle negative signs if (cleanNum.startsWith('-')) { cleanNum = cleanNum.substring(1); } var hasDecimal = cleanNum.indexOf('.') !== -1; var parts = cleanNum.split('.'); var wholePart = parts[0] || ""; var decimalPart = parts[1] || ""; if (hasDecimal) { // Rule: All zeros after the first non-zero digit are significant // Rule: Leading zeros are not significant var combined = wholePart + decimalPart; var firstNonZero = -1; for (var i = 0; i < combined.length; i++) { if (combined[i] !== '0') { firstNonZero = i; break; } } if (firstNonZero === -1) { // Case like 0.000 sigFigs = 0; } else { sigFigs = combined.length – firstNonZero; } decSpan.innerHTML = decimalPart.length; } else { // No decimal // Rule: Trailing zeros are NOT significant // Rule: Leading zeros (if any) are not significant var first = -1; var last = -1; for (var j = 0; j 0) { if (hasDecimal) { // Technically 0.00 has sig figs depending on context, // but standard rule: trailing zeros after decimal are sig if there's a non-zero. // If strictly 0.00, we count zeros after decimal. sigFigs = decimalPart.length; } else { sigFigs = 1; } } // Format Scientific Notation var numValue = parseFloat(input); var scientific = numValue.toExponential(); countSpan.innerHTML = sigFigs; sciSpan.innerHTML = scientific; resultDiv.style.display = 'block'; }

Leave a Comment