Numeric Forest logo

Can the Kruskal-Wallis Test Tell You Why Your Tomatoes Aren't Growing?

By Numeric Forest Team | Published on 27 June 2026

Your tomatoes are sulking. The neighbour's plants are thriving like they're auditioning for a supermarket advert, while yours look as though they've given up on life entirely. Before you blame the weather, the soil, or a cosmic vendetta against your garden, it might be worth asking a more scientific question: is one of your fertilisers actually better than the others?

Gardeners often rely on instinct - "this one feels better", "that one smells more nutritious", "the packet looked trustworthy". But instincts are famously unreliable. If you want to know whether one fertiliser genuinely outperforms the others, the Kruskal-Wallis Test Calculator can help. It compares plant growth across multiple groups without assuming anything about the shape of the data - perfect for messy, unpredictable tomato behaviour.

Why Tomatoes Make Terrible Statisticians

Plant growth is chaotic. Some tomatoes shoot up like they're powered by ambition; others sit there doing absolutely nothing for weeks. Growth data is rarely neat, normal, or symmetrical. That's why non-parametric tests like the Kruskal-Wallis are ideal - they don't care about normal distributions or equal variances. They simply rank all the values and check whether one group consistently grows more than the others.

In other words: the test doesn't ask how much taller your tomatoes are - it asks whether one fertiliser tends to produce taller plants overall.

Setting Up the Tomato Experiment

Imagine you've planted three beds of tomatoes, each using a different fertiliser:

  • Fertiliser A: A gentle, balanced mix.
  • Fertiliser B: A nitrogen-heavy booster.
  • Fertiliser C: A slow-release organic blend.

After eight weeks, you measure the height of each plant. Because this is a theoretical example, we'll use a small, tidy dataset - just enough to demonstrate the method without turning your garden into a research lab.

Fertiliser A Heights (cm): 42, 45, 47, 50, 52

Fertiliser B Heights (cm): 55, 58, 60, 62, 65

Fertiliser C Heights (cm): 40, 43, 44, 46, 48

How the Fertilisers Ranked

FertiliserRank SumMean Rank
Fertiliser A336.60
Fertiliser B6513.00
Fertiliser C224.40

Fertiliser B has the highest mean rank, meaning its plants consistently appear among the tallest. Fertiliser C has the lowest mean rank, producing the shortest plants. Fertiliser A sits in the middle.

Results from the Kruskal-Wallis Test

H-statistic9.98000000
Degrees of Freedom2
P-value0.00680566
Total Sample Size15
Effect Size (η²H)0.66500000

The Kruskal-Wallis results confirm a statistically significant difference between the three fertilisers. Fertiliser B consistently produces the tallest plants, Fertiliser A sits in the middle, and Fertiliser C produces the shortest.

What the Test Actually Did

The Kruskal-Wallis test works in three simple steps:

  1. Rank all the plant heights: The shortest plant gets rank 1, the tallest gets rank 15.
  2. Add up the ranks for each fertiliser group: Higher rank totals mean taller plants.
  3. Compare the rank patterns: If one fertiliser consistently produces higher ranks, the test flags a difference.

In this example, Fertiliser B dominates the upper ranks, Fertiliser A sits in the middle, and Fertiliser C trails behind. The test doesn't tell you why or which pairs differ - it only tells you that at least one group stands out. To pinpoint the exact differences, gardeners would normally follow up with a post-hoc test such as Dunn's Test.

So… Which Fertiliser Should You Use?

While the test formally proves a gap in performance across the board, the data points to a very straightforward conclusion: Fertiliser B clearly generated the best growth results.

Try It with Your Own Garden Experiments

You can use the same method for any small gardening trial - herbs, peppers, strawberries, you name it. Whenever you have three or more groups and you want to know whether one treatment stands out, the Kruskal-Wallis test is your friend.

Enter your own plant heights into the Kruskal-Wallis Test Calculator and see whether your tomatoes are genuinely underperforming or simply having a slow week.

This article uses a simplified, synthetic dataset for educational purposes and does not represent real agricultural testing or product performance.