Latest
  • Button Pad
  • Your Calcs
  • Help
Save
Add Description
Link Show Embed Code

Need a calc for your site? No problem.

Add this Javascript code or HTML code to your page:

Live Preview

Calc title (optional)

Need a command? Search with ctrl+f (e.g. rounding).
Basic Commands (click section title for examples)
Feature Example Result
Arithmetic
+ - * /
2 + 2 - 3
(3 * 5) / 2
1
7.5
Roots & powers

sqrt(9)
5^2

3
25
Percent

5%
100 * 17%
20 + 50%

0.05
17
30

Number shortcuts
(k, m, b, t)

3.3k
200 million (or 200m)
6.6 billion (or 6.6b)

3,300
200,000,000
6,600,000,000

Exponent notation 1.234e3
1e-3
1,234
0.001
Variables & Rows
Using variables x = 9
y = x + 3
sqrt(x)
x + y
9
12
3
21
Using rows r1
r2
r3
sum(r1:r3)
average(r1:r3)
9
12
3
24
8
Unit Conversions
Convert unit into another (green means success):
15 feet into inches = 180 inches
Can even convert rates:
15 miles/hour into feet/second = 22 feet/second
15 pounds/year in pounds/month = 1.25 pounds/month
/, per, until, every
Weight:
ounce (oz), pound (lb), ton
gram (g), kilogram (kg), milligram (mg), microgram (ug)
150 lbs in kg = 68.038...kg
Length:
mile, yard (yd), foot (ft), inch (in), knot, span, league
kilometer (km), meter (m), cm, mm, nm, pm
15 feet in inches = 180 inches
Area (add "square" or "^2" to any unit)
acre, square mile, yd^2, in^2...
km^2, square meter, cm^2...
2 acres in m^2 = 8093.712... m^2
Volume (add "cubic" or "^3" to any unit)
gallon (gal), quart (qt), pint (pt), cup (cp), fluid ounce (fl oz), tablespoon (tbsp), teaspoon (tsp), cubic inch, ft^3...
Liter (L), milliliter (mL), cm^3 (cc), cubic km...
1500 cc in cubic inches = 91.53... cubic inches
Time
second (sec), minute (min), hour (hr), day, month, year, decade, century
millisecond (ms), microsecond (us), nanosecond (ns), picosecond (ps)
3 days in minutes = 4320 minutes
Currency (3-letter code)
USD (US Dollar), EUR (Euro), JPY (Yen), BRL (Brazilian Real), GBP (British Pound), IRL (Indian Rupee), CNY (Chinese Yuan), MXN (Mexican Peso), HKD (Hong Kong Dollar), AUD (Australian Dollar), CAD (Canadian Dollar)...
15 USD in EUR = 11.59... EUR (weekly updates; general estimates only)
Rounding/Formatting
Rounding round(3.51)
roundup(3.01)
rounddown(3.99)
4
4
3
Absolute value abs(-2) 2
Factorial 3! 6
Formatting Cells
Currency formatting $5
$5 / 3
$5.00
$1.67
Add comment
(text to ignore)
30 + 40 // new total 70 new total
Hide row Click result to hide row
Insert/remove row Click "R1" to display row options
Other Number Commands
Random numbers random
random(10)
0.434... (from 0...1)
7 (from 1...10)
Rounding round(3.51)
roundup(3.01)
rounddown(3.99)
4
4
3
Absolute value abs(-2) 2
Factorial 3! 6
Trig / Logarithms / Scientific
Constants PI
E

3.14159...
2.71828...

Degrees & radians
(degrees by default)
30
30 deg
PI rad
30
30
180
sin, cos, tan
asin, acos, atan
sin(30)
sin(PI/4 rad)
0.5
0.707...

e^x
Natural Log (ln)
Log base 10 (log)

exp(2)
E^2
ln(2)
log(2)
7.389...
7.389...
0.693..
0.301...
Computer Units
File sizes (bytes)
(kb, mb, gb, tb, pb)

1kb
10 gb / 5mb

1024
2048
Bandwidth (bits/sec)
(kbps, mpbs, gbps)
1.5 mbps 196,608 (converted to bytes/sec)
Time
time(90)
time(1gb / 1.5mbps)
1m 30.00s
1h 31m 1.333s
Base Conversion
Into decimal

0b1001 (binary)
0o567 (octal)
0xfeff (hex)

9
375
65,279
From decimal bin(9)
oct(375)
hex(65,279)
0b00001001
0o567
0xfeff
Programming

Binary operators
(and or xor not)

bin(a = 3)
bin(b = 5)
a and b
bin(a and b)
a or b
a xor b
not a

0b00000011
0b00000101
1
0b00000001
7
6
-4 (two's complement)
Logical operators
(> >= == <= <)
2 * 2 > 3
x = 3
2 * 2 > x

true
3
true

Conditional statements if (3 > 2){"bigger"} else {"not bigger"} bigger
Excel IF EIF(3 > 2, "bigger", "not bigger") bigger
Shorthand

x = 3
++x
x += 3

3
4
7
Examples
  • 1.1k = 1,100 (m for million, b for billion)
  • 100 + 15% = 115
  • 4^2 = 16
  • sqrt(9) = 3
  • $3 = 3.00 (rounds to .00)
Demos: BMI, Unit Conversion, Home Loan, Salary, Programming, Website Bandwidth, Website Earnings, Growth Estimation, Currency conversion, Freelance salary rate, Pixels to em
Examples
  • 1e6 = 1,000,000
  • 3! = 6
  • sin(2*pi rad) = 0 [specify "rad" within parens]
  • e^pi = 23.14069...
  • Also: sec(h), cot(h), csc(h)
Also: 5 mod 3, octal (0o777), a & b, a | b...
Examples
  • 0x1234 = 4,660
  • bin(32) = 0b00100000
  • 0b11 + 3 = 6
  • bin(4 xor 1) = 0b00000101 [vars ok, i.e. "a xor b"]
  • if (3 > 2 + 2) {x = 3} else {x = 4}
sum(r1:r3), average(r1:r3), ...

What's Nice About InstaCalc?

  • Get answers as you type numbers using natural language
  • Put a live, interactive calculator on your website
  • Use variables and row references and scientific notation
  • Handle programming, unit conversion, and more (tour)

Links

Blog
Feedback
Also: BetterExplained.com