Number Range Calculator
Enter a set of numbers to get the range, min, max, and average.
Date Range Calculator
Find the difference between two dates in days, weeks, months, and years.
IP Address Range Calculator
Enter a start and end IPv4 address to get the total count in that range.
Vehicle Fuel Range Calculator
Estimate how far your vehicle will travel on a full tank.
This range calculator runs four tools in one place: a number statistics calculator that returns min, max, mean, and median; a date range calculator for days between two dates; an IPv4 address range calculator for network planning; and a fuel range calculator for driving distance estimates. All four run in your browser. Nothing gets sent to a server, and nothing reloads the page.
Contents
- How to Use the Calculator
- Number Range Calculator
- Date Range Calculator
- IP Address Range Calculator
- Fuel Range Calculator
- Use Cases and Examples
- Frequently Asked Questions
How to Use the Calculator
Click any tab to open that calculator. Each tab is independent. Your inputs in one tab stay untouched when you switch to another. The tool works on desktop and mobile without installing anything or creating an account.
Number Range Calculator
Type any set of numbers separated by commas. The calculator returns the minimum, maximum, range, mean, and median. You need at least two values. Decimals and negative numbers both work. There is no upper limit on how many numbers you enter.
Worked Example
You run a small store. Your daily sales this week were 420, 385, 510, 290, 640, 470, and 380.
Input: 420, 385, 510, 290, 640, 470, 380
- Minimum: 290
- Maximum: 640
- Range: 350
- Mean: 442.14
- Median: 420
Understanding the Results
The range (350) tells you how spread out the values are. A small range means your numbers cluster together. A large range means a wide gap exists between your lowest and highest values.
The median (420) often gives a more honest picture than the mean when one number sits far outside the rest. In this example, the 640 sale pulls the mean up to 442.14. The median ignores that extreme and gives you the true middle value of the sorted list. When your data has strong outliers, use the median as your reference point.
This distinction matters in practice. A dataset of employee salaries where one executive earns ten times the others will show a mean that represents nobody in the room. The median shows what most people actually earn. Data analysts default to median for skewed distributions for exactly this reason.
How to Calculate Range Manually
Sort your numbers from lowest to highest. Subtract the smallest value from the largest.
- Range formula: Range = Maximum minus Minimum
- Mean formula: Mean = Sum of all values divided by count of values
- Median: Middle value of the sorted list. For even counts, average the two middle values.
Date Range Calculator
Pick a start date and an end date. The calculator returns the gap in days, weeks, months, and years. The end date must be later than the start date. Same-day inputs return zero across all fields, which is the correct result.
Worked Example
You signed a contract on March 1, 2024, and the project wraps on November 30, 2024.
- Start date: March 1, 2024
- End date: November 30, 2024
- Days: 274
- Weeks: 39.14
- Months: 9.00
- Years: 0.75
When to Use a Date Range Calculator
Any task that requires knowing the exact number of days between two dates benefits from this tool. Common uses include project timelines, rental periods, subscription lengths, warranty checks, event countdowns, visa duration tracking, loan terms, and age calculations. The calculator returns all four units at once so you do not have to convert manually.
Visa and immigration deadlines are one area where manual counting errors carry real consequences. A 90-day visa window that starts on January 15 ends on April 14, not April 15. Counting manually across months with different lengths introduces errors. The calculator removes that risk.
Leap Years and Calendar Accuracy
The calculator accounts for leap years automatically. A leap year adds one extra day to February, which affects any date range that crosses February 29. If your range spans multiple years, the calculator factors in each leap year within that period. You do not need to adjust manually.
2024 was a leap year. 2025 and 2026 are not. 2028 will be. Any date range calculation crossing February in those years returns a different day count depending on whether the year is a leap year. The calculator handles this for you.
How to Calculate Days Between Dates Manually
Convert both dates to a day number from a fixed reference point, then subtract. The simpler approach is to count forward from the start date, adding the correct days per month as you go: January 31, February 28 or 29, March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31, November 30, December 31. For short ranges this works. For ranges spanning months or years, this calculator is faster and removes counting errors.
IP Address Range Calculator
Enter a start IP address and an end IP address in standard IPv4 format (e.g. 10.0.0.1). The calculator returns the total number of addresses in that range and the usable count. If you type letters, spaces, or a number above 255 in any segment, the calculator flags the error before running. The end IP must be equal to or greater than the start IP.
Worked Example
Your office network runs from 192.168.1.1 to 192.168.1.255.
- Start IP: 192.168.1.1
- End IP: 192.168.1.255
- Total IPs: 255
- Usable IPs: 253
Why Two Addresses Are Always Reserved
Every IPv4 range reserves the first address as the network address and the last as the broadcast address. Neither can be assigned to a device. This is standard IPv4 behaviour defined in networking specifications, not a limitation of this tool.
The network address identifies the subnet itself. Routers use it to direct traffic to the correct segment. The broadcast address sends data to all devices on that subnet simultaneously. Both are required for the network to function. When you plan how many devices a subnet supports, always subtract two from the total IP count.
Common Usable Host Counts by Subnet Size
| CIDR Notation | Total IPs | Usable Hosts | Common Use |
|---|---|---|---|
| /30 | 4 | 2 | Point-to-point links |
| /29 | 8 | 6 | Very small networks |
| /28 | 16 | 14 | Small office segment |
| /27 | 32 | 30 | Small team networks |
| /26 | 64 | 62 | Department networks |
| /25 | 128 | 126 | Mid-size office |
| /24 | 256 | 254 | Standard office LAN |
| /23 | 512 | 510 | Large office or campus |
| /22 | 1024 | 1022 | Enterprise subnet |
When to Use an IP Range Calculator
Network planning before deployment, subnet audits, verifying how many devices a DHCP scope supports, and confirming that two IP ranges do not overlap. If you are setting up VLANs or assigning static addresses, knowing your usable count before you configure anything prevents address conflicts and wasted space. Students preparing for CCNA or CompTIA Network+ certifications use this table to check their subnet math.
Fuel Range Calculator
Enter three values: tank size in litres, fuel consumption in litres per 100 km, and your current fuel level as a percentage. The calculator works out how much fuel you actually have, then estimates your driving range in both kilometres and miles.
Worked Example
Your car has a 55-litre tank, uses 7.5 litres per 100 km, and your tank is at 60%.
- Tank size: 55 L
- Consumption: 7.5 L/100 km
- Current level: 60%
- Fuel available: 33 L
- Estimated range: 440 km / 273.4 miles
- Full tank range: 733.3 km
How the Calculation Works
The calculator multiplies your tank size by your fuel level percentage to find available fuel. It then divides that by your consumption rate and multiplies by 100 to convert to kilometres.
- Available fuel = tank size x (fuel level / 100)
- Range (km) = (available fuel / consumption) x 100
- Example: (55 x 0.60) / 7.5 x 100 = 440 km
Why Your Real-World Range Differs from the Estimate
Manufacturers quote fuel consumption figures under controlled test conditions, which typically run 15 to 20 percent lower than real-world averages. Your actual consumption varies with:
- Speed. Driving at 70 mph uses around 9 percent more fuel than 60 mph. At 80 mph that rises to about 25 percent more.
- Air conditioning. Running the AC adds roughly 5 to 15 percent to consumption depending on outside temperature.
- Load. A fully loaded car or tow vehicle increases consumption significantly over an empty one.
- Road type. City driving with frequent stops uses 20 to 40 percent more fuel than steady highway driving.
- Gradient. Sustained uphill driving in mountainous terrain can double consumption compared to flat road figures.
For the most accurate estimate, use the average from your trip computer or calculate it yourself from your last two consecutive fill-ups. Divide the litres pumped by the kilometres driven, then multiply by 100.
Results show in both kilometres and miles. L/100km is the standard in South Africa, Europe, and Australia. Both units appear together so you do not need a separate conversion.
Use Cases by Calculator
Number Range Calculator
Teachers calculating the spread in student test scores. Business owners reviewing weekly sales variability. Analysts checking the range of sensor readings or survey responses. Anyone comparing a set of values and needing the minimum, maximum, average, and median without opening a spreadsheet.
Date Range Calculator
Calculating days left in a project. Checking a rental period before signing a lease. Working out how long a warranty covers a product. Counting days for a visa duration requirement. Verifying subscription lengths. Tracking how many days have passed since a purchase or medical procedure. Calculating exact ages in days for legal or administrative purposes.
IP Address Range Calculator
Network administrators planning subnets before deployment. IT teams auditing how many devices a DHCP scope supports. Students preparing for networking certifications like CCNA or CompTIA Network+. Anyone verifying that a proposed IP range fits within an existing subnet without address conflicts.
Fuel Range Calculator
Long-distance drivers planning refuel stops on routes with sparse stations. Checking whether you have enough fuel to reach your destination before a highway section with no services. Comparing estimated range between a full tank and your current level before setting off. Useful for road trips in South Africa, Australia, and other countries with long distances between fuel stops.
Frequently Asked Questions
What is range in maths or statistics?
Range is the difference between the largest and smallest values in a data set. You calculate it by subtracting the minimum from the maximum. If your values are 10, 25, 40, and 70, the range is 70 minus 10, which equals 60. A large range means your data is spread out. A small range means the values cluster together. Range is the simplest measure of variability and takes only two values to calculate, unlike variance or standard deviation.
What is the difference between mean and median?
The mean is the sum of all values divided by the count. The median is the middle value when all numbers are sorted in order. The median resists outliers. If one number in your set is much higher or lower than the rest, it pulls the mean away from the centre but leaves the median unchanged. Use the median when your data has extreme values at either end. House prices, incomes, and response times are typical cases where the median gives a better picture than the mean.
How do I calculate days between two dates?
The date range calculator on this page does this automatically and returns the result in days, weeks, months, and years. For manual calculation, count forward from the start date to the end date, accounting for the number of days in each month and any leap years. February has 28 days in a standard year and 29 in a leap year. Leap years occur every four years: 2024, 2028, 2032, and so on.
Why does the IP range calculator show two fewer usable IPs than the total?
Every IPv4 range reserves the first address as the network address and the last as the broadcast address. Neither can be assigned to a device. A /24 subnet with 256 total addresses has 254 usable host addresses. A /29 with 8 total addresses has 6 usable. This is standard IPv4 behaviour defined in networking specifications, not a limitation of this tool.
How is driving range calculated from tank size and fuel consumption?
Multiply your tank size by your fuel level percentage to find available fuel. Divide that by your consumption rate and multiply by 100. If your 55-litre tank is at 60% with consumption of 7.5 L/100 km, you have 33 litres available and an estimated range of 440 km. Full formula: Range (km) = (tank size x fuel level / 100) / consumption x 100.
Why does real-world fuel consumption differ from the manufacturer’s figure?
Manufacturer figures come from controlled test conditions, typically 15 to 20 percent below real-world averages. Speed, air conditioning, road gradient, load, and traffic all increase actual consumption above the test figure. Driving at 70 mph uses about 9 percent more fuel than 60 mph. Running the AC adds 5 to 15 percent. Use your own trip computer average or calculate from your last two fill-ups for the most accurate range estimate.
What IP address format does the IP range calculator accept?
Only IPv4 in the standard four-part dotted decimal format, such as 192.168.1.1. Each segment must be a number between 0 and 255. The calculator flags an error if you enter letters, spaces, or a value above 255 in any segment. IPv6 is not supported by this tool.
Does this calculator work on mobile?
Yes. All four tabs work on phones and tablets without any installation. The tool runs in your browser and adapts to smaller screens.
Does this tool store or send my data anywhere?
No. All calculations run locally in your browser. Nothing is sent to a server, and nothing is stored or logged. Your inputs disappear when you close or refresh the tab.


