Skip to content
ToolUlkaa Tool
All tools

Machine Learning

TensorFlow PlaygroundConfusion Matrix CalculatorROC Curve and AUC CalculatorK-Means Clustering VisualizerGradient Descent VisualizerDecision Tree BuilderClassifier PlaygroundPCA VisualizerActivation Function Plotter

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Machine Learning

Softmax Calculator

Turn a list of scores into probabilities, with the working shown.

softmax(z)i=ezi∑jezj\mathrm{softmax}(z)_i = \frac{e^{z_i}}{\sum_j e^{z_j}}softmax(z)i​=∑j​ezj​ezi​​∂ softmaxi∂zj=softmaxi (δij−softmaxj)\frac{\partial\, \mathrm{softmax}_i}{\partial z_j} = \mathrm{softmax}_i\,(\delta_{ij} - \mathrm{softmax}_j)∂zj​∂softmaxi​​=softmaxi​(δij​−softmaxj​)
Above 1 flattens the probabilities, below 1 sharpens them.

Probabilities

0.659, 0.2424, 0.0986

The probabilities sum to 1. The largest score gets 65.9%.

Probabilities

  • Class 1 (score 2)65.9%
  • Class 2 (score 1)24.24%
  • Class 3 (score 0.1)9.86%

Working

  1. 1Subtract the maximum
    zi−max⁡jzjz_i - \max_j z_jzi​−jmax​zj​
    ↓
    [0,  −1,  −1.9][0,\; -1,\; -1.9][0,−1,−1.9]

    This does not change the result but stops e to a large power from overflowing.

  2. 2Exponentiate
    ezi−max⁡ze^{z_i - \max z}ezi​−maxz
    ↓
    [1,  0.3679,  0.1496][1,\; 0.3679,\; 0.1496][1,0.3679,0.1496]
  3. 3Sum
    ∑jezj−max⁡z\sum_j e^{z_j - \max z}j∑​ezj​−maxz
    ↓
    1.5174481.5174481.517448
  4. 4Divide each by the sum
    ezi−max⁡z∑jezj−max⁡z\frac{e^{z_i - \max z}}{\sum_j e^{z_j - \max z}}∑j​ezj​−maxzezi​−maxz​
    ↓
    [0.659,  0.24243,  0.09857][0.659,\; 0.24243,\; 0.09857][0.659,0.24243,0.09857]

    The probabilities add up to 1.

About Softmax

Turns a vector of scores into probabilities that add up to 1. It acts on a whole vector, not one number.

  • Strengths: The standard output layer for multi-class classification.
  • Weaknesses: Needs the max subtracted for numerical stability, and very large scores give near-certain probabilities even when the model is unsure.
  1. Tools
  2. Machine Learning
  3. Activation Function Plotter
  4. Softmax Calculator

About Softmax Calculator

This softmax calculator converts a list of scores (logits) into probabilities that add up to 1, and shows each step: subtract the maximum, exponentiate, sum and divide. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Softmax exponentiates every score and divides by the sum of the exponentials. Larger scores get disproportionately larger shares because of the exponential, and the probabilities always sum to 1. The page opens on the scores 2, 1 and 0.1, which give probabilities of about 0.66, 0.24 and 0.10.

The temperature divides the scores before the softmax. A temperature below 1 sharpens the distribution toward the largest score, and one above 1 flattens it toward equal probabilities. Language-model sampling uses exactly this knob. Subtracting the maximum first is the standard trick that prevents overflow without changing the answer.

How to use Softmax Calculator

  1. 1Choose a function from the menu, or "Compare all" to overlay the curves.
  2. 2For leaky ReLU, ELU and swish, set the extra parameter (alpha or beta) if you want something other than the default.
  3. 3Type an x to see f(x) and f'(x), and read the table of values.
  4. 4Zoom, pan and trace the plot to read the curve. Double-tap resets the view.
  5. 5For softmax, enter your scores separated by commas, set the temperature and read the probabilities and the steps.
  6. 6Read the strengths and weaknesses under the plot to compare the functions.

Features

  • Nine activation functions with formulas and derivatives rendered in LaTeX.
  • Interactive plot of the function and its derivative, with zoom, pan, trace and PNG download.
  • A compare view of eight functions on one plot.
  • Parameters for leaky ReLU (alpha), ELU (alpha) and swish (beta).
  • GELU computed exactly with the error function, not the tanh approximation.
  • Softmax with temperature and a worked, numerically stable calculation.
  • A value table, range, and plain-language strengths and weaknesses for each function.

Worked examples

  • Scores 3, 1, 0.2, -1 at temperature 1, 0.5 and 3 → gives 0.823, 0.111, 0.05, 0.015 / 0.978, 0.018, 0.004, 0 / 0.461, 0.237, 0.181, 0.121

    At temperature 0.5 almost all the probability goes to the top score; at 3 the four probabilities are much closer together.

Privacy: how it works

  • All calculations and plots run in your browser tab. Nothing is sent to Ulkaa or anyone else.

Tips

  • Compare the derivative curves: where one is flat near zero, learning is slow in that region of input.
  • Try a leaky ReLU with a large alpha such as 0.3 to see how the negative side tilts, and a swish beta of 5 to see it approach ReLU.
  • For softmax, add 100 to every score: the probabilities do not change, because only the differences matter.
  • Scores with one very large value give a probability close to 1 for that class, whatever the others are.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your inputs are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your inputs are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

How do I calculate softmax by hand?

Compute e to the power of each score, add them up, and divide each exponential by the sum.

Why subtract the maximum before softmax?

It prevents overflow for large scores, and because softmax depends only on differences between scores the result is identical.

What does temperature do in softmax?

It scales the scores before the exponential. Low temperature gives a peaked distribution and high temperature a flat one.

More Activation Function Plotter pages

  • Activation Function PlotterPlot any activation function and its derivative, evaluate it at a point, or turn scores into softmax probabilities.
  • Sigmoid Function CalculatorEvaluate the logistic sigmoid and its derivative at any x, and plot both.
  • Tanh Function CalculatorEvaluate tanh and its derivative at any x, and plot both.
  • ReLU Activation FunctionPlot max(0, x) and its derivative and evaluate them at any input.
  • Leaky ReLU CalculatorSet the negative slope alpha and see how leaky ReLU differs from ReLU.
  • ELU Activation FunctionPlot the exponential linear unit and its derivative for any alpha.
  • GELU Activation FunctionPlot the Gaussian error linear unit and its derivative, and evaluate it at any x.
  • Swish (SiLU) Activation FunctionPlot x times sigmoid(beta x) and its derivative, and change beta.
  • Softplus Function CalculatorPlot softplus and its derivative, which is exactly the sigmoid.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account