JavaScript Math.LOG10E Constant

Beginner
5 min read
Updated: Nov 2026
3 examples
Constant

Definition

Math.LOG10E is a built-in constant that holds the base-10 logarithm of e, about 0.4342944819032518. You read it as a property. You do not call it.

Read the value, use it in your math, and check the examples below for common patterns.

Syntax

Read the constant. Start with this line.

JavaScript
Math.LOG10E
UsageWhat it does
Math.LOG10ERead the base-10 logarithm of e.

Built into JavaScript. Read Math.LOG10E directly from the Math object — no parentheses and no import required.

Library declarations
JavaScript
Math.LOG10E

Parameters

None. Math.LOG10E is a constant (a fixed value), not a function. Do not add parentheses.

Return Value

Return ValueDescription
NumberAbout 0.4342944819032518.

JavaScript Examples

Example 1 — Read the Value of Math.LOG10E

No parentheses are needed.

JavaScript
console.log(Math.LOG10E); // 0.4342944819032518
console.log(Math.LOG10E.toFixed(4)); // 0.4343
console.log(typeof Math.LOG10E); // number
Try It Yourself

How It Works

  1. Plain property. Math.LOG10E is a value, not a function.
  2. Short form. toFixed(4) keeps 4 decimals.
  3. Type. typeof says it is a number.
  4. What it means. It answers: what power of 10 gives e?

Example 2 — Convert a Natural Log to Base 10

Multiply a natural log by Math.LOG10E to get a base-10 log.

JavaScript
console.log((Math.log(100) * Math.LOG10E).toFixed(4)); // 2.0000
console.log((Math.log(1000) * Math.LOG10E).toFixed(4)); // 3.0000
console.log(Math.log10(100)); // 2
Try It Yourself

How It Works

  1. Change of base. Math.log(x) * Math.LOG10E is the base-10 log of x.
  2. 100. 10 to the power of 2 is 100, so the answer is 2.
  3. 1000. 10 to the power of 3 is 1000, so the answer is 3.
  4. Shortcut. Math.log10(100) does it in one step.

Example 3 — It Is the Reverse of Math.LN10

The two constants undo each other.

JavaScript
console.log((Math.LOG10E * Math.LN10).toFixed(10)); // 1.0000000000
console.log((1 / Math.LN10).toFixed(10)); // 0.4342944819
console.log(Math.LOG10E.toFixed(10)); // 0.4342944819
Try It Yourself

How It Works

  1. Multiply. LOG10E × LN10 is about 1.
  2. Reciprocal. 1 / Math.LN10 is the same as Math.LOG10E.
  3. Compare. Both print 0.4342944819 to 10 decimals.
  4. Use toFixed. Rounding hides the last tiny digits.

Browser & Runtime Support

Math.LOG10E is part of the first JavaScript standard (ES1) and is Baseline Widely available in every browser and in Node.js.

✓ Baseline · ES1

Math.LOG10E

A long-standing constant. It works in Chrome, Firefox, Safari, Edge, Internet Explorer and Node.js.

99% Modern browser support
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
Math.LOG10E Excellent

Bottom line: Use Math.LOG10E anywhere. It works in all browsers.

Frequently Asked Questions

It is the base-10 logarithm of e, about 0.4342944819032518.
No. It is a number. Write Math.LOG10E without parentheses.
Multiply a natural log by it: Math.log(x) * Math.LOG10E gives the base-10 log of x.
They are reciprocals. Math.LOG10E is about 1 / Math.LN10.
Usually yes. Math.log10(x) is easier to read. Math.LOG10E is handy in formulas.
All of them. It is part of the first JavaScript standard and works in every browser and in Node.js.

Next: LOG2E

Learn about base-2 log of e.

LOG2E tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

9 people found this page helpful