Clock time to decimal minutes
Turn a clock time into minutes past midnight: 06:15:30 becomes 375.5 decimal minutes. Enter the hour, minute and second in 24-hour time and the seconds are added as a fraction, ready to sort, chart or subtract. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Hours
- 6
- Minutes
- 15
- Seconds
- 30
- Decimal minutes
- 375.5
- Minutes past midnight
- 375.5
The clock time to decimal minutes converter turns a time of day into one numeric value: the total number of minutes elapsed since midnight. Enter the hour, minute, and second using 24-hour time, and the calculator includes the seconds as a fractional minute. For example, 06:15:30 becomes 375.5 decimal minutes.
What decimal minutes past midnight represent
Decimal minutes past midnight express a time of day as a single quantity measured from 00:00:00. Midnight itself is zero. Each complete hour contributes sixty minutes, the minute field contributes its stated amount, and the second field contributes a fraction obtained by dividing by sixty.
Thus 01:00:00 is 60 decimal minutes, 12:00:00 is 720, and 23:59:30 is 1439.5. This representation is often easier to sort, graph, subtract, and compare than text such as 11:59 PM, because the numerical order matches the order of times within one day. The converter deliberately accepts 24-hour clock fields rather than AM or PM text: hours range from 0 through 23, while minutes and seconds each range from 0 through 59.
It describes a clock position within a day, not an elapsed duration that may exceed twenty-four hours. There is also no attached calendar date or timezone. If two values come from different dates or zones, normalize that context separately before comparing their decimal-minute results.
How the calculation and validation work
The formula is hours multiplied by sixty, plus minutes, plus seconds divided by sixty. For 14:30:45, the hour portion is 840, the minute portion is 30, and the second portion is 0.75, producing 870.75 decimal minutes past midnight. All three fields are required whole numbers.
The hour must be between 0 and 23 inclusive, and both the minute and second must be between 0 and 59 inclusive. These limits prevent duration-style inputs such as 2 hours and 90 minutes from being mistaken for a valid clock reading.
Using the result correctly in data and schedules
Use decimal minutes when downstream software expects a continuous numeric scale. A spreadsheet can place the value on a chart axis, a scheduling system can compare opening and closing times, and a test suite can assert exact conversions without parsing localized clock labels. To find a same-day interval, convert both clock times and subtract the earlier result from the later one.
Be careful when the interval crosses midnight: 00:15 is numerically smaller than 23:45 even though it occurs thirty minutes later on the following day. In that case, add 1440 minutes to the next-day result before subtracting, or use a date-aware duration tool. Seconds may create repeating decimal fractions; for example, one second is one sixtieth of a minute.
This capability returns a stable numeric approximation rounded to at most ten decimal places, which is ample for clock-second inputs and prevents distracting binary floating-point tails. Do not treat the output as a Unix timestamp, a timezone offset, or a count of billable minutes. It is simply the position of one valid 24-hour clock time on a zero-to-just-under-1440-minute daily scale.
What you can do with it
Prepare times for spreadsheet formulas
Convert hour, minute, and second fields into one numeric column that can be sorted, subtracted, averaged, or charted.
Normalize scheduling data
Represent same-day opening times, appointment slots, or transport departures on a consistent minutes-after-midnight scale.
FAQ
What formula converts clock time to decimal minutes?
Multiply hours by 60, add minutes, then add seconds divided by 60.
Does the calculator use 12-hour or 24-hour time?
It uses 24-hour time. Enter hours from 0 through 23; there is no AM or PM field.
Are seconds included in the result?
Yes. Seconds are divided by 60 and included as the fractional part of a decimal minute.
Can I enter a duration longer than one day?
No. This converts a time of day, so hours stop at 23 and minutes and seconds stop at 59.
How do I get the gap between two times that cross midnight?
Convert both times, then add 1440 minutes to the one on the next day before subtracting. For example, 00:15 comes thirty minutes after 23:45 even though its value is smaller.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/date/time-to-decimal-minutes \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"hours":14,"minutes":30,"seconds":45}'const res = await fetch("https://api.kit.forhosting.com/date/time-to-decimal-minutes", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"hours": 14,
"minutes": 30,
"seconds": 45
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/date/time-to-decimal-minutes",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"hours": 14,
"minutes": 30,
"seconds": 45
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/date/time-to-decimal-minutes", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"hours":14,"minutes":30,"seconds":45}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"hours":14,"minutes":30,"seconds":45}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/date/time-to-decimal-minutes", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"hours": 14,
"minutes": 30,
"seconds": 45
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "date.time_to_decimal_minutes",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
The calculation is pure arithmetic and has no timezone, date, daylight-saving, network, or system-clock dependency, so identical inputs always produce identical output in the browser and API.
How the calculation and validation work
Numeric strings containing only digits are accepted for clients that submit form values as text, but decimals, signs, booleans, blank fields, non-finite numbers, and values outside the clock ranges return an invalid_input error. The result includes both decimal_minutes and minutes_past_midnight with the same value, along with the validated component fields. API requests cost $0.002 per successful item.
Integration use cases
Build deterministic test fixtures
Generate exact expected values for software that transforms 24-hour clock components into decimal-minute measurements.
Technical questions
How much does an API conversion cost?
Each successful API request costs $0.002. The browser calculator is free to run.