Log Loss Calculator

Paste actual labels and predicted probabilities to instantly compute log loss (binary cross-entropy) for your classification model.

Input Data

Formula Reference

Log Loss = −(1/N) ∑ [ y·log(p) + (1−y)·log(1−p) ]
N — number of samples
y — actual label (0 or 1)
p — predicted probability [0, 1]
Probabilities are clipped to [1e-15, 1−1e-15] to prevent −∞.

Enter labels and probabilities, then click Calculate

Copied to clipboard

Summary

Paste actual labels and predicted probabilities to instantly compute log loss (binary cross-entropy) for your classification model.

How it works

  1. Enter comma-separated actual labels (0 or 1) in the first field.
  2. Enter the corresponding predicted probabilities (values between 0 and 1) in the second field.
  3. Click "Calculate" to compute the log loss.
  4. Review the overall score and the per-sample breakdown table.
  5. Lower log loss indicates a better-calibrated model; 0 is perfect.

Use cases

  • Evaluate classification model quality during development.
  • Compare log loss across different model versions or hyperparameter settings.
  • Debug poorly calibrated probability outputs from a classifier.
  • Validate that predicted probabilities from an API or pipeline are reasonable.
  • Teach or demonstrate cross-entropy loss to students and colleagues.
  • Quick sanity-check before submitting to a Kaggle competition scored by log loss.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu