Counting, Permutations & Combinations

Seating Arrangements with Restrictions Calculator

Count linear or circular seatings, with two specified people together or apart.

Counting & Combinatorics

Count linear or circular seating arrangements

Optional two-person restriction

Exact arrangements

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Enter the number of distinct people.
  2. Choose a line or circle and an optional two-person restriction.
  3. Read the exact arrangement count.

Calculation method

Use blocks for adjacent people

Unrestricted line and circle counts are n! and (n−1)!. Treating two specified people as a two-order block counts adjacent arrangements; subtracting that count gives non-adjacent arrangements.

Worked example

Five people in a line with two together

Treat the specified pair as one block, arrange four units, then order the pair two ways.

2×4! = 48

Supported inputs

Precision and limits

Discrete domain

Inputs are whole counts. Negative, fractional, grouped, and scientific-notation inputs are rejected.

Exact integers

Results use arbitrary-precision integers and are never rounded. Inputs and output size are bounded to keep the page responsive.

Restriction scope

The restricted modes apply to exactly two specified distinct people. More complex adjacency rules are not inferred.