# sqrMagnitude

> Returns the squared length of this vector (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public readonly float sqrMagnitude { get; }
```

### Remarks

Calculating the squared magnitude instead of the [Vector2.magnitude](/engine/6000.6/script-reference/unityengine/vector2/magnitude.md) is much faster. Often if you are comparing magnitudes of two vectors you can just compare their squared magnitudes.

Additional Resources: [Vector2.magnitude](/engine/6000.6/script-reference/unityengine/vector2/magnitude.md).
