Chat-Calculator
Chat-Calculator is a client-side calculator mod for Minecraft Fabric 26.2 & 26.3.
Type any math expression in chat starting with = to evaluate it instantly. It runs entirely on the client, meaning calculations are never sent across the server network, causing zero chat spam and zero server lag.
Features
- Client-side only: safe on vanilla and modded multiplayer servers.
- History recall: press Up-Arrow in chat to recall your previous expressions.
- Clickable chat actions: click the copy button to copy the result to your clipboard, or the insert button to place it back into your chat input.
- Hover details: hovering over results displays exact fractions, hex, binary, and Minecraft stack breakdowns.
Operations & Syntax Reference
1. Basic Arithmetic & Operators
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Addition | = a + b |
= 15 + 27 -> 42 |
| Subtraction | = a - b |
= 50 - 18 -> 32 |
| Multiplication | = a * b |
= 64 * 3 -> 192 |
| Division | = a / b |
= 100 / 4 -> 25 |
| Modulo | = a % b |
= 125 % 64 -> 61 |
| Exponentiation | = a^b or = a**b |
= 2^10 -> 1024 |
| Factorial | = n! |
= 5! -> 120 |
| Double negation | = a - -b |
= 5 - -3 -> 8 |
| Parentheses | = (a + b) * c |
= (2 + 3) * 4 -> 20 |
2. Implicit Multiplication
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Number and variable | = 2x or = 2pi |
= 2pi -> 6.283185... |
| Number and parentheses | = n(...) |
= 3(4 + 5) -> 27 |
| Adjacent parentheses | = (...)(...) |
= (2 + 3)(4 + 1) -> 25 |
| Number and function | = n<func>(...) |
= 2sin(pi / 2) -> 2 |
| Constant multiplier | = n<constant> |
= 3stk -> 192 |
3. Exact Fractions & Rational Numbers
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Fraction addition | = a/b + c/d |
= 1/3 + 1/6 -> 0.5 (Hover: 1/2) |
| Fraction subtraction | = a/b - c/d |
= 7/4 - 1/8 -> 1.625 (Hover: 13/8) |
| Fraction multiplication | = (a/b) * (c/d) |
= (2/3) * (3/4) -> 0.5 (Hover: 1/2) |
4. Complex Numbers
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Square root of negative | = sqrt(-n) |
= sqrt(-16) -> 4i |
| Complex addition | = (a + bi) + (c + di) |
= (2 + 3i) + (4 - i) -> 6 + 2i |
| Complex multiplication | = (a + bi) * (c + di) |
= (2 + 3i) * (1 - i) -> 5 + i |
| Imaginary power | = i^2 |
= i^2 -> -1 |
| Euler's formula | = e^(i * pi) + 1 |
= e^(i * pi) + 1 -> 0 |
5. Equation Solvers
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Linear equation | = ax + b = c |
= 2x + 6 = 12 -> x = 3 |
| Variables on both sides | = ax + b = cx + d |
= 5x - 15 = 2x + 9 -> x = 8 |
| Quadratic equation | = ax^2 + bx + c = 0 |
= x^2 - 5x + 6 = 0 -> x1 = 3, x2 = 2 |
| Repeated quadratic root | = ax^2 + bx + c = 0 |
= x^2 + 4x + 4 = 0 -> x = -2 |
| Complex quadratic roots | = ax^2 + c = 0 |
= x^2 + 1 = 0 -> x1 = i, x2 = -i |
| 2-variable linear system | = solve(eq1, eq2) |
= solve(2x + y = 7, x - y = -1) -> x = 2, y = 3 |
6. Symbolic Calculus & Polynomials
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Polynomial derivative | = diff(expr, var) |
= diff(x^3 + 4x^2 - 5x + 7, x) -> 3 * x^2 + 8x - 5 |
| Trig and exp derivative | = diff(expr, var) |
= diff(sin(x) + exp(x), x) -> cos(x) + exp(x) |
| Polynomial expansion | = expand(expr) |
= expand((x + 1)^3) -> x^3 + 3x^2 + 3x + 1 |
| Term simplification | = simplify(expr) |
= simplify(3x + 5y - x + 2y + 4 - 1) -> 2x + 7y + 3 |
| Indefinite integral | = integrate(expr, var) |
= integrate(3x^2 + 4x, x) -> x^3 + 2x^2 + C |
| Definite integral | = integrate(expr, var, a, b) |
= integrate(x^2, x, 0, 3) -> 9 |
7. Variables & Session Memory
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Save variable | = <name> = <val> |
= radius = 16 -> radius = 16 |
| Use variable | = expr_with_var |
= 2 * pi * radius -> 100.53 |
| Recall last result | = ans + n |
= ans + 10 -> 110.53 |
| List variables | = vars |
= vars -> lists active variables |
| Reset variables | = reset or = clear |
= reset -> resets variables to defaults |
| Built-in constants | pi, e, phi, tau, i, stk (64), shulker (1728) |
= 2stk + 16 -> 144 |
8. Minecraft Helpers
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Item stack breakdown | = stacks(n) |
= stacks(250) -> 3 stacks + 58 items |
| Bulk shulker breakdown | = stacks(n) |
= stacks(5000) -> 2 shulkers + 24 stacks + 8 items |
| Exact stack breakdown | = stacks(n) |
= stacks(64) -> 1 stack |
| Overworld to Nether coords | = nether(x, z) |
= nether(1600, -800) -> Nether: (200, -100) |
| Nether to Overworld coords | = overworld(x, z) |
= overworld(200, -100) -> Overworld: (1600, -800) |
| 2D distance | = dist(x1, z1, x2, z2) |
= dist(0, 0, 300, 400) -> 500.0 |
| 3D distance | = dist(x1, y1, z1, x2, y2, z2) |
= dist(0, 64, 0, 100, 70, 200) -> 223.687... |
9. Trigonometry & Math Functions
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Trigonometry | = sin(x), = cos(x), = tan(x) |
= sin(pi / 2) -> 1 |
| Inverse trigonometry | = asin(x), = acos(x), = atan(x) |
= atan(1) -> 0.785398 |
| 2-argument arctangent | = atan2(y, x) |
= atan2(1, 1) -> 0.785398 |
| Degrees and radians | = deg(rad), = rad(deg) |
= deg(pi) -> 180 |
| Hyperbolic functions | = sinh(x), = cosh(x), = tanh(x) |
= sinh(0) -> 0 |
| Square root | = sqrt(x) |
= sqrt(144) -> 12 |
| Cube root | = cbrt(x) |
= cbrt(27) -> 3 |
| N-th root | = root(x, n) |
= root(32, 5) -> 2 |
| Natural log & exponential | = ln(x), = exp(x) |
= ln(e) -> 1 |
| Log base 10 & base 2 | = log10(x), = log2(x) |
= log10(1000) -> 3 |
10. Number Theory & Combinatorics
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Greatest common divisor | = gcd(a, b) |
= gcd(48, 18) -> 6 |
| Least common multiple | = lcm(a, b) |
= lcm(12, 18) -> 36 |
| Combinations | = nCr(n, r) or = comb(n, r) |
= nCr(10, 3) -> 120 |
| Permutations | = nPr(n, r) or = perm(n, r) |
= nPr(10, 3) -> 720 |
11. Statistics & Rounding
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Absolute value | = abs(x) |
= abs(-42) -> 42 |
| Floor and ceiling | = floor(x), = ceil(x) |
= floor(3.8) -> 3 |
| Round to decimals | = round(x, decimals) |
= round(3.5678, 2) -> 3.57 |
| Sign function | = sgn(x) |
= sgn(-55) -> -1 |
| Min and max | = min(...), = max(...) |
= min(15, 4, 88, 2) -> 2 |
| Average and sum | = avg(...), = sum(...) |
= avg(10, 20, 30, 40) -> 25 |
| Euclidean hypotenuse | = hypot(x, y) or = hypot(x, y, z) |
= hypot(3, 4) -> 5 |
12. Bitwise Operators & Number Bases
| Operation | How to type in chat | Example & Result |
|---|---|---|
| Hexadecimal literal | = 0x<hex> |
= 0xFF + 1 -> 256 |
| Binary literal | = 0b<bin> |
= 0b1010 + 0b0101 -> 15 |
| Octal literal | = 0o<oct> |
= 0o77 -> 63 |
| Bitwise AND | = a & b |
= 5 & 3 -> 1 |
| Bitwise OR | = a | b |
= 5 | 2 -> 7 |
| Bitwise left shift | = a << b |
= 1 << 4 -> 16 |
| Bitwise right shift | = a >> b |
= 32 >> 2 -> 8 |
| Bitwise NOT | = ~a |
= ~0 -> -1 |
Installation & Compatibility
- Minecraft Version: 26.2, 26.3
- Mod Loader: Fabric (Fabric Loader >= 0.16.0)
- Environment: Client-side only (optional server companion)
- Dependencies: Fabric API

