MySQL EXP() Function: Raise e to a power

EXP(x) returns Euler’s number e raised to the power x. It is the inverse operation of the natural logarithm LOG().

EXP(): Quick SQL Example

Run this SELECT query directly in MySQL or phpMyAdmin. It uses fixed inputs so you can verify the result without creating a table.

SELECT ROUND(EXP(1), 4) AS exponential_value;
exponential_value
2.7183
On this page — Show page sectionsHide page sections

More SQL Examples and Explanations

SELECT EXP(2);   -- 7.38905609893065
SELECT EXP(-2);  -- 0.135335283236613
SELECT EXP(0);   -- 1

EXP() with ROUND()

SELECT ROUND(EXP(-3), 2);  -- 0.05
Syntax
SELECT EXP(X);
We can get value of e raised to the power of X Example
SELECT EXP(1);  -- 2.71828182845905
The value of e ( the base of natural logarithms ) is almost equal to 2.71828182845905. So any argument passed to EXP() gives the output by raising the power of e to this value.

How to Interpret the Result

Large positive inputs may overflow; negative inputs produce values between zero and one.

Common Question

What is EXP(0)?
EXP(0) returns 1.

Further Reading

All Math Functions POW()

Related: SQRT(), LOG()

More related tutorials: All math functions, ABS(), AVG()

↑ Back to top




Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer