The k1 parameter is a positive tuning constant in the BM25 formula that modulates the non-linear scaling of term frequency (TF). It defines the shape of the saturation function, controlling the point at which seeing a query term more times in a document stops contributing meaningfully to the relevance score. A higher k1 value results in a more linear, steeper curve where each extra occurrence adds significant weight, while a lower value causes rapid saturation, treating a term as 'present enough' after just a few mentions.
Glossary
k1 Parameter

What is the k1 Parameter?
The k1 parameter is a free variable in the BM25 probabilistic ranking function that controls the saturation curve of term frequency, determining how quickly the impact of additional term occurrences within a document plateaus.
Typically set between 1.2 and 2.0 in systems like Elasticsearch, the k1 parameter works in tandem with the b parameter to balance raw term repetition against document length. Without k1, a document repeating a keyword hundreds of times would disproportionately outrank a more relevant document mentioning it once. This parameter is the mathematical implementation of the probabilistic relevance framework's assumption that term frequency influence follows a diminishing returns model, preventing keyword stuffing from gaming the ranking algorithm.
Key Characteristics of k1
The k1 parameter is the primary control for term frequency (TF) saturation in the BM25 probabilistic relevance framework. It dictates how quickly the score contribution from additional term occurrences plateaus, balancing the influence of TF against document length normalization.
Controls the Saturation Curve
k1 directly shapes the saturation function within BM25. It determines the non-linear relationship between raw term frequency and the final TF component score.
- A low k1 (e.g., 0.5) causes rapid saturation; a second occurrence adds significant weight, but a tenth adds almost none.
- A high k1 (e.g., 2.0) makes the response more linear, where each new occurrence continues to add substantial score.
- The formula component is
tf / (tf + k1), which always approaches 1.0 astfgrows, with k1 setting the speed of that approach.
Typical Range and Defaults
The k1 parameter is a free variable that must be tuned for a specific corpus. It is a positive floating-point number.
- The universally accepted default in implementations like Elasticsearch BM25 and Lucene Practical Scoring Function is k1 = 1.2.
- A common tuning range is between 0.5 and 2.0.
- Setting k1 to 0 effectively eliminates the term frequency component entirely, making BM25 behave like a binary-weight model where only term presence matters.
Interaction with the b Parameter
k1 works in concert with the b Parameter (document length normalization) to produce the final relevance score.
- While k1 controls the impact of repeating a term within a document,
bcontrols how much a document's length relative to the average penalizes that score. - A high k1 amplifies term frequency, making long documents with repeated terms score very high unless
bis also set high to aggressively normalize for length. - Tuning both parameters together is essential to prevent long, repetitive documents from dominating short, highly relevant ones.
Impact on Sparse Retrieval
In a sparse retrieval system using an inverted index, k1 directly influences which documents surface for a query.
- A lower k1 benefits precision by preventing a single high-frequency term from dominating the score, favoring documents with more unique query term matches.
- A higher k1 can improve recall for verbose queries or domains where term repetition is a strong relevance signal (e.g., technical documentation).
- Tuning k1 is a primary lever for solving the vocabulary mismatch problem when combined with query expansion techniques.
Mathematical Definition
The term frequency component of BM25 is defined as:
TF_score = (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * (dl / avgdl)))
freqis the term's frequency in the document.k1modulates the saturation offreq.- The
(k1 + 1)multiplier in the numerator normalizes the score so that the asymptote isk1 + 1rather than 1.0. - This formulation is derived from the Robertson-Spärck Jones Weighting probabilistic relevance framework.
Domain-Specific Tuning
Optimal k1 values vary by content type and search behavior:
- Short-form content (tweets, product titles): Lower k1 (0.5–0.8) is preferred, as term repetition is rare and often spammy.
- Long-form technical documents: Higher k1 (1.5–2.0) allows deep topical coverage signaled by repeated terminology to be rewarded.
- E-commerce catalogs: Moderate k1 (~1.0) balances the need to match exact product names without letting keyword-stuffed descriptions win.
- Tuning is typically performed via grid search against a Precision at K metric on a relevance-judged dataset.
Frequently Asked Questions
Deep-dive into the k1 parameter, the primary control knob for term frequency saturation in the BM25 probabilistic relevance framework.
The k1 parameter is a free variable in the BM25 ranking function that controls the scale of the term frequency (TF) saturation curve. It determines how rapidly the score contribution from additional occurrences of a query term plateaus. Mathematically, it modulates the non-linear transformation of raw term frequency into a saturated weight, preventing a document that mentions a word 100 times from being scored 100 times higher than a document that mentions it once. It is a positive float, typically calibrated between 1.2 and 2.0 for standard text search. A higher k1 value makes the saturation curve more linear, rewarding longer documents with higher term frequencies, while a lower value forces rapid saturation, treating a term's second occurrence almost as valuable as its tenth.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
k1 vs. b Parameter: A Comparison
A direct comparison of the two free parameters in the BM25 probabilistic relevance framework, detailing their distinct roles in controlling term frequency saturation and document length normalization.
| Feature | k1 Parameter | b Parameter |
|---|---|---|
Primary Role | Controls term frequency saturation curve | Controls document length normalization strength |
Mathematical Domain | Scales (tf / (k1 + tf)) component | Scales (dl / avgdl) component |
Typical Default Value | 1.2 | 0.75 |
Valid Range | 0 to infinity (typically 0 to 3) | 0 to 1 |
Effect of Setting to 0 | Term frequency is ignored; binary term presence only | No length normalization; long documents have unfair advantage |
Effect of Setting to Maximum | Term frequency impact becomes linear; no saturation | Full length normalization; short documents heavily favored |
Controls Saturation Speed | ||
Impacts Document Length Bias |
Related Terms
Understanding the k1 parameter requires context within the broader BM25 formula and its interacting components. These related concepts define how term frequency saturation, document length, and probabilistic weighting work together.
Saturation Function
The saturation function is the mathematical component where k1 operates directly. It models the non-linear gain in relevance from additional term occurrences.
- Formula component:
tf / (k1 + tf)after normalization - A single occurrence contributes significantly; the 10th occurrence contributes marginally.
- This prevents term spamming from dominating scores.
The saturation curve's steepness is entirely governed by the k1 value, making it the primary control for term frequency impact.
Term Frequency
Term frequency (TF) is the raw count of a term's appearances in a document—the input that k1 modulates. Without saturation, a document with 100 occurrences would score 100x higher than one with 1 occurrence.
- k1 introduces diminishing returns to this linear relationship.
- The interaction between TF and k1 defines BM25's departure from simpler models like TF-IDF.
- High k1 values approach linear TF weighting; low k1 values aggressively cap the impact.
BM25F
BM25F extends the standard BM25 model to handle structured documents with multiple fields—such as title, body, and anchor text—each with different importance weights.
- Each field can have its own k1 and b parameters tuned independently.
- A title match might use a higher k1 to emphasize even a single occurrence.
- The per-field scores are combined into a final relevance score.
This extension is critical for modern search engines like Elasticsearch where documents have heterogeneous structure.
Probabilistic Relevance Framework
The Probabilistic Relevance Framework (PRF) is the theoretical foundation upon which BM25 is built. It ranks documents by the probability of relevance given a query, using the Binary Independence Model as its starting point.
- BM25's term weighting derives from the Robertson-Spärck Jones formula.
- k1 was introduced as a free parameter to tune the term frequency component empirically.
- The framework assumes relevance is a probabilistic event, not a binary match.
This probabilistic grounding distinguishes BM25 from purely heuristic ranking functions.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us