---
title: acceleration
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/devicemotionevent/1629483-acceleration
---

# acceleration

The acceleration that the user is giving to the device.

## Declaration

```data
readonly attribute Acceleration acceleration;
```

## Discussion

Discussion The acceleration data are expressed in m/s^2 and use the following x, y, and z axis properties represented as doubles: This property is null if the device cannot provide the user acceleration—that is, if the device does not have a gyroscope.  Use the accelerationIncludingGravity property to get the total acceleration. note: If the device does not have a gyroscope, then you may need to implement your own gravity direction detection using a low pass filter.

## See Also

### Getting Motion Event Properties

- [accelerationIncludingGravity](webkitjs/devicemotionevent/1629110-accelerationincludinggravity.md)
- [interval](webkitjs/devicemotionevent/1632148-interval.md)
- [rotationRate](webkitjs/devicemotionevent/1634377-rotationrate.md)
