# How do stage-to-probability mappings function when configuring custom opportunity pipelines?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Probability Mappings, Pipeline Setup

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-stage-to-probability-mappings-function-when-configuring-custom-opportunity-pipelines

## Answer

**Basics:** Probability expresses likelihood to close, and Expected Revenue equals Amount times Probability. Stage values are a picklist configured with these attributes, grouped into sales processes tied to record types.

**How it works:**
1. Setup > Object Manager > Opportunity > Fields > Stage: edit values, set probability, type (Open, Closed/Won, Closed/Lost) and forecast category (Pipeline, Best Case, Commit, Closed, Omitted).
2. Create sales processes (Setup > Sales Processes) to choose which stages each record type shows.
3. When a rep changes the stage, Probability and Forecast Category update to the stage defaults.
4. If Probability is on the layout and editable, the rep may override it; the override persists until the stage changes again.
5. ExpectedRevenue is recalculated from Amount and Probability.

**Advanced / deep dive:** Forecasts roll up by Forecast Category, not by Probability, so stages with equal probability can land in different categories. Closed Won is conventionally 100 and Closed Lost 0. Probability is also a filter in reports and Einstein scoring treats it as a signal, so drift between stage defaults and overrides weakens both. Renaming or replacing a stage value requires mapping existing records (use Replace); the Stage field is a metadata-driven picklist and deployments must include the sales process and record type. Data loads and Apex that set Stage may or may not set Probability depending on whether you supply it, so integration code should set both deliberately.

**Code / config example:**
```sql
SELECT MasterLabel, DefaultProbability, ForecastCategoryName, IsClosed, IsWon, SortOrder
FROM OpportunityStage
WHERE IsActive = true
ORDER BY SortOrder
```

**Hidden gotchas & must-remember points:**
- Stage changes overwrite a manual probability.
- Forecast uses Forecast Category, not Probability.
- Stage type (Open, Closed/Won, Closed/Lost) drives IsClosed and IsWon.
- A stage must belong to a sales process before a record type shows it.
- Editing a stage's default probability does not update existing opportunities.
- Deleting or replacing a stage requires reassigning existing records.

**Best practice:** Keep probabilities aligned with historical conversion data and restrict manual overrides with field-level security.

---
Source: ForceChallenges · last updated 2026-11-02
