power law calculator

Interactive Power Law Calculator

Use the formula y = a · xb. Enter known values, then choose what you want to solve for.

Tip: For real-number results, solving for b requires x > 0 and x ≠ 1. Solving for x requires a ≠ 0 and b ≠ 0.

Enter your values, then click a button to calculate.

What is a power law?

A power law describes relationships where one quantity changes as a power of another. Instead of changing by fixed amounts, the output scales according to an exponent. This is common in real-world systems: city sizes, earthquake energy, network connections, word frequencies, and even many financial and biological patterns.

The general form is:

y = a · xb

  • a is the coefficient (or scale factor).
  • x is the input variable.
  • b is the exponent that controls the growth/decay behavior.
  • y is the resulting output.

How to use this power law calculator

1) Solve for y

Enter a, b, and x, then click Solve y. This gives the direct power law output.

2) Solve for x

Enter a, b, and target y, then click Solve x. The calculator uses:

x = (y / a)1/b

3) Solve for b

Enter a, x, and y, then click Solve b. The calculator uses logarithms:

b = ln(y / a) / ln(x)

4) Solve for a

Enter b, x, and y, then click Solve a:

a = y / xb

How to interpret the exponent b

  • b > 1: superlinear growth (output accelerates as x increases).
  • b = 1: linear relationship (simple proportional scaling).
  • 0 < b < 1: sublinear growth (output still grows, but slower).
  • b = 0: output is constant (y = a).
  • b < 0: inverse power behavior (output decreases as x increases).

Practical examples

Example: scaling cost with size

Suppose system cost follows y = 50 · x1.3. If x doubles, cost increases by 21.3 ≈ 2.46 times, not merely 2 times.

Example: inverse relationship

If response time follows y = 100 · x-0.5, then increasing x by 4x decreases y by 2x (because 4-0.5 = 1/2).

Example: empirical model fitting

After fitting experimental data, you might estimate a and b from regression on log-transformed variables. This calculator is useful for quick checks and scenario analysis once your coefficients are known.

Power law vs exponential growth

Power laws and exponentials are often confused. In a power law, x is raised to a constant power: xb. In exponential growth, a constant base is raised to x: cx. Exponential models usually grow much faster for large x, while power laws often show heavy tails and scale invariance in complex systems.

Common mistakes to avoid

  • Using x = 1 when solving for b (log denominator becomes zero).
  • Using non-positive x in log-based transformations for b.
  • Forgetting that units matter: coefficient a often changes if units change.
  • Treating all curved data as power law without proper statistical fit checks.

Quick FAQ

Can b be negative?

Yes. Negative exponents produce inverse relationships and are common in physics, queuing behavior, and decay-type models.

Can I use decimals for all inputs?

Absolutely. This calculator supports integer and decimal values for all fields.

Why do I get an error for some inputs?

Certain inverse operations (especially solving for b or x) require valid real-number domains. The calculator flags combinations that produce undefined or non-real results.

🔗 Related Calculators