---
title: accelerationIncludingGravity
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/devicemotionevent/1629110-accelerationincludinggravity
---

# accelerationIncludingGravity

The total acceleration of the device, which includes the user acceleration and the gravity.

## Declaration

```data
readonly attribute Acceleration accelerationIncludingGravity;
```

## Discussion

Discussion The acceleration data is expressed in m/s^2 and use the x, y, and z axis properties described in acceleration. This property is never null because every Apple device has an accelerometer. Use the acceleration property to get the user acceleration only.

## See Also

### Getting Motion Event Properties

- [acceleration](webkitjs/devicemotionevent/1629483-acceleration.md)
- [interval](webkitjs/devicemotionevent/1632148-interval.md)
- [rotationRate](webkitjs/devicemotionevent/1634377-rotationrate.md)
