ForHosting KIT · Engineering & construction

Will It Float Calculator

An object of 750 kg/m³ in water of 1000 kg/m³ floats, with a density ratio of 0.75: compare any object with any fluid and get a clear verdict, the signed difference and the ratio. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Object density
750
Fluid density
1,000
You get
Verdict
floats
Density difference
-250
Density ratio
0.75

The will it float calculator compares an object's density with the density of the surrounding fluid and gives a direct verdict. Enter both densities using the same unit, such as kilograms per cubic meter or grams per cubic centimeter. A less-dense object floats, a denser object sinks, and equal densities produce neutral buoyancy. The result also shows the signed density difference and, when the fluid density is above zero, the density ratio for easier interpretation.

Use density to predict the outcome

Floating is governed by the relationship between an object's average density and the density of the fluid around it. When the object's density is lower, it can displace enough fluid to balance its weight before becoming completely submerged, so the calculator reports that it floats. When the object's density is higher, complete submersion does not displace enough fluid to support the object's weight, so it sinks.

If both densities are exactly equal, the result is neutrally buoyant: in the idealized comparison, the object has no density-driven tendency to rise or fall. This calculator makes that comparison directly. It does not require mass, volume, gravity, or a separately calculated buoyant force because those quantities cancel when the question is only which density is greater.

Use an average bulk density for an object that contains air spaces, hollow sections, pores, or several materials. A steel vessel, for example, can float when its total mass divided by its full displaced volume is less than the water density, even though solid steel alone is denser than water.

Enter compatible density values

Both entries must use the same density unit. You may use kilograms per cubic meter, grams per cubic centimeter, pounds per cubic foot, or another density unit, but do not mix units within one calculation. The numerical comparison is unit-independent only when the units match.

For example, water near ordinary room conditions is commonly approximated as 1000 kilograms per cubic meter or 1 gram per cubic centimeter; those numbers describe the same density but cannot be compared directly to each other. Density cannot be negative, so either negative input produces an error instead of a misleading physical conclusion. Zero is accepted as a mathematical boundary, although a zero-density fluid is an idealized case rather than an ordinary liquid or gas.

Understand the assumptions behind the verdict

The result is an ideal bulk-density prediction, not a simulation of every force acting on a real object. Surface tension can support very small objects that would otherwise be expected to sink, while trapped bubbles or changing orientation can alter the effective displaced volume. Compressible objects and gases may change density with pressure, and fluid density can vary with temperature, salinity, or composition.

Motion also matters: lift, drag, waves, and a push from outside can temporarily move an object contrary to its static density verdict. For reliable practical use, choose density values that represent the actual object and fluid under the relevant conditions. If an object is layered or hollow, divide its total mass by its overall external volume to estimate bulk density.

If a fluid is a mixture, use a measured or appropriately calculated mixture density rather than the density of one ingredient. Neutral buoyancy is especially sensitive to rounding and measurement uncertainty; values that merely appear equal at limited precision may still cause slow rising or sinking in practice. Treat the returned verdict as the baseline physical expectation and account for those effects when safety, design tolerances, or experimental accuracy matter.

Check a material in water

Compare a sample's measured bulk density with water density to predict whether it will float or sink.

Plan a classroom experiment

Predict outcomes before placing objects in a liquid, then compare the ideal density verdict with observations.

Evaluate neutral buoyancy

Check whether an object's average density matches its surrounding fluid and identify how far the values differ.

What determines whether an object floats or sinks?

An object floats when its average density is lower than the fluid density and sinks when its density is higher. Equal densities indicate neutral buoyancy.

What happens when the densities are equal?

In the ideal model, the object has no density-driven tendency to rise or sink.

Can I enter a negative density?

No. Negative density is outside this calculator's physical model, so either negative density returns an invalid input error.

Why might a real experiment differ from the result?

Surface tension, trapped air, fluid motion, temperature, pressure, object orientation, or inaccurate bulk-density measurements can affect real behavior.

Why does a steel boat float when steel is denser than water?

What counts is the average density of the whole hull, including the air inside: its total mass divided by the full volume it displaces. If that average is below the water's density, the boat floats.

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.

POSThttps://api.kit.forhosting.com/mech/float-or-sink

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.

curl -X POST https://api.kit.forhosting.com/mech/float-or-sink \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"object_density":750,"fluid_density":1000}'
{
  "object_density": 750,
  "fluid_density": 1000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "mech.float_or_sink",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Enter compatible density values

The calculator preserves the submitted values, returns the object density minus the fluid density, and provides a density ratio whenever the fluid density is greater than zero. A negative difference or ratio below one supports the `floats` verdict. A positive difference or ratio above one supports `sinks`. A zero difference and ratio of one indicate `neutrally_buoyant`.

Do both densities need the same unit?

Yes. Any density unit works, but object_density and fluid_density must use the same unit for the comparison to be valid.

How much does the API calculation cost?

Each API request costs $0.002. The browser calculator can be used directly on this page.

Read the full KIT documentation →