Tutorial

Understand the Metrics & Method

The optimizer scores a batting order by how hitters work in groups of four, not one at a time. This page shows what happens when you press Optimize, what each number means, and how to read the results.

The search

What happens when you press Optimize

Every legal order gets scored. Nothing is sampled or guessed.

  1. Step 1

    9hitters

    The nine you picked, each with a stat line for the season you chose.

  2. Step 2

    600PA blended

    Each line is regressed toward league average with 50 phantom PA, then scaled to 600 PA. Small samples get pulled toward average.

  3. Step 3

    362,880orders scored

    Every legal order is scored. Pins and constraints reduce the count.

  4. Step 4

    40,320cycles ranked

    Rotations of the same cycle are grouped, and each keeps its best rotation.

  5. Step 5

    25lineups returned

    You get up to 25 to compare against your own order.

The metrics

What the numbers mean

Pick a metric, then pick a batting spot to see which hitters it looks at.

Baserunner-Dependent Run Production

runs scored + end run expectancy − 0.48

The expected run value of the four-batter window that ends with this hitter: the three batters ahead plus him, wrapping around the order. It starts from bases empty with 0 outs and runs a 24 base/out state Markov chain. The 0.48 is the run expectancy of bases empty, 0 outs. Runner speed, taken from SB, affects advancement.

Where you see it. The per-player GOB / PUDI / BRP table in a lineup's detail view.

Batting order

Window for spot 4: spots 1, 2, 3, 4.

Pick a spot to move the window.

The builder

Build a lineup in four steps

The builder needs an account. These are the same four steps you see in the wizard.

Step 1 of 4

Select Players

Pick 9 player seasons by team, year, and name.

  • Browse the MLB roster by year (current season back to 1910) and team, or search by name.
  • Pick seasons one at a time, several at once, or use MLB Career. A date range also works.
  • Create custom players when you want to test a hypothetical hitter.
  • Under 100 plate appearances shows a Low Sample Size warning. For 2025 seasons you can switch to MLB averages with a 20% penalty.
  • A lineup holds at most 9 players.
Player selection step of the lineup builder
Reference screenshots show an earlier interface; the workflow is unchanged.

The results

Reading your results

  • Top Lineups board

    Up to 25 cards, one per ranked lineup.

    • Sort by Distance (closest to the order you entered) or by BRP.
    • The subtitle says how close they are to the best.
    • Rank 1 is tagged Best. Pinned players show a lock.
  • Lineup detail

    Click a card to open it.

    • A per-player GOB / PUDI / BRP table, behind the Per-Player Productions toggle. Darker blue rows contribute more after batting-position weighting.
    • Optimized versus your submitted order, with deltas for Total BRP, Exp/Cycle and Exp/Game.
    • "Submitted order is already optimal" appears when it is.
  • Per-Batter Production Shape

    A radar chart of each hitter's components.

    • The dashed ring is a fixed 0.111 reference, not a league average.
  • Distribution chart

    Where your lineup sits among every scored order.

    • Shows Best, Median, Worst, Best − Worst, and your lineup's percentile.
    • Switch between Ranked Curve and Histogram, and between Total BRP and Runs / Cycle.
    • Zoom to All Orders, Top 1%, or Top 100. The chart counts every scored order, including rotations.
  • Save or share

    Keep a result.

    • Save it to your Saved lineups, or Post it to Lineup Hub.

More tools

Beyond the builder

The same model powers the rest of the site.

  • MLB games, filtered by date and team.

    • A game page shows each team's actual lineup with BRP.
    • Optimize runs the full search on the same nine and shows "Already optimal" or a gain card with the Exp Runs/Cycle delta and extra runs over 162 games.
    • Injury Swap scores bench hitters in a slot.
    • Edit in Lineup Builder opens the real lineup in the builder.
  • Stats

    Sign in

    Season trends built on the same model.

    • Runs per game trends per team, cumulative or rolling 10.
    • Daily Expected Runs scores the lineup each team fielded each game, with LHP/RHP and without-player filters and an expected versus actual trend.
    • Optimizer Snapshot is a leaderboard of all 30 teams.
  • Trade Lab

    Sign in

    Offense only. No defense, contracts or pitching.

    • Find Trades offers Maximum Impact, Mutual Gain and Fair Exchange, with up to 10 suggestions and before and after orders. It uses a fast local search, not the full search.
    • Build a Trade takes any N-for-M and rescores it.
  • Lineup Hub

    Sign in

    Public lineups from other users.

    • Browse by Newest, Popular or Most Viewed.
    • The Leaderboard lists the top 5 MLB-only public lineups by expected runs per cycle.
    • React, comment, and Recommend Changes. Owners accept or reject requests.
  • Saved

    Sign in

    Your saved lineups.

    • Load one back into the builder, or delete it.
  • Games

    No account needed

    Three daily puzzles. Progress is saved on this device.

    • Order Up. Put nine hitters in the optimizer's order in 6 tries. Hints say exact, bats earlier, or bats later.
    • Who's Up. Guess a hidden 2026 hitter in 8 tries, with tiles for Team, Pos, Bats, Slot, AVG, HR and SB.
    • Over/Under. Make 10 calls on whether the next lineup projects over or under the line.
    • A new puzzle every day, and everyone gets the same one.

Ready to try it?

Pick nine hitters and see how much the order matters.