What is the Hill Function?

The Hill function is a saturation curve that marketing mix models (MMM) use to convert media spend or impressions into incremental sales with diminishing returns. It has two shape parameters: the half-saturation point, where the effect reaches half of its maximum, and the slope, which determines whether the curve is concave or S-shaped.

Formula

For a media input x ≥ 0, such as weekly spend or impressions after the adstock transformation, the Hill function is:

Hill(x) = xS / (xS + KS) = 1 / (1 + (x / K)−S)

  • K is the half-saturation point: Hill(K) = 0.5 for any value of the slope (Jin et al., 2017).
  • S is the slope, also called the shape parameter or Hill coefficient.
  • The function rises from 0 toward 1 as x grows, so the model multiplies it by a coefficient β, the channel's maximum incremental effect: incremental sales = β × Hill(x).

The slope sets the shape. With S ≤ 1 the curve is concave: the first euro has the highest return, and every additional euro returns less. With S > 1 the curve is S-shaped: convex below an inflection point at x = K × ((S − 1) / (S + 1))1/S and concave above it. When x is spend, β × Hill(x) / x is the channel's incremental ROAS (iROAS), and the derivative β × S × xS−1 × KS / (xS + KS)2 is its marginal iROAS, the return on the next euro.

With S = 1, the function reduces to x / (x + K), the Michaelis–Menten form from enzyme kinetics, which Jin et al. (2017) note is equivalent to a curve used earlier at Google to relate TV reach to gross rating points.

Origin

The physiologist A. V. Hill published the equation in 1910 to describe how hemoglobin binds oxygen, and pharmacology later adopted it as a receptor model for dose–response relationships (Gesztelyi et al., 2012). The analogy to advertising is direct: a dose of media produces a response that grows quickly at first and then levels off. Jin et al. (2017) at Google proposed it as the shape transformation in a Bayesian media mix model, and it has become one of the standard ways to give an MMM response curve its shape.

Worked example

Take two channels with the same half-saturation point, K = EUR 40 000 of weekly spend, and the same maximum effect, β = EUR 200 000 of weekly incremental revenue. One has a slope of 1 (concave), the other a slope of 2 (S-shaped). The numbers are illustrative:

Weekly spend (EUR) S = 1: incremental revenue (EUR) S = 1: iROAS S = 1: marginal iROAS S = 2: incremental revenue (EUR) S = 2: iROAS S = 2: marginal iROAS
10 000 40 000 4.00 3.20 11 765 1.18 2.21
20 000 66 667 3.33 2.22 40 000 2.00 3.20
40 000 100 000 2.50 1.25 100 000 2.50 2.50
60 000 120 000 2.00 0.80 138 462 2.31 1.42
80 000 133 333 1.67 0.56 160 000 2.00 0.80

At EUR 40 000, both channels return EUR 100 000, half of their maximum, as the definition of K requires. Below that point they differ. At EUR 10 000, the S-shaped channel's iROAS is only 1.18, yet its marginal iROAS is 2.21: the next euro returns more than the average euro so far, because the channel has not yet passed its threshold. Its marginal iROAS peaks at about 3.25 at the inflection point near EUR 23 100, and its iROAS peaks at 2.5 exactly at K. In general, the iROAS of an S-shaped Hill curve peaks at x = K × (S − 1)1/S.

On the concave curve, marginal iROAS is below iROAS at every spend level, so cutting spend always raises iROAS. On the S-shaped curve, cutting spend below EUR 40 000 lowers iROAS too.

The Hill function in marketing mix modeling

An MMM applies the Hill function to each channel's media variable, usually after adstock, so the carryover from past weeks is saturated together with the current week's spend. Jin et al. (2017) use this order, and Meridian does the same by default, with an option to reverse it (Google, n.d.-b). The open-source MMM packages from Google and Meta write the curve differently:

  • Google Meridian computes mediaslope / (mediaslope + ecslope), where ec is the half-saturation point. Media is first scaled by per-geo medians normalized by population, so ec is relative to typical media levels. In version 2.2.1, the default prior on ec for media channels is a normal distribution (mean 0.8, standard deviation 0.8) truncated to 0.1–10, and the slope is fixed at 1, so default curves are concave. Reach and frequency channels get a log-normal prior on the slope instead.
  • Meta Robyn computes xα / (xα + γxα). Its documentation says α controls the shape ("the larger the alpha, the more S-shape") and γ the position of the point γx, set relative to the channel's observed media values (Meta, 2025). Robyn calls this point the inflexion point; mathematically it is the half-saturation point, since the curve equals 0.5 there.

Identifiability: when the data cannot pin down the curve

Jin et al. (2017) found the parameters of the Hill function "essentially unidentifiable in some scenarios". A curve with K = 0.5, S = 1 and β = 0.3 is almost indistinguishable within the observed range from one with K = 0.95, S = 0.748 and β = 0.393; the two diverge only beyond it. The same happens when K lies outside the observed spend range. In their simulations, the curves were estimated well even when the individual parameters were not, and for a shampoo advertiser with 2.5 years of weekly data, model selection chose the simpler specification with the slope fixed at 1. Three consequences follow:

  • Priors matter. In a Bayesian MMM, a prior on K constrained to the observed spend range lets the curve be estimated well within that range (Jin et al., 2017), and Meridian truncates its ec prior to keep the parameter identifiable (Google, n.d.-a).
  • Extrapolation is uncertain. When K lies outside the data, the curve cannot be extrapolated beyond the observed spend (Jin et al., 2017). A plan that doubles a channel's budget relies on exactly that part of the curve.
  • S-shapes are hard to confirm. On an S-shaped curve, marginal iROAS near zero spend is close to zero, so a budget optimizer may either cut the channel entirely or push it past the threshold, and a small change in the estimated slope can flip that decision. The evidence on thresholds is mixed: Vakratsas et al. (2004) found threshold effects for SUVs and minivans but not for liquid detergent.

The chart below from the Sellforte demo (demo data) shows estimated response curves for four channels in one market. Google Search Brand flattens out at low spend, which in Hill-function terms means a low half-saturation point. TV Spots is almost linear across its observed spend, so its saturation level lies beyond the data and its dotted extension should be read with care.

Estimated response curves for Meta Prospecting, Google Search Brand, Amazon Sponsored Products and TV Spots in one market in the Sellforte demo, with different saturation levels and an almost linear TV curve

The next chart, from the same view in the Sellforte demo (demo data), shows these curves as marginal iROAS. All four are concave, so like a Hill curve with a slope of 1 or less, each channel's marginal iROAS is highest at the first euro and falls as spend grows.

Marginal iROAS curves for four advertising channels in one market (demo data), each falling as weekly spend increases

The Hill function and incrementality tests

An incrementality experiment measures one segment of a channel's curve. A geo lift test that raises spend in test regions measures the average slope between two spend levels; a go-dark test measures the iROAS from zero up to current spend. Each result constrains β, K and S jointly: a high iROAS for extra spend rules out curves that are already flat, and tests at different spend levels help separate the slope from the half-saturation point.

When test results are used to calibrate the MMM, they must be compared at the same spend levels, because an experiment's iROAS is an average over the tested change, not the marginal iROAS at current spend. Meridian supports such calibration through priors on ROI or marginal ROI, its terms for these quantities.

Key takeaways

  • The Hill function, β × xS / (xS + KS), models saturation with a half-saturation point K, a slope S and a maximum effect β.
  • A slope of 1 or less gives a concave curve; a slope above 1 gives an S-shaped curve with a threshold.
  • On an S-shaped curve, a low iROAS at low spend does not always mean a channel should be cut.
  • The parameters are often weakly identified; priors, a fixed slope and experiments keep curves plausible, and extrapolation stays uncertain.

Related terms

Further reading on Sellforte

References

  1. Gesztelyi, R., Zsuga, J., Kemeny-Beke, A., Varga, B., Juhasz, B., & Tosaki, A. (2012). The Hill equation and the origin of quantitative pharmacology. Archive for History of Exact Sciences, 66(4), 427–438. https://doi.org/10.1007/s00407-012-0098-5
  2. Google. (n.d.-a). Default prior distributions. Meridian documentation. Retrieved 2026-11-25, from https://developers.google.com/meridian/docs/advanced-modeling/default-prior-distributions
  3. Google. (n.d.-b). Meridian (Version 2.2.1) [Computer software]. GitHub. Retrieved 2026-11-25, from https://github.com/google/meridian
  4. Jin, Y., Wang, Y., Sun, Y., Chan, D., & Koehler, J. (2017). Bayesian methods for media mix modeling with carryover and shape effects. Google Inc. https://research.google/pubs/bayesian-methods-for-media-mix-modeling-with-carryover-and-shape-effects/
  5. Meta. (2025). Robyn (Version 3.12.1) [Computer software]. GitHub. https://github.com/facebookexperimental/Robyn
  6. Vakratsas, D., Feinberg, F. M., Bass, F. M., & Kalyanaram, G. (2004). The shape of advertising response functions revisited: A model of dynamic probabilistic thresholds. Marketing Science, 23(1), 109–119. https://doi.org/10.1287/mksc.1030.0035

Authors

Paavo

Dr. Paavo Niskala is a Principal Engineer at Sellforte. With PhD in the field of computational plasma physics, he has over 10 years of experience in designing and building complex data-intensive systems. Paavo has especially focused on using data science in critical business applications, such as Marketing Mix Modeling, which helps businesses make better marketing decisions. Follow Paavo in LinkedIn.